diff options
author | Masami Hiramatsu <[email protected]> | 2019-11-18 17:12:20 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-11-18 19:02:00 -0300 |
commit | 15354d54698648e20454fc8f298a5b18b6debea7 (patch) | |
tree | 2c78cb4bf64664a8b717f6a98d5fa3379b99af08 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 499144c83d3b7e4f9e83916acfc97bbc3af891dc (diff) |
perf probe: Generate event name with line number
Generate event name from function name with line number as
<function>_L<line_number>. Note that this is only for the new event
which is defined by the line number of function (except for line 0).
If there is another event on same line, you have to use
"-f" option. In that case, the new event has "_1" suffix.
e.g.
# perf probe -a kernel_read:2
Added new event:
probe:kernel_read_L2 (on kernel_read:2)
You can now use it in all perf tools, such as:
perf record -e probe:kernel_read_L2 -aR sleep 1
But if we omit the line number or 0th line, it will
have no suffix.
# perf probe -a kernel_read:0
Added new event:
probe:kernel_read (on kernel_read)
You can now use it in all perf tools, such as:
perf record -e probe:kernel_read -aR sleep 1
probe:kernel_read (on [email protected]/fs/read_write.c)
probe:kernel_read_L2 (on kernel_read:[email protected]/fs/read_write.c)
Signed-off-by: Masami Hiramatsu <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Ravi Bangoria <[email protected]>
Cc: Steven Rostedt (VMware) <[email protected]>
Cc: Tom Zanussi <[email protected]>
Link: http://lore.kernel.org/lkml/157406474026.24476.2828897745502059569.stgit@devnote2
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions