Re: [PATCH v2] perf bench: Share 'start', 'end', 'runtime' global vars

From: Arnaldo Carvalho de Melo
Date: Tue Mar 03 2020 - 14:19:42 EST


Em Tue, Mar 03, 2020 at 07:28:52PM +0100, Thomas Gleixner escreveu:
> Arnaldo Carvalho de Melo <arnaldo.melo@xxxxxxxxx> writes:
> >> > Don't we have header files for that?
> >
> >> Sure, that was the laziest/quickest way to "fix" that, the other was to
> >> stick a 'static' in front of it.
> >
> >> I'll go see if pushing them to a header file will not clash with other
> >> stuff.
> >
> > Better now? Had to prefix those, not to clash with local variables when
> > adding it to bench/bench.h.
>
> Yes.
>
> > Looking at the patch more can be done to share those benchmark
> > arguments, but this is the second minimal patch to get tools/perf to
> > build with the latest gcc (the one in Fedora rawhide and some other
> > distros).
>
> Right, but yes there is definitely quite some overlap there.
>
> Acked-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

Thanks, adding it to the cset,

- Arnaldo