tracing: make testing syscall events a separate configuration
[deliverable/linux.git] / kernel / trace / trace_events.c
index 0fa8f9faa61cbd4408bd45ebdc17cfec3bace2b2..787f0fb0994e861a3248a5018f7c4667b200910b 100644 (file)
@@ -1326,6 +1326,18 @@ static __init void event_trace_self_tests(void)
                if (!call->regfunc)
                        continue;
 
+/*
+ * Testing syscall events here is pretty useless, but
+ * we still do it if configured. But this is time consuming.
+ * What we really need is a user thread to perform the
+ * syscalls as we test.
+ */
+#ifndef CONFIG_EVENT_TRACE_TEST_SYSCALLS
+               if (call->system &&
+                   strcmp(call->system, "syscalls") == 0)
+                       continue;
+#endif
+
                pr_info("Testing event %s: ", call->name);
 
                /*
This page took 0.025113 seconds and 5 git commands to generate.