Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162132AbbKEOmF (ORCPT ); Thu, 5 Nov 2015 09:42:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40847 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162058AbbKEOmB (ORCPT ); Thu, 5 Nov 2015 09:42:01 -0500 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , David Ahern , Ingo Molnar , Namhyung Kim , Peter Zijlstra , "Liang, Kan" Subject: [PATCH 21/25] perf script: Add process_stat/process_stat_interval scripting interface Date: Thu, 5 Nov 2015 15:41:05 +0100 Message-Id: <1446734469-11352-22-git-send-email-jolsa@kernel.org> In-Reply-To: <1446734469-11352-1-git-send-email-jolsa@kernel.org> References: <1446734469-11352-1-git-send-email-jolsa@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1329 Lines: 40 Python and perl scripting code will define those callbacks and get stat data. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-6802z3siu5f59wdsmhaym3wm@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/trace-event.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/perf/util/trace-event.h b/tools/perf/util/trace-event.h index b85ee55cca0c..0ebc9dab2c7c 100644 --- a/tools/perf/util/trace-event.h +++ b/tools/perf/util/trace-event.h @@ -65,6 +65,7 @@ int tracing_data_put(struct tracing_data *tdata); struct addr_location; struct perf_session; +struct perf_stat_config; struct scripting_ops { const char *name; @@ -75,6 +76,9 @@ struct scripting_ops { struct perf_sample *sample, struct perf_evsel *evsel, struct addr_location *al); + void (*process_stat) (struct perf_stat_config *config, + struct perf_evsel *evsel, u64 time); + void (*process_stat_interval) (u64 time); int (*generate_script) (struct pevent *pevent, const char *outfile); }; -- 2.4.3 -- 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/