diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-15 21:31:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-15 21:31:30 -0400 |
commit | a926021cb1f8a99a275eaf6eb546102e9469dc59 (patch) | |
tree | c6d0300cd4b1a1fd658708476db4577b68b4de31 /include/linux/syscalls.h | |
parent | 0586bed3e8563c2eb89bc7256e30ce633ae06cfb (diff) | |
parent | 5e814dd597c42daeb8d2a276e64a6ec986ad0e2a (diff) |
Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (184 commits)
perf probe: Clean up probe_point_lazy_walker() return value
tracing: Fix irqoff selftest expanding max buffer
tracing: Align 4 byte ints together in struct tracer
tracing: Export trace_set_clr_event()
tracing: Explain about unstable clock on resume with ring buffer warning
ftrace/graph: Trace function entry before updating index
ftrace: Add .ref.text as one of the safe areas to trace
tracing: Adjust conditional expression latency formatting.
tracing: Fix event alignment: skb:kfree_skb
tracing: Fix event alignment: mce:mce_record
tracing: Fix event alignment: kvm:kvm_hv_hypercall
tracing: Fix event alignment: module:module_request
tracing: Fix event alignment: ftrace:context_switch and ftrace:wakeup
tracing: Remove lock_depth from event entry
perf header: Stop using 'self'
perf session: Use evlist/evsel for managing perf.data attributes
perf top: Don't let events to eat up whole header line
perf top: Fix events overflow in top command
ring-buffer: Remove unused #include <linux/trace_irq.h>
tracing: Add an 'overwrite' trace_option.
...
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r-- | include/linux/syscalls.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 2d9b79c0f224..4acc6b6088b0 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -133,11 +133,11 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
133 | .class = &event_class_syscall_enter, \ | 133 | .class = &event_class_syscall_enter, \ |
134 | .event.funcs = &enter_syscall_print_funcs, \ | 134 | .event.funcs = &enter_syscall_print_funcs, \ |
135 | .data = (void *)&__syscall_meta_##sname,\ | 135 | .data = (void *)&__syscall_meta_##sname,\ |
136 | .flags = TRACE_EVENT_FL_CAP_ANY, \ | ||
136 | }; \ | 137 | }; \ |
137 | static struct ftrace_event_call __used \ | 138 | static struct ftrace_event_call __used \ |
138 | __attribute__((section("_ftrace_events"))) \ | 139 | __attribute__((section("_ftrace_events"))) \ |
139 | *__event_enter_##sname = &event_enter_##sname; \ | 140 | *__event_enter_##sname = &event_enter_##sname; |
140 | __TRACE_EVENT_FLAGS(enter_##sname, TRACE_EVENT_FL_CAP_ANY) | ||
141 | 141 | ||
142 | #define SYSCALL_TRACE_EXIT_EVENT(sname) \ | 142 | #define SYSCALL_TRACE_EXIT_EVENT(sname) \ |
143 | static struct syscall_metadata __syscall_meta_##sname; \ | 143 | static struct syscall_metadata __syscall_meta_##sname; \ |
@@ -147,11 +147,11 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
147 | .class = &event_class_syscall_exit, \ | 147 | .class = &event_class_syscall_exit, \ |
148 | .event.funcs = &exit_syscall_print_funcs, \ | 148 | .event.funcs = &exit_syscall_print_funcs, \ |
149 | .data = (void *)&__syscall_meta_##sname,\ | 149 | .data = (void *)&__syscall_meta_##sname,\ |
150 | .flags = TRACE_EVENT_FL_CAP_ANY, \ | ||
150 | }; \ | 151 | }; \ |
151 | static struct ftrace_event_call __used \ | 152 | static struct ftrace_event_call __used \ |
152 | __attribute__((section("_ftrace_events"))) \ | 153 | __attribute__((section("_ftrace_events"))) \ |
153 | *__event_exit_##sname = &event_exit_##sname; \ | 154 | *__event_exit_##sname = &event_exit_##sname; |
154 | __TRACE_EVENT_FLAGS(exit_##sname, TRACE_EVENT_FL_CAP_ANY) | ||
155 | 155 | ||
156 | #define SYSCALL_METADATA(sname, nb) \ | 156 | #define SYSCALL_METADATA(sname, nb) \ |
157 | SYSCALL_TRACE_ENTER_EVENT(sname); \ | 157 | SYSCALL_TRACE_ENTER_EVENT(sname); \ |
@@ -159,6 +159,7 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
159 | static struct syscall_metadata __used \ | 159 | static struct syscall_metadata __used \ |
160 | __syscall_meta_##sname = { \ | 160 | __syscall_meta_##sname = { \ |
161 | .name = "sys"#sname, \ | 161 | .name = "sys"#sname, \ |
162 | .syscall_nr = -1, /* Filled in at boot */ \ | ||
162 | .nb_args = nb, \ | 163 | .nb_args = nb, \ |
163 | .types = types_##sname, \ | 164 | .types = types_##sname, \ |
164 | .args = args_##sname, \ | 165 | .args = args_##sname, \ |
@@ -176,6 +177,7 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
176 | static struct syscall_metadata __used \ | 177 | static struct syscall_metadata __used \ |
177 | __syscall_meta__##sname = { \ | 178 | __syscall_meta__##sname = { \ |
178 | .name = "sys_"#sname, \ | 179 | .name = "sys_"#sname, \ |
180 | .syscall_nr = -1, /* Filled in at boot */ \ | ||
179 | .nb_args = 0, \ | 181 | .nb_args = 0, \ |
180 | .enter_event = &event_enter__##sname, \ | 182 | .enter_event = &event_enter__##sname, \ |
181 | .exit_event = &event_exit__##sname, \ | 183 | .exit_event = &event_exit__##sname, \ |