Re: [PATCH] perf evlist: Fix id index for heterogeneous systems

2021-01-21 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 21, 2021 at 03:39:03PM +0200, Adrian Hunter escreveu: > On 21/01/21 3:19 pm, Arnaldo Carvalho de Melo wrote: > > Em Thu, Jan 21, 2021 at 02:54:46PM +0200, Adrian Hunter escreveu: > >> perf_evlist__set_sid_idx() updates perf_sample_id with the evlist map > >> index, cpu number and tid.

Re: [PATCH] perf evlist: Fix id index for heterogeneous systems

2021-01-21 Thread Adrian Hunter
On 21/01/21 3:19 pm, Arnaldo Carvalho de Melo wrote: > Em Thu, Jan 21, 2021 at 02:54:46PM +0200, Adrian Hunter escreveu: >> perf_evlist__set_sid_idx() updates perf_sample_id with the evlist map >> index, cpu number and tid. It is passed indexes to the evsel's cpu and >> thread maps, but references

Re: [PATCH] perf evlist: Fix id index for heterogeneous systems

2021-01-21 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 21, 2021 at 02:54:46PM +0200, Adrian Hunter escreveu: > perf_evlist__set_sid_idx() updates perf_sample_id with the evlist map > index, cpu number and tid. It is passed indexes to the evsel's cpu and > thread maps, but references the evlist's maps instead. That results in > using

[PATCH] perf evlist: Fix id index for heterogeneous systems

2021-01-21 Thread Adrian Hunter
perf_evlist__set_sid_idx() updates perf_sample_id with the evlist map index, cpu number and tid. It is passed indexes to the evsel's cpu and thread maps, but references the evlist's maps instead. That results in using incorrect cpu numbers on heterogeneous systems. Fix by using evsel maps. The id