diff options
author | Brian Rogan <bcr6@cornell.edu> | 2006-03-26 19:57:01 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-28 21:44:16 -0500 |
commit | 6c6bd754bf43d59756f094de144ecac239629dda (patch) | |
tree | b6cf2a7a3f133d24d22c63ba7bb8f9ebb02a8bab /arch/powerpc/oprofile/op_model_power4.c | |
parent | b848e0a07dd5a874821bb587bb724fac4aa45bad (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.c | 2 |
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); |