kprobe fault handling

Frank Ch. Eigler fche@redhat.com
Thu Sep 8 17:42:00 GMT 2005


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



More information about the Systemtap mailing list