From: Bob Nelson Date: Wed, 20 Feb 2008 04:00:56 +0000 (+0100) Subject: [POWERPC] OProfile: enable callgraph support for Cell X-Git-Tag: v2.6.25-rc4~120^2^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=101fd46a753f8931a05d252bf5564c9415a5f8d7;p=platform%2Fkernel%2Flinux-3.10.git [POWERPC] OProfile: enable callgraph support for Cell This patch enables OProfile callgraph support for the Cell processor. The original code was just calling a function to add the PC value, now it will call a function that first checks the callgraph depth. Callgraph is already enabled on the other Power platforms. Signed-off-by: Bob Nelson Signed-off-by: Arnd Bergmann --- diff --git a/arch/powerpc/oprofile/op_model_cell.c b/arch/powerpc/oprofile/op_model_cell.c index 1392977..9eed1f6 100644 --- a/arch/powerpc/oprofile/op_model_cell.c +++ b/arch/powerpc/oprofile/op_model_cell.c @@ -1151,7 +1151,7 @@ static void cell_handle_interrupt(struct pt_regs *regs, for (i = 0; i < num_counters; ++i) { if ((interrupt_mask & CBE_PM_CTR_OVERFLOW_INTR(i)) && ctr[i].enabled) { - oprofile_add_pc(pc, is_kernel, i); + oprofile_add_ext_sample(pc, regs, i, is_kernel); cbe_write_ctr(cpu, i, reset_value[i]); } }