Skip to content

RFC callchain fixes and cleanups

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 RFC Latest0 patches 6 repliesIn review

Patches in v3 No applies recorded yet

Reviews trailers per patch

PatchPaul MackerrasWill Deacon
SeriesA-b A-b A-b T-b

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

Read the v3 thread

Cover letter [RFC PATCH 0/0 v3] callchain fixes and cleanups

Hi,

This set factorizes a lot of callchain code and fixes concurrent callchain buffers accesses.

The previous set has revealed we can't decently use the per cpu allocation api for memory that can be accessed from NMI. Hence this temporary uses a manual per cpu allocation until that gets fixed up.

Built-tested on PowerPc, Arm and SuperH (can someone point me to a ready to use sparc cross compiler, like those that can be found there for other archs: http://www.codesourcery.com/sgpp/lite_edition.html ?)

And runtime tested on x86-64 withiut troubles.

You can test it by pulling that branch:

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing.git
perf/callchains

If you have no comments, I'll propose it to -tip in a few days.

Thanks,
Frederic
---

Frederic Weisbecker (6):
perf: Drop unappropriate tests on arch callchains
perf: Generalize callchain_store()
perf: Generalize some arch callchain code
perf: Factorize callchain context handling
perf: Fix race in callchains
perf: Humanize the number of contexts

 arch/arm/kernel/perf_event.c         |   62 +---------
 arch/powerpc/kernel/perf_callchain.c |   86 ++++---------
 arch/sh/kernel/perf_callchain.c      |   50 +-------
 arch/sparc/kernel/perf_event.c       |   69 ++++-------
 arch/x86/kernel/cpu/perf_event.c     |   82 +++----------
 include/linux/perf_event.h           |   30 ++++-
 kernel/perf_event.c                  |  226 +++++++++++++++++++++++++++++-----
 7 files changed, 295 insertions(+), 310 deletions(-)