diff options
| author | Xiao Guangrong <[email protected]> | 2010-01-28 09:32:29 +0800 |
|---|---|---|
| committer | Frederic Weisbecker <[email protected]> | 2010-01-29 02:02:57 +0100 |
| commit | 430ad5a600a83956749307b13257c464c3826b55 (patch) | |
| tree | 9cd3dd3f54e29397ff303478de9fe6902f675b9b /tools/perf/scripts/python/flamegraph.py | |
| parent | 339ce1a4dc2ca26444c4f65c31b71a5056f3bb0b (diff) | |
perf: Factorize trace events raw sample buffer operations
Introduce ftrace_perf_buf_prepare() and ftrace_perf_buf_submit() to
gather the common code that operates on raw events sampling buffer.
This cleans up redundant code between regular trace events, syscall
events and kprobe events.
Changelog v1->v2:
- Rename function name as per Masami and Frederic's suggestion
- Add __kprobes for ftrace_perf_buf_prepare() and make
ftrace_perf_buf_submit() inline as per Masami's suggestion
- Export ftrace_perf_buf_prepare since modules will use it
Signed-off-by: Xiao Guangrong <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Jason Baron <[email protected]>
Cc: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions