aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2012-08-08 14:48:20 -0400
committerSteven Rostedt <rostedt@goodmis.org>2013-03-15 00:34:44 -0400
commit12ab74ee00d154bc05ea2fc659b7ce6519e5d5a6 (patch)
treed123285199790583ca792a1c80cb75ba440425b9 /kernel/trace/trace.h
parenta7603ff4b5f7e26e67af82a4c3d05eeeb8d7b160 (diff)
tracing: Make syscall events suitable for multiple buffers
Currently the syscall events record into the global buffer. But if multiple buffers are in place, then we need to have syscall events record in the proper buffers. By adding descriptors to pass to the syscall event functions, the syscall events can now record into the buffers that have been assigned to them (one event may be applied to mulitple buffers). This will allow tracing high volume syscalls along with seldom occurring syscalls without losing the seldom syscall events. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 15ccd7cd1560..68cad7a9e089 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -13,6 +13,11 @@
13#include <linux/trace_seq.h> 13#include <linux/trace_seq.h>
14#include <linux/ftrace_event.h> 14#include <linux/ftrace_event.h>
15 15
16#ifdef CONFIG_FTRACE_SYSCALLS
17#include <asm/unistd.h> /* For NR_SYSCALLS */
18#include <asm/syscall.h> /* some archs define it here */
19#endif
20
16enum trace_type { 21enum trace_type {
17 __TRACE_FIRST_TYPE = 0, 22 __TRACE_FIRST_TYPE = 0,
18 23
@@ -173,6 +178,12 @@ struct trace_array {
173 int cpu; 178 int cpu;
174 int buffer_disabled; 179 int buffer_disabled;
175 struct trace_cpu trace_cpu; /* place holder */ 180 struct trace_cpu trace_cpu; /* place holder */
181#ifdef CONFIG_FTRACE_SYSCALLS
182 int sys_refcount_enter;
183 int sys_refcount_exit;
184 DECLARE_BITMAP(enabled_enter_syscalls, NR_syscalls);
185 DECLARE_BITMAP(enabled_exit_syscalls, NR_syscalls);
186#endif
176 int stop_count; 187 int stop_count;
177 int clock_id; 188 int clock_id;
178 struct tracer *current_trace; 189 struct tracer *current_trace;