diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/Kconfig | 12 | ||||
-rw-r--r-- | kernel/trace/trace_events.c | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 1ea0d1234f4a..aa002cef924c 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig | |||
@@ -469,6 +469,18 @@ config FTRACE_STARTUP_TEST | |||
469 | functioning properly. It will do tests on all the configured | 469 | functioning properly. It will do tests on all the configured |
470 | tracers of ftrace. | 470 | tracers of ftrace. |
471 | 471 | ||
472 | config EVENT_TRACE_TEST_SYSCALLS | ||
473 | bool "Run selftest on syscall events" | ||
474 | depends on FTRACE_STARTUP_TEST | ||
475 | help | ||
476 | This option will also enable testing every syscall event. | ||
477 | It only enables the event and disables it and runs various loads | ||
478 | with the event enabled. This adds a bit more time for kernel boot | ||
479 | up since it runs this on every system call defined. | ||
480 | |||
481 | TBD - enable a way to actually call the syscalls as we test their | ||
482 | events | ||
483 | |||
472 | config MMIOTRACE | 484 | config MMIOTRACE |
473 | bool "Memory mapped IO tracing" | 485 | bool "Memory mapped IO tracing" |
474 | depends on HAVE_MMIOTRACE_SUPPORT && PCI | 486 | depends on HAVE_MMIOTRACE_SUPPORT && PCI |
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 0fa8f9faa61c..787f0fb0994e 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -1326,6 +1326,18 @@ static __init void event_trace_self_tests(void) | |||
1326 | if (!call->regfunc) | 1326 | if (!call->regfunc) |
1327 | continue; | 1327 | continue; |
1328 | 1328 | ||
1329 | /* | ||
1330 | * Testing syscall events here is pretty useless, but | ||
1331 | * we still do it if configured. But this is time consuming. | ||
1332 | * What we really need is a user thread to perform the | ||
1333 | * syscalls as we test. | ||
1334 | */ | ||
1335 | #ifndef CONFIG_EVENT_TRACE_TEST_SYSCALLS | ||
1336 | if (call->system && | ||
1337 | strcmp(call->system, "syscalls") == 0) | ||
1338 | continue; | ||
1339 | #endif | ||
1340 | |||
1329 | pr_info("Testing event %s: ", call->name); | 1341 | pr_info("Testing event %s: ", call->name); |
1330 | 1342 | ||
1331 | /* | 1343 | /* |