linux/arch/csky/kernel/probes
Naveen N. Rao 2e38eb04c9 kprobes: Do not increment probe miss count in the fault handler
Kprobes has a counter 'nmissed', that is used to count the number of
times a probe handler was not called. This generally happens when we hit
a kprobe while handling another kprobe.

However, if one of the probe handlers causes a fault, we are currently
incrementing 'nmissed'. The comment in fault handler indicates that this
can be used to account faults taken by the probe handlers. But, this has
never been the intention as is evident from the comment above 'nmissed'
in 'struct kprobe':

	/*count the number of times this probe was temporarily disarmed */
	unsigned long nmissed;

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lkml.kernel.org/r/20210601120150.672652-1-naveen.n.rao@linux.vnet.ibm.com
2021-06-03 15:47:26 +02:00
..
Makefile csky: Add uprobes support 2020-04-03 11:37:51 +08:00
decode-insn.c csky: Add kprobes supported 2020-04-03 11:14:17 +08:00
decode-insn.h csky: Add kprobes supported 2020-04-03 11:14:17 +08:00
ftrace.c ftrace: Fix spelling mistake "disabed" -> "disabled" 2021-03-16 21:19:40 -07:00
kprobes.c kprobes: Do not increment probe miss count in the fault handler 2021-06-03 15:47:26 +02:00
kprobes_trampoline.S csky: Add kprobes supported 2020-04-03 11:14:17 +08:00
simulate-insn.c csky: kprobe: Fixup code in simulate without 'long' 2021-02-27 16:34:50 +08:00
simulate-insn.h csky: Add kprobes supported 2020-04-03 11:14:17 +08:00
uprobes.c csky: Fixup perf probe -x hungup 2020-05-13 17:55:05 +08:00