Re: [PATCH] perf cs-etm: Move defined of traceid_list

2020-05-05 Thread Arnaldo Carvalho de Melo
Em Tue, May 05, 2020 at 08:52:18AM -0600, Mathieu Poirier escreveu: > On Tue, 5 May 2020 at 07:37, Leo Yan wrote: > > > > The variable 'traceid_list' is defined in the header file cs-etm.h, > > if multiple C files include cs-etm.h the compiler might complaint for > > multiple definition of 'tracei

Re: [PATCH] perf cs-etm: Move defined of traceid_list

2020-05-05 Thread Mathieu Poirier
On Tue, 5 May 2020 at 07:37, Leo Yan wrote: > > The variable 'traceid_list' is defined in the header file cs-etm.h, > if multiple C files include cs-etm.h the compiler might complaint for > multiple definition of 'traceid_list'. > > To fix multiple definition error, move the definition of 'traceid

[PATCH] perf cs-etm: Move defined of traceid_list

2020-05-05 Thread Leo Yan
The variable 'traceid_list' is defined in the header file cs-etm.h, if multiple C files include cs-etm.h the compiler might complaint for multiple definition of 'traceid_list'. To fix multiple definition error, move the definition of 'traceid_list' into cs-etm.c. Fixes: cd8bfd8c973e ("perf tools: