[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YRKGo1AtfBn85sZ7@kernel.org>
Date: Tue, 10 Aug 2021 11:01:07 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: John Garry <john.garry@...wei.com>
Cc: peterz@...radead.org, mingo@...hat.com, mark.rutland@....com,
alexander.shishkin@...ux.intel.com, jolsa@...hat.com,
namhyung@...nel.org, yao.jin@...ux.intel.com,
linux-kernel@...r.kernel.org, linux-perf-users@...r.kernel.org,
irogers@...gle.com, linuxarm@...wei.com
Subject: Re: [PATCH 02/11] perf jevents: Relocate test events to cpu folder
Em Mon, Aug 09, 2021 at 04:46:04PM +0100, John Garry escreveu:
> On 03/08/2021 09:19, John Garry wrote:
> > So I think we need something like this:
> >
> > ----->8--------
> >
> > From a08df563665e9ec088b1af86ceed058497e112a4 Mon Sep 17 00:00:00 2001
> > From: John Garry <john.garry@...wei.com>
> > Date: Tue, 3 Aug 2021 08:44:09 +0100
> > Subject: [PATCH] perf jevents: Make build dependency on test JSONs
> >
> > Currently all JSONs and the mapfile for an arch are dependencies for
> > building pmu-events.c
> >
> > The test JSONs are missing as a dependency, so add them.
> >
> > Signed-off-by: John Garry <john.garry@...wei.com>
> >
> > diff --git a/tools/perf/pmu-events/Build b/tools/perf/pmu-events/Build
> > index 215ba30b8534..a055dee6a46a 100644
> > --- a/tools/perf/pmu-events/Build
> > +++ b/tools/perf/pmu-events/Build
> > @@ -6,10 +6,13 @@ pmu-events-y += pmu-events.o
> > JDIR = pmu-events/arch/$(SRCARCH)
> > JSON = $(shell [ -d $(JDIR) ] && \
> > find $(JDIR) -name '*.json' -o -name 'mapfile.csv')
> > +JDIR_TEST = pmu-events/arch/test
> > +JSON_TEST = $(shell [ -d $(JDIR_TEST) ] && \
> > + find $(JDIR_TEST) -name '*.json')
> >
> > #
> > # Locate/process JSON files in pmu-events/arch/
> > # directory and create tables in pmu-events.c.
> > #
> > -$(OUTPUT)pmu-events/pmu-events.c: $(JSON) $(JEVENTS)
> > +$(OUTPUT)pmu-events/pmu-events.c: $(JSON) $(JSON_TEST) $(JEVENTS)
> > $(Q)$(call echo-cmd,gen)$(JEVENTS) $(SRCARCH) pmu-events/arch
> > $(OUTPUT)pmu-events/pmu-events.c $(V)
> >
> >
> > -----8<-----
>
> Hi Arnaldo,
>
> Shall I send this as a formal patch?
The question is when should I apply this patch? After this series? After
the patch I commented about, before?
- Arnaldo
Powered by blists - more mailing lists