Skip to content

perf tools: Cleanup for sort keys (v3)

Namhyung Kim lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8perf sort: Reorder HISTC_SRCLINE indextools/perf/util/hist.h+1 -10 replies
2/8perf sort: Add 'addr' sort keytools/perf/util/hist.c tools/perf/util/hist.h tools/perf/util/sort.c +1 more+33 -00 replies
3/8perf sort: Add 'addr_to/from' sort keytools/perf/util/hist.c tools/perf/util/hist.h tools/perf/util/sort.c +1 more+54 -00 replies
4/8perf sort: Update documentation for sort keystools/perf/Documentation/perf-diff.txt tools/perf/Documentation/perf-report.txt tools/perf/Documentation/perf-top.txt +3 more+12 -80 replies
5/8perf hists: Move column length setting codetools/perf/util/hist.c+6 -70 replies
6/8perf sort: Cleanup sort__has_sym settingtools/perf/util/sort.c+1 -40 replies
7/8perf top: Use sort__has_symtools/perf/builtin-top.c tools/perf/util/top.h+3 -100 replies
8/8perf hist browser: Use sort__has_symtools/perf/ui/browsers/hists.c+2 -70 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCHSET 0/8] perf tools: Cleanup for sort keys (v3)

Hi,

In this version, I've fixed up the last minute bug on hex print and separate out SRCLINE reordering.

  $ perf report -s addr | grep -v ^# | sort -k2 -n
     0.00%            0x400523
     0.00%  0xffffffff81018140
     0.00%  0xffffffff810181a2
     0.00%  0xffffffff8101a41a
     0.00%  0xffffffff8101a977
     0.00%  0xffffffff810229da
     0.00%  0xffffffff8103becf
     ... 

The patches are in 'perf/sort-v5' branch on my tree at:

git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git

Any comments are welcome, thanks.
Namhyung

Namhyung Kim (8):
perf sort: Reorder HISTC_SRCLINE index
perf sort: Add 'addr' sort key
perf sort: Add 'addr_to/from' sort key
perf sort: Update documentation for sort keys
perf hists: Move column length setting code
perf sort: Cleanup sort__has_sym setting
perf top: Use sort__has_sym
perf hist browser: Use sort__has_sym

 tools/perf/Documentation/perf-diff.txt   |  2 +-
 tools/perf/Documentation/perf-report.txt |  5 +-
 tools/perf/Documentation/perf-top.txt    |  2 +-
 tools/perf/builtin-diff.c                |  2 +-
 tools/perf/builtin-report.c              |  6 +--
 tools/perf/builtin-top.c                 | 15 ++----
 tools/perf/ui/browsers/hists.c           |  9 +---
 tools/perf/util/hist.c                   | 17 ++++---
 tools/perf/util/hist.h                   |  5 +-
 tools/perf/util/sort.c                   | 82 ++++++++++++++++++++++++++++++--
 tools/perf/util/sort.h                   |  3 ++
 tools/perf/util/top.h                    |  1 -
 12 files changed, 112 insertions(+), 37 deletions(-)
Signature · 1 line
1.7.11.7