linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [REQ]: 'perf probe --del *:*' should remove both uprobes and kprobes
@ 2015-03-30 20:12 Arnaldo Carvalho de Melo
  2015-03-31  8:33 ` Masami Hiramatsu
  0 siblings, 1 reply; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2015-03-30 20:12 UTC (permalink / raw)
  To: Masami Hiramatsu
  Cc: Jiri Olsa, David Ahern, Ingo Molnar, Namhyung Kim,
	Linux Kernel Mailing List

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [REQ]: 'perf probe --del *:*' should remove both uprobes and kprobes
  2015-03-30 20:12 [REQ]: 'perf probe --del *:*' should remove both uprobes and kprobes Arnaldo Carvalho de Melo
@ 2015-03-31  8:33 ` Masami Hiramatsu
  0 siblings, 0 replies; 2+ messages in thread
From: Masami Hiramatsu @ 2015-03-31  8:33 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Jiri Olsa, David Ahern, Ingo Molnar, Namhyung Kim,
	Linux Kernel Mailing List

(2015/03/31 5:12), Arnaldo Carvalho de Melo wrote:
> 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
> :-)

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

Thank you for reporting! :)

> 
> - Arnaldo
> 


-- 
Masami HIRAMATSU
Software Platform Research Dept. Linux Technology Research Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: masami.hiramatsu.pt@hitachi.com



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-31  8:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-30 20:12 [REQ]: 'perf probe --del *:*' should remove both uprobes and kprobes Arnaldo Carvalho de Melo
2015-03-31  8:33 ` Masami Hiramatsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).