[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200113152259.GD10620@leoy-ThinkPad-X240s>
Date: Mon, 13 Jan 2020 23:22:59 +0800
From: Leo Yan <leo.yan@...aro.org>
To: Jiri Olsa <jolsa@...hat.com>
Cc: Arnaldo Carvalho de Melo <acme@...hat.com>,
Jiri Olsa <jolsa@...nel.org>,
Mathieu Poirier <mathieu.poirier@...aro.org>,
Suzuki K Poulose <suzuki.poulose@....com>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Namhyung Kim <namhyung@...nel.org>,
Ian Rogers <irogers@...gle.com>,
Adrian Hunter <adrian.hunter@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
Andi Kleen <ak@...ux.intel.com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Mike Leach <mike.leach@...aro.org>
Subject: Re: [PATCH v4 1/2] perf parse: Refactor struct perf_evsel_config_term
On Fri, Jan 10, 2020 at 04:04:22PM +0100, Jiri Olsa wrote:
> On Wed, Jan 08, 2020 at 10:20:09PM +0800, Leo Yan wrote:
> > The struct perf_evsel_config_term::val is a union which contains
> > multiple variables for corresponding types. This leads the union to
> > be complex and also causes complex code logic.
> >
> > This patch refactors the structure to use two general variables in the
> > 'val' union: one is 'num' for unsigned 64-bit integer and another is
> > 'str' for string variable. This can simplify the data structure and
> > the related code, this also can benefit for possibly extension.
> >
> > Signed-off-by: Leo Yan <leo.yan@...aro.org>
>
> there's some arch code that needs to be changed.. please
> change other archs as well
>
>
> CC arch/x86/util/intel-pt.o
> arch/x86/util/intel-pt.c: In function ‘intel_pt_config_sample_mode’:
> arch/x86/util/intel-pt.c:563:24: error: ‘union <anonymous>’ has no member named ‘cfg_chg’
> 563 | user_bits = term->val.cfg_chg;
This compiling error will be dismissed in patch v5, since val.cfg_chg
is kept in the structure.
Thanks,
Leo
Powered by blists - more mailing lists