Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754926AbbGTDDn (ORCPT ); Sun, 19 Jul 2015 23:03:43 -0400 Received: from mail7.hitachi.co.jp ([133.145.228.42]:45382 "EHLO mail7.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172AbbGTDDl (ORCPT ); Sun, 19 Jul 2015 23:03:41 -0400 Message-ID: <55AC6506.5040003@hitachi.com> Date: Mon, 20 Jul 2015 12:03:34 +0900 From: Masami Hiramatsu Organization: Hitachi, Ltd., Japan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Namhyung Kim CC: Arnaldo Carvalho de Melo , Peter Zijlstra , linux-kernel@vger.kernel.org, Adrian Hunter , Ingo Molnar , Paul Mackerras , Jiri Olsa , Borislav Petkov , Hemant Kumar Subject: Re: Re: [RFC PATCH perf/core v2 16/16] perf probe: Accept %sdt and %cached event name References: <20150715091352.8915.87480.stgit@localhost.localdomain> <20150715091544.8915.18843.stgit@localhost.localdomain> <20150719105359.GC25163@danjae.kornet> In-Reply-To: <20150719105359.GC25163@danjae.kornet> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2313 Lines: 73 On 2015/07/19 19:53, Namhyung Kim wrote: > On Wed, Jul 15, 2015 at 06:15:44PM +0900, Masami Hiramatsu wrote: >> To improbe usability, support %[PROVIDER:]SDTEVENT format to >> add new probes on SDT and cached events. > > Ah, you meant we can skip the provider if the event name is unique.. Right, that's easier for users. >> >> e.g. >> ---- >> # perf probe -x /lib/libc-2.17.so %lll_lock_wait_private > > Maybe we can also skip the target path (-x) too in this case. Agreed. For that feature, we need to improve buildid-cache to get all valid buildid caches (this means that it has to verify all the cached binaries' buildid). Anyway, the same feature is required for showing available cached probe-events on perf-list. Thank you, > > Thanks, > Namhyung > > >> Added new event: >> libc:lll_lock_wait_private (on %lll_lock_wait_private in >> /usr/lib/libc-2.17.so) >> >> You can now use it in all perf tools, such as: >> >> perf record -e libc:lll_lock_wait_private -aR sleep 1 >> >> # perf probe -l | more >> libc:lll_lock_wait_private (on __lll_lock_wait_private+21 >> in /usr/lib/libc-2.17.so) >> ---- >> >> Note that this is not only for SDT events, but also normal >> events with event-name. >> >> e.g. define "myevent" on cache (-n doesn't add the real probe) >> ---- >> # perf probe -x ./perf --cache -n --add 'myevent=dso__load $params' >> ---- >> Reuse the "myevent" from cache as below. >> ---- >> # perf probe -x ./perf %myevent >> ---- >> >> Signed-off-by: Masami Hiramatsu > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > -- Masami HIRAMATSU Linux Technology Research Center, System Productivity Research Dept. Center for Technology Innovation - Systems Engineering Hitachi, Ltd., Research & Development Group E-mail: masami.hiramatsu.pt@hitachi.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/