lkml.org 
[lkml]   [2022]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC v2] perf: Rewrite core context handling

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

    \
     
     \ /
      Last update: 2022-08-22 16:41    [W:4.380 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site