Hi Nan,
With BPF.attack_kprobe, the BPF program is attached as a pre-handler.
You can use BPF.attach_kretprobe to attach it as a post-handler.
Paul
On 04/08/2017 05:30, Nan Xiao via iovisor-dev wrote:
Hi all,
When reading Kprobes
<https://www.kernel.org/doc/Documentation/kprobes.txt> document, I
find there are pre-handler and post-handler for a kprobe. So when
calling BPF.attach_kprobe()
<https://github.com/iovisor/bcc/blob/master/docs/reference_guide.md#1-kprobes>
function, it registers pre-handler or post-handler? Or I misunderstand
it?
Thanks very much in advance!
Best Regards
Nan Xiao
_______________________________________________
iovisor-dev mailing list
[email protected]
https://lists.iovisor.org/mailman/listinfo/iovisor-dev
_______________________________________________
iovisor-dev mailing list
[email protected]
https://lists.iovisor.org/mailman/listinfo/iovisor-dev