Re: [RFC v2] perf: Rewrite core context handling

Ravi Bangoria
2022-08-22T14:40:49Z

> @@ -915,7 +925,7 @@ static int perf_cgroup_ensure_storage(struct perf_event *event,
> heap_size++;
>
> for_each_possible_cpu(cpu) {
> - cpuctx = per_cpu_ptr(event->pmu->pmu_cpu_context, cpu);
> + cpuctx = this_cpu_ptr(&cpu_context);

This should be fixed as well:

s/this_cpu_ptr(&cpu_context)/per_cpu_ptr(&cpu_context, cpu)/

Thanks,
Ravi