From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18557 invoked by alias); 16 Mar 2010 21:56:56 -0000 Received: (qmail 18546 invoked by uid 22791); 16 Mar 2010 21:56:55 -0000 X-SWARE-Spam-Status: No, hits=-7.3 required=5.0 tests=AWL,BAYES_00,FS_TIP_DDD,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; Tue, 16 Mar 2010 21:56:50 +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 o2GLunke021082 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 16 Mar 2010 17:56:49 -0400 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 o2GLum4C031712; Tue, 16 Mar 2010 17:56:48 -0400 From: Masami Hiramatsu Subject: [PATCH -tip 00/10] perf-probe updates - data-structure support, etc. To: Ingo Molnar , lkml Cc: systemtap, DLE Date: Tue, 16 Mar 2010 21:56:00 -0000 Message-ID: <20100316220515.32050.82185.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/msg00676.txt.bz2 Hi Ingo, Here are several updates of perf-probe. This updates includes data structure accessing support --list option enhancement and --dry-run option support. - --dry-run allows users to run perf-probe just for checking that the command works correctly. - --list option enhancement allows user to check where the probes are put on (with filename/line number). - data structure accessing support allows user to trace the contents of local variables/function parameters. Long-term TODOs (future features): - Enhance probe-finder to decode call frame instructions. - Support tracing static variables (non global) - Support variable basic types from debuginfo (e.g. char, int, ...) - Support array element (var[N]) - Support string/dynamic arrays (*var, var[N..M]) - Support the type of return value - Support force type-casting ((type)var) - Support sys_perf_counter_open (for non-root users) - Support dynamic array-indexing (var[var2]) Miscs: - Better support for probes on modules - More debugger like enhancements(%next, --disasm, etc.) Thank you, --- Masami Hiramatsu (10): perf probe: Accessing members in data structures perf probe: List probes with line number and file name perf probe: Introduce kprobe_trace_event and perf_probe_event perf probe: Add --dry-run option perf probe: Introduce die_find_child() function perf probe: Rename some die_get_* functions perf probe: Rename session to param perf probe: Move add-probe routine under util/ perf probe: Use wrapper functions perf tools: Introduce xzalloc() for detecting out of memory tools/perf/Documentation/perf-probe.txt | 5 tools/perf/builtin-probe.c | 191 +------ tools/perf/util/probe-event.c | 830 +++++++++++++++++++++++-------- tools/perf/util/probe-event.h | 123 ++++- tools/perf/util/probe-finder.c | 459 ++++++++++++----- tools/perf/util/probe-finder.h | 60 +- tools/perf/util/util.h | 7 7 files changed, 1115 insertions(+), 560 deletions(-) -- Masami Hiramatsu e-mail: mhiramat@redhat.com