Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752053Ab3J3KFt (ORCPT ); Wed, 30 Oct 2013 06:05:49 -0400 Received: from mail9.hitachi.co.jp ([133.145.228.44]:36027 "EHLO mail9.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751088Ab3J3KFr (ORCPT ); Wed, 30 Oct 2013 06:05:47 -0400 Message-ID: <5270D9F7.3090105@hitachi.com> Date: Wed, 30 Oct 2013 19:05:43 +0900 From: Masami Hiramatsu Organization: Hitachi, Ltd., Japan User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: "Frank Ch. Eigler" Cc: Pekka Enberg , Hemant Kumar , LKML , Srikar Dronamraju , Peter Zijlstra , Oleg Nesterov , hegdevasant@linux.vnet.ibm.com, Ingo Molnar , anton@redhat.com, systemtap@sourceware.org, Namhyung Kim , aravinda@linux.vnet.ibm.com, dsahern@gmail.com, "yrl.pp-manager.tt@hitachi.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> In-Reply-To: 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: 1460 Lines: 43 (2013/10/26 20:16), Frank Ch. Eigler wrote: > Pekka Enberg writes: > >> Is there a technical reason why 'perf list' could not show all the >> available SDT markers on a system and that the 'mark to event' >> mapping cannot happen automatically? [...] > > A quick experiment with: > > find `echo $PATH | tr : ' '` -type f -perm -555 | > xargs readelf -n 2>/dev/null | > grep STAP 2>/dev/null > > suggests reasonable performance for my F19 workstation (a second or > two over ~6000 executables), once all the ELF content is in the block > cache. According to a stap eventcount.stp run, that required about > 50000 syscall.read events. > > Note that a $PATH search excludes shared libraries, which can also > carry markers. Adding /usr/lib* in more than doubles the > work, then there's /usr/libexec etc. To find all system libraries, we can use ldconfig. $ ldconfig --print-cache shows what dynamic libraries will be loaded. On my own laptop (running ubuntu13.04) shows ~1000 libs. Thank you, -- Masami HIRAMATSU IT Management Research Dept. Linux Technology Center Hitachi, Ltd., Yokohama Research Laboratory 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/