From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753175AbbCaIdz (ORCPT ); Tue, 31 Mar 2015 04:33:55 -0400 Received: from mail9.hitachi.co.jp ([133.145.228.44]:47485 "EHLO mail9.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752443AbbCaIdt (ORCPT ); Tue, 31 Mar 2015 04:33:49 -0400 Message-ID: <551A5BE7.4020502@hitachi.com> Date: Tue, 31 Mar 2015 17:33:43 +0900 From: Masami Hiramatsu Organization: Hitachi, Ltd., Japan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Arnaldo Carvalho de Melo CC: Jiri Olsa , David Ahern , Ingo Molnar , Namhyung Kim , Linux Kernel Mailing List Subject: Re: [REQ]: 'perf probe --del *:*' should remove both uprobes and kprobes References: <20150330201248.GA9116@kernel.org> In-Reply-To: <20150330201248.GA9116@kernel.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (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