From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1051 invoked by alias); 22 Feb 2010 22:49:29 -0000 Received: (qmail 1033 invoked by uid 22791); 22 Feb 2010 22:49:28 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Feb 2010 22:49:23 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1MMnLcS012503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 22 Feb 2010 17:49:21 -0500 Received: from localhost6.localdomain6 (dhcp-100-3-156.bos.redhat.com [10.16.3.156]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1MMnKUW006645; Mon, 22 Feb 2010 17:49:21 -0500 From: Masami Hiramatsu Subject: [PATCH -tip v2 0/9] perf-probe updates - use elfutils and introduce lazy matching To: Ingo Molnar , lkml Cc: systemtap, DLE Date: Mon, 22 Feb 2010 22:49:00 -0000 Message-ID: <20100222225320.20686.17645.stgit@localhost6.localdomain6> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2010-q1/txt/msg00438.txt.bz2 Hi Ingo, Here are several bugfixes and updates of perf-probe (v2). This updates includes moving onto elfutils-libdw and the lazy line matching support which you had mentioned :-) elfutils library is developed closely with gcc team, and it is simple and fast dwarf analysis library. lazy-matching is similar to glob matching but ignoring spaces in both of target and pattern. Changes in v2: (Fixed bugs on x86-64) - Fix a type-casting bug in Makefile. - Cast Dwarf_Addr/Dwarf_Word to unsigned long long for printf-formats. This is updated todo list. Most of them are related to the 'type' support. Long-term TODOs (future features): - Enhance probe-finder to decode call frame instructions. - Support sys_perf_counter_open (for non-root users) - Support tracing static variables (non global) - Support variable types from debuginfo (e.g. char, int, ...) - Support fields of data structures (var->field) - Support array (var[N]) - Support dynamic array-indexing (var[var2]) - Support string/dynamic arrays (*var, var[N..M]) - Support force type-casting ((type)var) - Support the type of return value Miscs: - Better support for probes on modules - --list option shows the file-name/line-number of each events. - More debugger like enhancements(%next, --disasm, etc.) Thank you, --- Masami Hiramatsu (9): perf probe: Add lazy line matching support perf probe: show more lines after last line perf probe: Check function address range strictly in line finder perf probe: Use libdw callback routines perf probe: Use elfutils-libdw for analyzing debuginfo perf probe: Rename probe finder functions perf probe: Fix bugs in line range finder perf probe: Update perf probe document perf probe: Do not show --line option without dwarf support tools/perf/Documentation/perf-probe.txt | 58 ++ tools/perf/Makefile | 10 tools/perf/builtin-probe.c | 36 + tools/perf/util/probe-event.c | 55 +- tools/perf/util/probe-finder.c | 1002 ++++++++++++++----------------- tools/perf/util/probe-finder.h | 53 +- tools/perf/util/string.c | 55 +- tools/perf/util/string.h | 1 8 files changed, 644 insertions(+), 626 deletions(-) -- Masami Hiramatsu e-mail: mhiramat@redhat.com