This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]