This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: kprobe fault handling
Hi -
> [...]
> > Is there a modules-accessible kprobes API for disarming a probe on the
> > fly?
>
> There is a arch specific routine to disable the probes as shown below.
> void arch_disarm_kprobe(struct kprobe *p) [...]
> Is it enough to export the above routine in all architectures?
I don't know. We'd need some plain kprobes tests to see what happens
if we "return 1" from a fault_handler that does such a disarm. Might
the processor return to the fault-causing instruction in the buggy
pre_handler?
- FChE