Skip to content

perf annotate: Use generic annotation line

Jiri Olsa lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest35 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/35perf annotate: Remove arch::cpuid_parse callbacktools/perf/arch/arm/annotate/instructions.c tools/perf/arch/arm64/annotate/instructions.c tools/perf/arch/powerpc/annotate/instructions.c +3 more+27 -110 replies
2/35perf annotate: Add annotation_line structtools/perf/ui/browsers/annotate.c tools/perf/ui/gtk/annotate.c tools/perf/util/annotate.c +1 more+42 -382 replies
3/35perf annotate: Move line/offset into annotation_line structtools/perf/ui/browsers/annotate.c tools/perf/ui/gtk/annotate.c tools/perf/util/annotate.c +1 more+54 -520 replies
4/35perf annotate: Move ipc/cycles into annotation_line structtools/perf/ui/browsers/annotate.c tools/perf/util/annotate.h+10 -100 replies
5/35perf annotate: Add symbol__annotate functiontools/perf/builtin-top.c tools/perf/ui/browsers/annotate.c tools/perf/ui/gtk/annotate.c +2 more+42 -340 replies
6/35perf annotate: Add struct annotate_argstools/perf/util/annotate.c+18 -90 replies
7/35perf annotate: Add arch into struct annotate_argstools/perf/util/annotate.c+8 -90 replies
8/35perf annotate: Add map into struct annotate_argstools/perf/util/annotate.c+11 -110 replies
9/35perf annotate: Add offset/line/line_nr into struct annotate_argstools/perf/util/annotate.c+13 -80 replies
10/35perf annotate: Add evsel into struct annotation_line_argstools/perf/ui/browsers/annotate.c tools/perf/ui/gtk/annotate.c tools/perf/util/annotate.c +1 more+11 -70 replies
11/35perf annotate: Add annotation_line__next functiontools/perf/ui/browsers/annotate.c tools/perf/util/annotate.c tools/perf/util/annotate.h+13 -100 replies
12/35perf annotate: Add annotation_line__add functiontools/perf/util/annotate.c+3 -30 replies
13/35perf annotate: Move rb_node into struct annotation_linetools/perf/ui/browsers/annotate.c tools/perf/util/annotate.h+17 -140 replies
14/35perf annotate: Add annotation_line__(new|free) functionstools/perf/ui/browsers/annotate.c tools/perf/util/annotate.c tools/perf/util/annotate.h+68 -90 replies
15/35perf annotate: Add annotated_source__purge functiontools/perf/ui/browsers/annotate.c tools/perf/util/annotate.c tools/perf/util/annotate.h+10 -120 replies
16/35perf annotate: Add samples into struct annotation_linetools/perf/util/annotate.c tools/perf/util/annotate.h+20 -57 replies
17/35perf annotate: Add symbol__calc_percent functiontools/perf/util/annotate.c+64 -10 replies
18/35perf annotate: Add symbol__calc_lines functiontools/perf/util/annotate.c tools/perf/util/annotate.h+68 -1200 replies
19/35perf annotate: Remove disasm__calc_percent from disasm_line__printtools/perf/util/annotate.c+15 -440 replies
20/35perf annotate: Remove disasm__calc_percent from annotate_browser__calc_percenttools/perf/ui/browsers/annotate.c tools/perf/util/annotate.c tools/perf/util/annotate.h+8 -170 replies
21/35perf annotate: Remove disasm__calc_percent functiontools/perf/util/annotate.c tools/perf/util/annotate.h+0 -460 replies
22/35perf annotate: Remove struct source_linetools/perf/util/annotate.h+0 -140 replies
23/35perf annotate: Add annotation_line__print functiontools/perf/util/annotate.c+22 -60 replies
24/35perf annotate: Factor annotation_line__print from disasm_line__printtools/perf/util/annotate.c+33 -360 replies
25/35perf annotate browser: Use samples data from struct annotation_linetools/perf/ui/browsers/annotate.c+20 -370 replies
26/35perf annotate browser: Do not pass nr_events in disasm_rb_tree__inserttools/perf/ui/browsers/annotate.c+6 -90 replies
27/35perf annotate browser: Rename struct browser_disasm_line to browser_linetools/perf/ui/browsers/annotate.c+13 -131 reply
28/35perf annotate browser: Rename disasm_line__browser to browser_linetools/perf/ui/browsers/annotate.c+8 -81 reply
29/35perf annotate browser: Change selection to struct annotation_linetools/perf/ui/browsers/annotate.c+34 -291 reply
30/35perf annotate browser: Change offsets to struct annotation_linetools/perf/ui/browsers/annotate.c+29 -200 replies
31/35perf annotate browser: Use struct annotation_line in browser_linetools/perf/ui/browsers/annotate.c+28 -320 replies
32/35perf annotate browser: Use struct annotation_line in find functionstools/perf/ui/browsers/annotate.c+20 -200 replies
33/35perf annotate browser: Use struct annotation_line in browser toptools/perf/ui/browsers/annotate.c+13 -130 replies
34/35perf annotate browser: Add disasm_line__write functiontools/perf/ui/browsers/annotate.c+53 -450 replies
35/35perf annotate: Align source and offset linestools/perf/util/annotate.c+4 -32 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/35] perf annotate: Use generic annotation line

hi,
I'm working on script profiling support and came up with some generic annotation code changes, which IMO make the code simpler and more generic.

The main idea of this patchset is to have generic struct (annotation_line), which holds the common profile data. Having this we can easily add new types, like script annotation support. Currently there's disasm_line support only.

It's also available at:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/annotate

I'm getting same annotation results for this patchset as in the current perf, but I might have missed something.

thanks,
jirka

---
 tools/perf/arch/arm/annotate/instructions.c     |   3 +-
 tools/perf/arch/arm64/annotate/instructions.c   |   3 +-
 tools/perf/arch/powerpc/annotate/instructions.c |   4 +-
 tools/perf/arch/s390/annotate/instructions.c    |   4 +-
 tools/perf/arch/x86/annotate/instructions.c     |  14 +++
 tools/perf/builtin-top.c                        |   2 +-
 tools/perf/ui/browsers/annotate.c               | 404 +++++++++++++++++++++++++++++++++++-------------------------------------
 tools/perf/ui/gtk/annotate.c                    |  23 ++---
 tools/perf/util/annotate.c                      | 635 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------
 tools/perf/util/annotate.h                      |  76 ++++++++------
 10 files changed, 609 insertions(+), 559 deletions(-)