File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2243,6 +2243,13 @@ static void x86_pmu_sched_task(struct perf_event_context *ctx, bool sched_in)
2243
2243
x86_pmu .sched_task (ctx , sched_in );
2244
2244
}
2245
2245
2246
+ static void x86_pmu_swap_task_ctx (struct perf_event_context * prev ,
2247
+ struct perf_event_context * next )
2248
+ {
2249
+ if (x86_pmu .swap_task_ctx )
2250
+ x86_pmu .swap_task_ctx (prev , next );
2251
+ }
2252
+
2246
2253
void perf_check_microcode (void )
2247
2254
{
2248
2255
if (x86_pmu .check_microcode )
@@ -2297,6 +2304,7 @@ static struct pmu pmu = {
2297
2304
.event_idx = x86_pmu_event_idx ,
2298
2305
.sched_task = x86_pmu_sched_task ,
2299
2306
.task_ctx_size = sizeof (struct x86_perf_task_context ),
2307
+ .swap_task_ctx = x86_pmu_swap_task_ctx ,
2300
2308
.check_period = x86_pmu_check_period ,
2301
2309
2302
2310
.aux_output_match = x86_pmu_aux_output_match ,
You can’t perform that action at this time.
0 commit comments