Lines Matching refs:task_ctx
362 struct x86_perf_task_context *task_ctx = ctx; in intel_pmu_lbr_restore() local
364 u64 tos = task_ctx->tos; in intel_pmu_lbr_restore()
369 for (i = 0; i < task_ctx->valid_lbrs; i++) { in intel_pmu_lbr_restore()
371 wrlbr_all(&task_ctx->lbr[i], lbr_idx, need_info); in intel_pmu_lbr_restore()
385 wrmsrl(MSR_LBR_SELECT, task_ctx->lbr_sel); in intel_pmu_lbr_restore()
390 struct x86_perf_task_context_arch_lbr *task_ctx = ctx; in intel_pmu_arch_lbr_restore() local
391 struct lbr_entry *entries = task_ctx->entries; in intel_pmu_arch_lbr_restore()
411 struct x86_perf_task_context_arch_lbr_xsave *task_ctx = ctx; in intel_pmu_arch_lbr_xrstors() local
413 xrstors(&task_ctx->xsave, XFEATURE_MASK_LBR); in intel_pmu_arch_lbr_xrstors()
454 struct x86_perf_task_context *task_ctx = ctx; in intel_pmu_lbr_save() local
464 if (!rdlbr_all(&task_ctx->lbr[i], lbr_idx, need_info)) in intel_pmu_lbr_save()
467 task_ctx->valid_lbrs = i; in intel_pmu_lbr_save()
468 task_ctx->tos = tos; in intel_pmu_lbr_save()
471 rdmsrl(MSR_LBR_SELECT, task_ctx->lbr_sel); in intel_pmu_lbr_save()
476 struct x86_perf_task_context_arch_lbr *task_ctx = ctx; in intel_pmu_arch_lbr_save() local
477 struct lbr_entry *entries = task_ctx->entries; in intel_pmu_arch_lbr_save()
496 struct x86_perf_task_context_arch_lbr_xsave *task_ctx = ctx; in intel_pmu_arch_lbr_xsaves() local
498 xsaves(&task_ctx->xsave, XFEATURE_MASK_LBR); in intel_pmu_arch_lbr_xsaves()
544 void *task_ctx; in intel_pmu_lbr_sched_task() local
554 task_ctx = ctx ? ctx->task_ctx_data : NULL; in intel_pmu_lbr_sched_task()
555 if (task_ctx) { in intel_pmu_lbr_sched_task()
557 __intel_pmu_lbr_restore(task_ctx); in intel_pmu_lbr_sched_task()
559 __intel_pmu_lbr_save(task_ctx); in intel_pmu_lbr_sched_task()