Re: [PATCH V2] powerpc/perf: Fix task context setting for trace imc

2022-02-14 Thread Michael Ellerman
On Wed, 2 Feb 2022 09:48:37 +0530, Athira Rajeev wrote: > Trace IMC (In-Memory collection counters) in powerpc is > useful for application level profiling. For trace_imc, > presently task context (task_ctx_nr) is set to > perf_hw_context. But perf_hw_context is to be used for > cpu PMU. So for trac

[PATCH V2] powerpc/perf: Fix task context setting for trace imc

2022-02-01 Thread Athira Rajeev
Trace IMC (In-Memory collection counters) in powerpc is useful for application level profiling. For trace_imc, presently task context (task_ctx_nr) is set to perf_hw_context. But perf_hw_context is to be used for cpu PMU. So for trace_imc, even though it is per thread PMU, it is preferred to use sw