Re: [PATCH v2] perf script: Fix overrun issue for dynamically-allocated pmu type number

From: Arnaldo Carvalho de Melo
Date: Thu Jan 21 2021 - 15:26:38 EST


Em Wed, Jan 20, 2021 at 10:50:04PM +0100, Jiri Olsa escreveu:
> On Wed, Dec 09, 2020 at 08:58:28AM +0800, Jin Yao wrote:
> > After:
> > swapper 0 [000] 1397040.402011: 272384 cpu-clock: ffffffff9d4ddb6f cpuidle_enter_state+0xdf ([kernel.kallsyms])
> > swapper 0 [000] 1397040.402011: 5396 uncore_imc/data_reads/:
> > swapper 0 [000] 1397040.402011: 967 uncore_imc/data_writes/:
> > swapper 0 [000] 1397040.402259: 249153 cpu-clock: ffffffff9d4ddb6f cpuidle_enter_state+0xdf ([kernel.kallsyms])
> > swapper 0 [000] 1397040.402259: 7231 uncore_imc/data_reads/:
> > swapper 0 [000] 1397040.402259: 1297 uncore_imc/data_writes/:
> > swapper 0 [000] 1397040.402508: 249108 cpu-clock: ffffffff9d4ddb6f cpuidle_enter_state+0xdf ([kernel.kallsyms])
> > swapper 0 [000] 1397040.402508: 5333 uncore_imc/data_reads/:
> > swapper 0 [000] 1397040.402508: 1008 uncore_imc/data_writes/:
> >
> > Signed-off-by: Jin Yao <yao.jin@xxxxxxxxxxxxxxx>
> > ---
> > v2:
> > Remove Fixes tag because this issue has always been here, not caused by
> > 1405720d4f26 ("perf script: Add 'synth' event type for synthesized events").
> > No functional change in v2.
>
> Acked-by: Jiri Olsa <jolsa@xxxxxxxxxx>

Thanks, applied.

- Arnaldo