summaryrefslogtreecommitdiffstats
path: root/kernel/irq/internals.h
diff options
context:
space:
mode:
authorNamhyung Kim2015-09-04 14:16:01 +0200
committerArnaldo Carvalho de Melo2015-09-04 17:37:17 +0200
commitb02137cc6550c1fa28e9a7c943a79fe6e4c4378d (patch)
treefeadc35a53af38d04948b8dbfa9a00b253233e7b /kernel/irq/internals.h
parentperf probe: Link trace_probe_event into perf_probe_event (diff)
downloadkernel-qcow2-linux-b02137cc6550c1fa28e9a7c943a79fe6e4c4378d.tar.gz
kernel-qcow2-linux-b02137cc6550c1fa28e9a7c943a79fe6e4c4378d.tar.xz
kernel-qcow2-linux-b02137cc6550c1fa28e9a7c943a79fe6e4c4378d.zip
perf probe: Move print logic into cmd_probe()
Showing actual trace event when adding perf events is only needed in perf probe command. But the add functionality itself can be used by other places. So move the printing code into the cmd_probe(). Also it combines the output if more than one event is added. Before: $ sudo perf probe -a do_fork -a do_exit Added new event: probe:do_fork (on do_fork) You can now use it in all perf tools, such as: perf record -e probe:do_fork -aR sleep 1 Added new events: probe:do_exit (on do_exit) probe:do_exit_1 (on do_exit) You can now use it in all perf tools, such as: perf record -e probe:do_exit_1 -aR sleep 1 After: $ sudo perf probe -a do_fork -a do_exit Added new events: probe:do_fork (on do_fork) probe:do_exit (on do_exit) probe:do_exit_1 (on do_exit) You can now use it in all perf tools, such as: perf record -e probe:do_exit_1 -aR sleep 1 Signed-off-by: Namhyung Kim <namhyung@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Wang Nan <wangnan0@huawei.com> Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1441368963-11565-3-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'kernel/irq/internals.h')
0 files changed, 0 insertions, 0 deletions