Skip to contentSkip to conversation

perf report/top: Add a tip about source line matching

PATCH Superseded Hyeim Yang 2 participants 2 messages Nov 18, 2017 – Nov 20, 2017 perf events

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Hyeim Yang

author
#0 lore raw

PATCH 1/1 perf report/top: Add a tip about source line matching

Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Taeung Song <[email protected]>
---
 tools/perf/Documentation/tips.txt | 1 +
 1 file changed, 1 insertion(+)
tools/perf/Documentation/tips.txt +1 -0
index db0ca30..b60616a 100644
@@ -32,3 +32,4 @@ Order by the overhead of source file name and line number: perf report -s srclin
 System-wide collection from all CPUs: perf record -a
 Show current config key-value pairs: perf config --list
 Show user configuration overrides: perf config --user --list
+Print matching source lines (may be slow): perf annotate --print-line <symbol>
Signature · 1 line
2.7.4
#1 lore raw
Quoted 12 lines · Hyeim Yang
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Taeung Song <[email protected]>
---
 tools/perf/Documentation/tips.txt | 1 +
 1 file changed, 1 insertion(+)
tools/perf/Documentation/tips.txt +0 -0
index db0ca30..b60616a 100644

tools/perf/Documentation/tips.txt Order by the overhead of source file name and line number: perf report -s srclin · line 35

Quoted 4 lines
tools/perf/Documentation/tips.txt +1 -0
@@ -32,3 +32,4 @@ Order by the overhead of source file name and line number: perf report -s srclin
 System-wide collection from all CPUs: perf record -a
 Show current config key-value pairs: perf config --list
 Show user configuration overrides: perf config --user --list
+Print matching source lines (may be slow): perf annotate --print-line <symbol>

this works only in stdio, so we need to add --stdio option as well

jirka