Re: [PATCH v3 1/2] perf stat: Introduce struct runtime_stat_data

2021-01-15 Thread Arnaldo Carvalho de Melo
Em Fri, Jan 15, 2021 at 09:37:44AM +0100, Jiri Olsa escreveu: > On Fri, Jan 15, 2021 at 04:11:38PM +0900, Namhyung Kim wrote: > > To pass more info to the saved_value in the runtime_stat, add a new > > struct runtime_stat_data. Currently it only has 'ctx' field but later > > patch will add more.

Re: [PATCH v3 1/2] perf stat: Introduce struct runtime_stat_data

2021-01-15 Thread Jiri Olsa
On Fri, Jan 15, 2021 at 04:11:38PM +0900, Namhyung Kim wrote: > To pass more info to the saved_value in the runtime_stat, add a new > struct runtime_stat_data. Currently it only has 'ctx' field but later > patch will add more. > > Note that we intentionally pass 0 as ctx to clock-related events

[PATCH v3 1/2] perf stat: Introduce struct runtime_stat_data

2021-01-14 Thread Namhyung Kim
To pass more info to the saved_value in the runtime_stat, add a new struct runtime_stat_data. Currently it only has 'ctx' field but later patch will add more. Note that we intentionally pass 0 as ctx to clock-related events for compatibility. It was already there in a few places. So move the