diff options
| author | Li Zefan <[email protected]> | 2009-08-31 08:49:41 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-08-31 08:58:08 +0000 |
| commit | 8e254c1d183f0225ad21f9049641529e56cce4da (patch) | |
| tree | 5b559726a38b60c6bc92b3c8667c676db1038701 /security/selinux/hooks.c | |
| parent | Merge branch 'tip/tracing/core' of git://git.kernel.org/pub/scm/linux/kernel/... (diff) | |
| download | kernel-8e254c1d183f0225ad21f9049641529e56cce4da.tar.gz kernel-8e254c1d183f0225ad21f9049641529e56cce4da.zip | |
tracing/filters: Defer pred allocation
init_preds() allocates about 5392 bytes of memory (on x86_32) for
a TRACE_EVENT. With my config, at system boot total memory occupied
is:
5392 * (642 + 15) == 3459KB
642 == cat available_events | wc -l
15 == number of dirs in events/ftrace
That's quite a lot, so we'd better defer memory allocation util
it's needed, that's when filter is used.
Signed-off-by: Li Zefan <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Tom Zanussi <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
