Skip to content

perf tools: Speed up dwarf callchain post-unwinding for libunwind (v3)

Namhyung Kim lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5perf report: Set callchain_param.record_mode for future usetools/perf/builtin-report.c+6 -00 replies
1/5perf report: Set callchain_param.record_mode for future usetools/perf/builtin-report.c tools/perf/tests/dwarf-unwind.c tools/perf/util/callchain.h +1 more+11 -21 reply
2/5perf callchain: Create an address space per threadtools/perf/util/thread.c tools/perf/util/unwind-libunwind.c tools/perf/util/unwind.h+54 -50 replies
3/5perf callchain: Use global caching provided by libunwindtools/perf/util/thread.c tools/perf/util/unwind-libunwind.c tools/perf/util/unwind.h+18 -00 replies
4/5perf kvm: Use thread_{,_set}_priv helperstools/perf/builtin-kvm.c+3 -30 replies
5/5perf trace: Use thread_{,_set}_priv helperstools/perf/builtin-trace.c+8 -80 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchJean Pihet
1/5
1/5
2/5A-b
3/5A-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCHSET 0/5] perf tools: Speed up dwarf callchain post-unwinding for libunwind (v3)

Hello,

This is v3 for libunwind callchain post processing speed up. It was able to reduce 50% of processing time by using global cache provided in libunwind. In this version, I decided to use the existing callchain_param.record_mode instead of adding a new field in the symbol_conf.

The patch 4 and 5 are just cleanups so that we can easily find out that which part of code uses the thread->priv.

You can also get it from 'perf/callchain-unwind-v3' branch on my tree:

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

Thanks,
Namhyung

Namhyung Kim (5):
perf report: Set callchain_param.record_mode for future use perf callchain: Create an address space per thread perf callchain: Use global caching provided by libunwind perf kvm: Use thread_{,_set}_priv helpers
perf trace: Use thread_{,_set}_priv helpers

 tools/perf/builtin-kvm.c           |  6 ++---
 tools/perf/builtin-report.c        |  6 +++++
 tools/perf/builtin-trace.c         | 16 ++++++-------
 tools/perf/tests/dwarf-unwind.c    |  3 +++
 tools/perf/util/callchain.h        |  2 ++
 tools/perf/util/hist.h             |  2 --
 tools/perf/util/thread.c           |  9 +++++++
 tools/perf/util/unwind-libunwind.c | 48 ++++++++++++++++++++++++++++++++++----
 tools/perf/util/unwind.h           | 20 ++++++++++++++++
 9 files changed, 94 insertions(+), 18 deletions(-)
Signature · 1 line
2.1.0