X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-perf-counters.c;h=535784752a790604f4fe933774d5de23d9d01e05;hb=b1199bd39f4b617b99518b72ceeea644b164b901;hp=e637bb75ca94c3ea2c991871ba2ce40617894f03;hpb=51ef453614a6db2b778595b16d93283d25db974a;p=lttng-modules.git diff --git a/src/lttng-context-perf-counters.c b/src/lttng-context-perf-counters.c index e637bb75..53578475 100644 --- a/src/lttng-context-perf-counters.c +++ b/src/lttng-context-perf-counters.c @@ -38,7 +38,7 @@ void perf_counter_record(struct lttng_kernel_ctx_field *field, struct perf_event *event; uint64_t value; - event = perf_field->e[ctx->cpu]; + event = perf_field->e[ctx->priv.reserve_cpu]; if (likely(event)) { if (unlikely(event->state == PERF_EVENT_STATE_ERROR)) { value = 0;