aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace_event.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-05-19 04:52:27 -0400
committerIngo Molnar <mingo@elte.hu>2010-05-21 05:37:56 -0400
commitb7e2ecef92d2e7785e6d76b41e5ba8bcbc45259d (patch)
tree341c3a03743108bbdf82ee0eed9f4c4085f1b694 /include/linux/ftrace_event.h
parent1c34bde13a3cdcd4c7c6322f8052e67c2c91caf1 (diff)
perf, trace: Optimize tracepoints by removing IRQ-disable from perf/tracepoint interaction
Improves performance. Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Steven Rostedt <rostedt@goodmis.org> LKML-Reference: <1274259525.5605.10352.camel@twins> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/ftrace_event.h')
-rw-r--r--include/linux/ftrace_event.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h
index a9775dd7f7fe..126071bc90ab 100644
--- a/include/linux/ftrace_event.h
+++ b/include/linux/ftrace_event.h
@@ -197,20 +197,17 @@ extern void perf_trace_disable(int event_id);
197extern int ftrace_profile_set_filter(struct perf_event *event, int event_id, 197extern int ftrace_profile_set_filter(struct perf_event *event, int event_id,
198 char *filter_str); 198 char *filter_str);
199extern void ftrace_profile_free_filter(struct perf_event *event); 199extern void ftrace_profile_free_filter(struct perf_event *event);
200extern void * 200extern void *perf_trace_buf_prepare(int size, unsigned short type,
201perf_trace_buf_prepare(int size, unsigned short type, int *rctxp, 201 struct pt_regs *regs, int *rctxp);
202 unsigned long *irq_flags);
203 202
204static inline void 203static inline void
205perf_trace_buf_submit(void *raw_data, int size, int rctx, u64 addr, 204perf_trace_buf_submit(void *raw_data, int size, int rctx, u64 addr,
206 u64 count, unsigned long irq_flags, struct pt_regs *regs, 205 u64 count, struct pt_regs *regs, void *event)
207 void *event)
208{ 206{
209 struct trace_entry *entry = raw_data; 207 struct trace_entry *entry = raw_data;
210 208
211 perf_tp_event(entry->type, addr, count, raw_data, size, regs, event); 209 perf_tp_event(entry->type, addr, count, raw_data, size, regs, event);
212 perf_swevent_put_recursion_context(rctx); 210 perf_swevent_put_recursion_context(rctx);
213 local_irq_restore(irq_flags);
214} 211}
215#endif 212#endif
216 213