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

From: Frederic Weisbecker
Date: Mon Aug 16 2010 - 16:48:45 EST


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(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/