From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754292AbbJPKnz (ORCPT ); Fri, 16 Oct 2015 06:43:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35886 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753835AbbJPKnv (ORCPT ); Fri, 16 Oct 2015 06:43:51 -0400 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , David Ahern , Ingo Molnar , Namhyung Kim , Peter Zijlstra , "Liang, Kan" Subject: [PATCH 53/57] perf script: Add process_stat/process_stat_interval scripting interface Date: Fri, 16 Oct 2015 12:41:28 +0200 Message-Id: <1444992092-17897-54-git-send-email-jolsa@kernel.org> In-Reply-To: <1444992092-17897-1-git-send-email-jolsa@kernel.org> References: <1444992092-17897-1-git-send-email-jolsa@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Python and perl scripting code will define those callbacks and get stat data. 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