diff options
author | Naveen N. Rao <[email protected]> | 2021-06-01 17:31:50 +0530 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2021-06-03 15:47:26 +0200 |
commit | 2e38eb04c95e5546b71bb86ee699a891c7d212b5 (patch) | |
tree | 08bd6a3a4294516dcfbd5b327fc50e65948fb22e /scripts/gdb/linux/tasks.py | |
parent | 00afe83098f59d3091a800d0db188ca495b2bc02 (diff) |
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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions