[PARISC] Take into account nullified insn and lock functions for profiling
authorRandolph Chung <tausq@parisc-linux.org>
Sat, 22 Oct 2005 02:42:18 +0000 (22:42 -0400)
committerKyle McMartin <kyle@parisc-linux.org>
Sat, 22 Oct 2005 02:42:18 +0000 (22:42 -0400)
commit5cd55b0edee7f979530c86b23728d461ddeb9f3f
treea279495f59c8de8bbfdd1bbdfd0b0927160fa669
parent951a0150135c46c7791d68e0d1112900d99302d7
[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>
arch/parisc/kernel/time.c
include/asm-parisc/ptrace.h