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

From: Ravi Bangoria
Date: Mon Aug 22 2022 - 10:40:49 EST



> @@ -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