lkml.org 
[lkml]   [2009]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2/4] perf_counter: powerpc: Support the anonymized kernel callchain bits
Adds support for anonymized kernel callchains to the powerpc callchain
code.

This patch is not folded into the patch that introduces this feature
because the powerpc callchain code isn't upstream yet, and this allows
re-ordering the patches.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
---
arch/powerpc/kernel/perf_callchain.c | 5 +++++
1 file changed, 5 insertions(+)

Index: linux-2.6/arch/powerpc/kernel/perf_callchain.c
===================================================================
--- linux-2.6.orig/arch/powerpc/kernel/perf_callchain.c
+++ linux-2.6/arch/powerpc/kernel/perf_callchain.c
@@ -70,6 +70,11 @@ static void perf_callchain_kernel(struct
lr = regs->link;
sp = regs->gpr[1];
callchain_store(entry, PERF_CONTEXT_KERNEL);
+ next_ip = perf_paranoid_anon_ip();
+ if (next_ip) {
+ callchain_store(entry, next_ip);
+ return;
+ }
callchain_store(entry, regs->nip);

if (!validate_sp(sp, current, STACK_FRAME_OVERHEAD))
--



\
 
 \ /
  Last update: 2009-08-19 11:25    [W:0.173 / U:1.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site