summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRandolph Chung2005-10-22 04:42:18 +0200
committerKyle McMartin2005-10-22 04:42:18 +0200
commit5cd55b0edee7f979530c86b23728d461ddeb9f3f (patch)
treea279495f59c8de8bbfdd1bbdfd0b0927160fa669 /include
parent[PARISC] Reorganize sticore probe routine to be a little less convoluted (diff)
downloadkernel-qcow2-linux-5cd55b0edee7f979530c86b23728d461ddeb9f3f.tar.gz
kernel-qcow2-linux-5cd55b0edee7f979530c86b23728d461ddeb9f3f.tar.xz
kernel-qcow2-linux-5cd55b0edee7f979530c86b23728d461ddeb9f3f.zip
[PARISC] Take into account nullified insn and lock functions for profiling
export profile_pc() symbol - oprofile needs it when built as a module. Signed-off-by: Grant Grundler <grundler@parisc-linux.org> Take into account nullified insn and lock functions for profiling This is needed at the end of functions; it is typical that the return branch nullifies the next insn, which is in the next function. This causes profiling data to show up against the "wrong" function. We also count lock times against the locker. This is consistent with other architectures. Signed-off-by: Randolph Chung <tausq@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-parisc/ptrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-parisc/ptrace.h b/include/asm-parisc/ptrace.h
index 3f428aa371a4..93f990e418f1 100644
--- a/include/asm-parisc/ptrace.h
+++ b/include/asm-parisc/ptrace.h
@@ -49,7 +49,7 @@ struct pt_regs {
#define user_mode(regs) (((regs)->iaoq[0] & 3) ? 1 : 0)
#define user_space(regs) (((regs)->iasq[1] != 0) ? 1 : 0)
#define instruction_pointer(regs) ((regs)->iaoq[0] & ~3)
-#define profile_pc(regs) instruction_pointer(regs)
+unsigned long profile_pc(struct pt_regs *);
extern void show_regs(struct pt_regs *);
#endif