Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755252AbbEECfF (ORCPT ); Mon, 4 May 2015 22:35:05 -0400 Received: from mail9.hitachi.co.jp ([133.145.228.44]:42756 "EHLO mail9.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751291AbbEECby (ORCPT ); Mon, 4 May 2015 22:31:54 -0400 X-AuditID: 85900ec0-a3cccb9000003d4c-c6-55482b8a149c Subject: [PATCH perf/core v4 0/4] perf-probe: Add filtering features From: Masami Hiramatsu To: Arnaldo Carvalho de Melo Cc: Peter Zijlstra , Linux Kernel Mailing List , David Ahern , namhyung@kernel.org, Jiri Olsa , Ingo Molnar Date: Tue, 05 May 2015 11:29:46 +0900 Message-ID: <20150505022945.23399.993.stgit@localhost.localdomain> In-Reply-To: <20150504151733.GB10475@kernel.org> References: <20150504151733.GB10475@kernel.org> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1996 Lines: 61 Hi, Here is a series of patches which improves perf-probe to add filtering features for --del and --funcs, and cleanup code. This version is just updated for the latest perf/core. --del and --funcs accepts filter rules too which is more flexible than simple wildcard. ---- # ./perf probe -d 'vfs*|malloc' Removed event: probe:vfs_read Removed event: probe_libc:malloc ---- Changes in v4: - Removes patches which already merged. - [1/4] Update for the latest perf/core. Changes in v3: - [1/8] Split strfilter__or() and add strfilter__and() from v2 [3/8]. Also rename strfilter__add() to strfilter__append(). - [2/8] Split strfilter__string from v2 [5/8]. Changes in v2: - [2/8] Fix to check errors except -ENOENT on deleting events. - [5/8] Ditto. - [5/8] Fix to check memory allocation error in strfilter__string. - [5/8] Fix to check errors of strfilter__string for verifying given filter. Thank you, --- Masami Hiramatsu (4): perf probe: Allow to use filter on --del command perf probe: Accept filter argument for --funcs perf probe: Remove redundant cleanup of params.filter perf probe: Cleanup and consolidate command parsers tools/perf/Documentation/perf-probe.txt | 3 - tools/perf/builtin-probe.c | 128 ++++++++++++------------------- tools/perf/util/probe-event.c | 102 ++++++++----------------- tools/perf/util/probe-event.h | 2 4 files changed, 83 insertions(+), 152 deletions(-) -- Masami HIRAMATSU Linux Technology Research Center, System Productivity Research Dept. Center for Technology Innovation - Systems Engineering Hitachi, Ltd., Research & Development Group 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/