Skip to content

perf tools: Bug fix and cleanup for sort keys

Namhyung Kim lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9perf hists: Fix an invalid memory free on he->branch_infotools/perf/builtin-report.c tools/perf/util/hist.c+20 -30 replies
2/9perf hists: Free unused mem info of a matched hist entrytools/perf/util/hist.c+6 -00 replies
3/9perf report: Fix alignment of symbol column when -v is giventools/perf/util/hist.c tools/perf/util/sort.c+16 -120 replies
4/9perf sort: Introduce sort__mode variabletools/perf/builtin-report.c tools/perf/ui/browsers/hists.c tools/perf/util/sort.c +1 more+24 -150 replies
5/9perf sort: Separate out memory-specific sort keystools/perf/builtin-report.c tools/perf/util/sort.c tools/perf/util/sort.h+55 -162 replies
6/9perf sort: Add 'addr' sort keytools/perf/util/hist.c tools/perf/util/hist.h tools/perf/util/sort.c +1 more+28 -14 replies
7/9perf sort: Add 'addr_to/from' sort keytools/perf/util/hist.c tools/perf/util/hist.h tools/perf/util/sort.c +1 more+56 -00 replies
8/9perf 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
9/9perf hists: Move column length setting codetools/perf/util/hist.c+6 -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/9] perf tools: Bug fix and cleanup for sort keys

Hi,

This is a couple of bugfix, cleanup and enhancement for sort keys.

When I rebased previous --sort addr* patches, I found that separating sort mode might be helpful to users so I did the cleanup. But during the test I, in turn, found a bug in freeing the branch info of a hist entry. And the mem info patch is only compile-tested - it'd be great if Stephane could take a look and help to test.

You can get it from 'perf/sort-v3' 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 (9):
perf hists: Fix an invalid memory free on he->branch_info perf hists: Free unused mem info of a matched hist entry perf report: Fix alignment of symbol column when -v is given perf sort: Introduce sort__mode variable
perf sort: Separate out memory-specific sort keys 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

 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              |  40 ++++++----
 tools/perf/builtin-top.c                 |   3 +-
 tools/perf/ui/browsers/hists.c           |   4 +-
 tools/perf/util/hist.c                   |  63 ++++++++++-----
 tools/perf/util/hist.h                   |   5 +-
 tools/perf/util/sort.c                   | 129 ++++++++++++++++++++++++++++---
 tools/perf/util/sort.h                   |  30 ++++---
 11 files changed, 223 insertions(+), 62 deletions(-)
Signature · 1 line
1.7.11.7