Skip to contentSkip to conversation

perf report: Add a tip about source line numbers with overhead

PATCH Superseded Kim SeonYoung 2 participants 2 messages Sep 29, 2016 perf events

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf report: Add a tip about source line numbers with overhead

There is a existing tip as below.

If you have debuginfo enabled, try: perf report -s sym,srcline

However this tip only describe a condition to use --sort sym,scrline options. So there is lack of explanation in the tip. I think that it would be better to add a tip that exactly explain the feature of --sort srcline.

Cc Namhyung Kim <[email protected]>
Cc Jiri Olsa <[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 5950b5a..0d79eb1 100644
@@ -28,3 +28,4 @@ To change sampling frequency to 100 Hz: perf record -F 100
 See assembly instructions with percentage: perf annotate <symbol>
 If you prefer Intel style assembly, try: perf annotate -M intel
 For hierarchical output, try: perf report --hierarchy
+Show source files and line numbers in sequence of overhead, try: perf report -s srcline
Signature · 1 line
2.7.4
#1 lore raw

Em Thu, Sep 29, 2016 at 03:00:33PM -0700, Kim SeonYoung escreveu:

Quoted 21 lines

There is a existing tip as below.

If you have debuginfo enabled, try: perf report -s sym,srcline

However this tip only describe a condition to use --sort sym,scrline options. So there is lack of explanation in the tip. I think that it would be better to add a tip that exactly explain the feature of --sort srcline.

Cc Namhyung Kim <[email protected]>
Cc Jiri Olsa <[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 5950b5a..0d79eb1 100644

tools/perf/Documentation/tips.txt To change sampling frequency to 100 Hz: perf record -F 100 · line 31

Quoted 4 lines
tools/perf/Documentation/tips.txt +1 -0
@@ -28,3 +28,4 @@ To change sampling frequency to 100 Hz: perf record -F 100
 See assembly instructions with percentage: perf annotate <symbol>
 If you prefer Intel style assembly, try: perf annotate -M intel
 For hierarchical output, try: perf report --hierarchy
+Show source files and line numbers in sequence of overhead, try: perf report -s srcline

Maybe:

Order by the overhead of source file name and line number: 'perf report -s srcline'

- Arnaldo