aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/oprofile/op_model_power4.c
diff options
context:
space:
mode:
authorBrian Rogan <bcr6@cornell.edu>2006-03-26 19:57:01 -0500
committerPaul Mackerras <paulus@samba.org>2006-03-28 21:44:16 -0500
commit6c6bd754bf43d59756f094de144ecac239629dda (patch)
treeb6cf2a7a3f133d24d22c63ba7bb8f9ebb02a8bab /arch/powerpc/oprofile/op_model_power4.c
parentb848e0a07dd5a874821bb587bb724fac4aa45bad (diff)
[PATCH] powerpc: Add oprofile calltrace support
Add oprofile calltrace support to powerpc. Disable spinlock backtracing now we can use calltrace info. (Updated to work on both 32bit and 64bit by me). Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/oprofile/op_model_power4.c')
-rw-r--r--arch/powerpc/oprofile/op_model_power4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/oprofile/op_model_power4.c b/arch/powerpc/oprofile/op_model_power4.c
index 4b06e53eb9b4..38db2efef3bc 100644
--- a/arch/powerpc/oprofile/op_model_power4.c
+++ b/arch/powerpc/oprofile/op_model_power4.c
@@ -293,7 +293,7 @@ static void power4_handle_interrupt(struct pt_regs *regs,
293 val = ctr_read(i); 293 val = ctr_read(i);
294 if (val < 0) { 294 if (val < 0) {
295 if (oprofile_running && ctr[i].enabled) { 295 if (oprofile_running && ctr[i].enabled) {
296 oprofile_add_pc(pc, is_kernel, i); 296 oprofile_add_ext_sample(pc, regs, i, is_kernel);
297 ctr_write(i, reset_value[i]); 297 ctr_write(i, reset_value[i]);
298 } else { 298 } else {
299 ctr_write(i, 0); 299 ctr_write(i, 0);