Skip to contentSkip to conversation

: 'perf probe --del *:*' should remove both uprobes and kprobes

REQ Arnaldo Carvalho de Melo 2 participants 2 messages Mar 30, 2015 – Mar 31, 2015

lore
Share & tools
lore
#0 lore raw

How it is now:

[root@ssdandy acme]# perf probe --del *:*
Removed event: probe:icmp_rcv
[root@ssdandy acme]# perf probe --del *:*
Removed event: probe_ex:main
[root@ssdandy acme]# perf probe --del *:*
Info: Event "*:*" does not exist.
Error: Failed to delete events.
[root@ssdandy

I.e. it'll first remove all kprobes, then bail out, next time we ask for everything to be deleted, there are no kprobes, so it will try the uprobes, removing it all, I think it should not be a two step process :-)

- Arnaldo

#1 lore raw
Quoted 11 lines · Arnaldo Carvalho de Melo

How it is now:

[root@ssdandy acme]# perf probe --del *:*
Removed event: probe:icmp_rcv
[root@ssdandy acme]# perf probe --del *:*
Removed event: probe_ex:main
[root@ssdandy acme]# perf probe --del *:*
Info: Event "*:*" does not exist.
Error: Failed to delete events.
[root@ssdandy

Quoted 4 lines

I.e. it'll first remove all kprobes, then bail out, next time we ask for everything to be deleted, there are no kprobes, so it will try the uprobes, removing it all, I think it should not be a two step process :-)

Yes, this should clear all events if user gives "*:*".

Thank you for reporting! :)

Quoted 3 lines

- Arnaldo

Signature · 4 lines
Masami HIRAMATSU
Software Platform Research Dept. Linux Technology Research Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: [email protected]