Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757065AbbKRUuq (ORCPT ); Wed, 18 Nov 2015 15:50:46 -0500 Received: from mail.kernel.org ([198.145.29.136]:58395 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754683AbbKRUuo (ORCPT ); Wed, 18 Nov 2015 15:50:44 -0500 Date: Wed, 18 Nov 2015 17:50:39 -0300 From: Arnaldo Carvalho de Melo To: Sukadev Bhattiprolu Cc: Jiri Olsa , ast@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf test: Add bpf-output event Message-ID: <20151118205039.GX22729@kernel.org> References: <20151118192603.GA374@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151118192603.GA374@us.ibm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2791 Lines: 70 Em Wed, Nov 18, 2015 at 11:26:04AM -0800, Sukadev Bhattiprolu escreveu: > >From 8f71d55dd3e27e6ca2138e3ed6dfeceb1c00a426 Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Wed, 18 Nov 2015 19:06:08 -0500 > Subject: [PATCH] perf test: Add bpf-output event > > The kernel has added support for 'PERF_COUNT_SW_BPF_OUTPUT' but that is > missing from the perf tool. Among other things, results in the 'roundtrip > evsel->name check' test case of 'perf test' failing on Powerpc. Next time can you please state if this is for this merge window or for the next? Will apply it for perf/core, for the next merge window. - Arnaldo > Signed-off-by: Sukadev Bhattiprolu > --- > tools/perf/util/evsel.c | 1 + > tools/perf/util/parse-events.c | 4 ++++ > tools/perf/util/parse-events.l | 1 + > 3 files changed, 6 insertions(+) > > diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c > index 397fb4e..2033632 100644 > --- a/tools/perf/util/evsel.c > +++ b/tools/perf/util/evsel.c > @@ -342,6 +342,7 @@ const char *perf_evsel__sw_names[PERF_COUNT_SW_MAX] = { > "alignment-faults", > "emulation-faults", > "dummy", > + "bpf-output", > }; > > static const char *__perf_evsel__sw_name(u64 config) > diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c > index e48d9da..40ae92a 100644 > --- a/tools/perf/util/parse-events.c > +++ b/tools/perf/util/parse-events.c > @@ -124,6 +124,10 @@ struct event_symbol event_symbols_sw[PERF_COUNT_SW_MAX] = { > .symbol = "dummy", > .alias = "", > }, > + [PERF_COUNT_SW_BPF_OUTPUT] = { > + .symbol = "bpf-output", > + .alias = "", > + }, > }; > > #define __PERF_EVENT_FIELD(config, name) \ > diff --git a/tools/perf/util/parse-events.l b/tools/perf/util/parse-events.l > index 58c5831..380298d 100644 > --- a/tools/perf/util/parse-events.l > +++ b/tools/perf/util/parse-events.l > @@ -238,6 +238,7 @@ cpu-migrations|migrations { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COU > alignment-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_ALIGNMENT_FAULTS); } > emulation-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_EMULATION_FAULTS); } > dummy { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_DUMMY); } > +bpf-output { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_BPF_OUTPUT); } > > /* > * We have to handle the kernel PMU event cycles-ct/cycles-t/mem-loads/mem-stores separately. > -- > 1.8.3.1 -- 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/