On Wed, Jul 06, 2011 at 10:44:14AM -0400, Nicolas Pitre wrote:
On Wed, 6 Jul 2011, Tixy wrote:
I'm not worried about overlapping probes, it's about probing the same Thumb location but where one user specifies bit 0 as set and the other doesn't. Not very likely, admittedly.
I think we can reasonably assert that that's wrong usage, at least for now...
Right. Let's not overengineer this. Anyway, the first probe would have installed a faulting instruction in memory, and the second probe should simply see that and bail out already.
Good point -- presumably the kprobes already refuses to set a probe if the target location already contains the opcode used for a kprobe trap?
Cheers ---Dave