Added functionality for trap (undef. instr) overhead calculation (ARM)
authorAndreev S.V <s.andreev@samsung.com>
Fri, 1 Mar 2013 08:05:06 +0000 (12:05 +0400)
committerAndreev S.V <s.andreev@samsung.com>
Fri, 1 Mar 2013 08:05:06 +0000 (12:05 +0400)
commit0b0605a88c4eb80f7cb3daa8577da6aba13a97cb
tree78517cfc81b94aff1cc417caa6685cdb9c5c0663
parent41ae6c5ce6244f000ab10b8ca65f97ae206986d4
Added functionality for trap (undef. instr) overhead calculation (ARM)

When compiled with support of this functionality swap kprobe module will send
SIGUSR1 signal to userspace application after triggering 100000 traps
(undef.instructions). After that it can calculate the overhead of one trap
(transition from user to kernel and from kernel to user) as a difference of
time when catching signal SIGUSR1 in signal handler and time before first
undef.instruction which is divided on amount of traps (100000).
kprobe/arch/asm-arm/dbi_kprobes.c