Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754276AbcKQAAm (ORCPT ); Wed, 16 Nov 2016 19:00:42 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34290 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753147AbcKQAAj (ORCPT ); Wed, 16 Nov 2016 19:00:39 -0500 From: Alexis Berlemont To: linux-kernel@vger.kernel.org Cc: Alexis Berlemont , peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com Subject: [PATCH 0/2] perf: add support of SDT probes arguments Date: Thu, 17 Nov 2016 00:55:59 +0100 Message-Id: <20161116235601.13433-1-alexis.berlemont@gmail.com> X-Mailer: git-send-email 2.10.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1258 Lines: 32 Hi, In the perf todo list (https://perf.wiki.kernel.org/index.php/Todo), there is an entry related with SDT markers support; SDT tracepoints were already supported by perf but, so far, the probes arguments are skipped. Here are 2 small patches which adds support of SDT probes arguments: $ perf record -e sdt_libfoo:table_frob -e sdt_libfoo:table_diddle test_sdt $ perf script test_sdt ... 666.255678: sdt_libfoo:table_frob: (4004d7) arg0=0 arg1=0 test_sdt ... 666.255683: sdt_libfoo:table_diddle: (40051a) arg0=0 arg1=0 test_sdt ... 666.255686: sdt_libfoo:table_frob: (4004d7) arg0=1 arg1=2 test_sdt ... 666.255689: sdt_libfoo:table_diddle: (40051a) arg0=3 arg1=4 test_sdt ... 666.255692: sdt_libfoo:table_frob: (4004d7) arg0=2 arg1=4 test_sdt ... 666.255694: sdt_libfoo:table_diddle: (40051a) arg0=6 arg1=8 The patches were generated against tip/perf/core. Alexis. Alexis Berlemont (2): perf sdt: add scanning of sdt probles arguments perf probe: add sdt probes arguments into the uprobe cmd string tools/perf/util/probe-file.c | 176 ++++++++++++++++++++++++++++++++++++++++++- tools/perf/util/symbol-elf.c | 16 +++- tools/perf/util/symbol.h | 1 + 3 files changed, 188 insertions(+), 5 deletions(-) -- 2.10.2