From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755398AbbG1Np2 (ORCPT ); Tue, 28 Jul 2015 09:45:28 -0400 Received: from mail.kernel.org ([198.145.29.136]:47451 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751143AbbG1Np0 (ORCPT ); Tue, 28 Jul 2015 09:45:26 -0400 Date: Tue, 28 Jul 2015 10:45:21 -0300 From: Arnaldo Carvalho de Melo To: Masami Hiramatsu Cc: Namhyung Kim , Hemant Kumar , Peter Zijlstra , linux-kernel@vger.kernel.org, Adrian Hunter , Ingo Molnar , Jiri Olsa , Borislav Petkov Subject: Re: [RFC PATCH perf/core v2 00/16] perf-probe --cache and SDT support Message-ID: <20150728134521.GA575@kernel.org> References: <55A874C6.5030202@hitachi.com> <55AFA4E2.4040801@linux.vnet.ibm.com> <55B0E872.8030206@hitachi.com> <20150723140127.GD3152@kernel.org> <55B11555.9060100@hitachi.com> <20150724075519.GA19672@sejong> <20150724155237.GA300@kernel.org> <20150727140320.GF22022@danjae.kornet> <20150727151648.GB20963@kernel.org> <55B6D013.4080401@hitachi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55B6D013.4080401@hitachi.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Jul 28, 2015 at 09:42:59AM +0900, Masami Hiramatsu escreveu: > On 2015/07/28 0:16, Arnaldo Carvalho de Melo wrote: > > Em Mon, Jul 27, 2015 at 11:03:20PM +0900, Namhyung Kim escreveu: > >> IMHO @ looks perfect for pathnames but I don't know about build-id as > >> it can be thought as some address. Anyway I still think @ is a good > >> choice though. ;-) > > Yeah, perhaps we need further clarification? I.e. something like: > > sdt_foo:bar:libfoo1.so@buildid(0x1234) > > Or something else, perhaps shorter, that clarifies that it is a buildid? > > Hmm, Do we really need such additional buildid? Even though, I think "or something else, perhaps shorter" :-) > the build id should have different delimiter, like '%', as below. > > sdt_foo:bar@libfoo1.so%buildid How about: sdt_foo:bar@libfoo1.so(0x1234) Which is clear, to humans: "hey, I want the SDT event 'bar' at the 'libfoo1' library, but make sure it is the one which contents have build id '0x1234'". But even the name of the library is not strictly needed, would be just a nicety for humans, as the way buildids are looked up are by means of: [acme@zoo tuna]$ ls -la /usr/lib/debug/.build-id/ | tail -5 drwxr-xr-x. 2 root root 4096 Jul 23 09:26 fb/ drwxr-xr-x. 2 root root 4096 Jun 22 19:35 fc/ drwxr-xr-x. 2 root root 4096 Jun 22 19:35 fd/ drwxr-xr-x. 2 root root 4096 Jun 22 19:35 fe/ drwxr-xr-x. 2 root root 4096 Jun 26 16:57 ff/ [acme@zoo tuna]$ So, having: sdt_foo:bar@0x1234 Should be unambiguous and shorter. - ARnaldo