From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755133Ab3JYPUV (ORCPT ); Fri, 25 Oct 2013 11:20:21 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:50763 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754705Ab3JYPUR (ORCPT ); Fri, 25 Oct 2013 11:20:17 -0400 Message-ID: <526A8C2B.7000401@gmail.com> Date: Fri, 25 Oct 2013 09:20:11 -0600 From: David Ahern User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Pekka Enberg , Srikar Dronamraju CC: Pekka Enberg , Hemant Kumar , LKML , Peter Zijlstra , Oleg Nesterov , "hegdevasant@linux.vnet.ibm.com" , Ingo Molnar , "anton@redhat.com" , "systemtap@sourceware.org" , Namhyung Kim , Masami Hiramatsu , "aravinda@linux.vnet.ibm.com" Subject: Re: [PATCH v4 2/3] Support for perf to probe into SDT markers: References: <20131023044511.1886.82571.stgit@hemant-fedora> <20131023050502.1886.15779.stgit@hemant-fedora> <20131025125921.GA29424@linux.vnet.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/25/13 8:20 AM, Pekka Enberg wrote: >> Technically feasible. But then we would have to parse each of the >> libraries and executables to list them. Right? I am not sure if such a >> delay is acceptable. > > You could do it at 'perf list' time or even build time and cache it. And add lazy discovery to 'perf record' and friends. Instead searching all the known files or building a cache, how about just having an option like: perf list . perf-record could still do the probe magic behind the scenes. David