Lines Matching refs:ctx_state
290 unsigned int ctx_state; /* state: active/inactive (no bitfield) */ member
878 ctx->ctx_state = PFM_CTX_UNLOADED; in pfm_context_alloc()
1011 if (ctx->ctx_state != PFM_CTX_MASKED) { in pfm_restore_monitoring()
1013 task_pid_nr(task), task_pid_nr(current), ctx->ctx_state); in pfm_restore_monitoring()
1848 state = ctx->ctx_state; in pfm_flush()
1903 DPRINT(("ctx_state=%d\n", ctx->ctx_state)); in pfm_flush()
1978 state = ctx->ctx_state; in pfm_close()
2067 ctx->ctx_state = PFM_CTX_ZOMBIE; in pfm_close()
2082 state = ctx->ctx_state; in pfm_close()
2771 if (ctx->ctx_state == PFM_CTX_MASKED) { in pfm_reset_regs()
2826 state = ctx->ctx_state; in pfm_write_pmcs()
3065 state = ctx->ctx_state; in pfm_write_pmds()
3265 state = ctx->ctx_state; in pfm_read_pmds()
3510 state = ctx->ctx_state; in pfm_restart()
3592 ctx->ctx_state = PFM_CTX_LOADED; in pfm_restart()
3689 state = ctx->ctx_state; in pfm_write_ibr_dbr()
3939 state = ctx->ctx_state; in pfm_stop()
4027 state = ctx->ctx_state; in pfm_start()
4167 state = ctx->ctx_state; in pfm_context_load()
4175 ctx->ctx_state)); in pfm_context_load()
4280 ctx->ctx_state = PFM_CTX_LOADED; in pfm_context_load()
4390 ctx->ctx_state = PFM_CTX_UNLOADED; in pfm_context_load()
4416 DPRINT(("ctx_state=%d task [%d]\n", ctx->ctx_state, task ? task_pid_nr(task) : -1)); in pfm_context_unload()
4418 prev_state = ctx->ctx_state; in pfm_context_unload()
4435 ctx->ctx_state = PFM_CTX_UNLOADED; in pfm_context_unload()
4554 DPRINT(("state=%d task [%d]\n", ctx->ctx_state, task_pid_nr(task))); in pfm_exit_thread()
4556 state = ctx->ctx_state; in pfm_exit_thread()
4656 state = ctx->ctx_state; in pfm_check_task_state()
4742 if (ctx->ctx_state != old_state) { in pfm_check_task_state()
4743 DPRINT(("old_state=%d new_state=%d\n", old_state, ctx->ctx_state)); in pfm_check_task_state()
4868 prefetch(&ctx->ctx_state); in sys_perfmonctl()
4911 state = ctx->ctx_state; in pfm_resume_after_ovfl()
4936 if (ctx->ctx_state == PFM_CTX_MASKED) pfm_restore_monitoring(current); in pfm_resume_after_ovfl()
4941 ctx->ctx_state = PFM_CTX_LOADED; in pfm_resume_after_ovfl()
5014 DPRINT(("reason=%d state=%d\n", reason, ctx->ctx_state)); in pfm_handle_work()
5019 if (ctx->ctx_fl_going_zombie || ctx->ctx_state == PFM_CTX_ZOMBIE) in pfm_handle_work()
5089 if (ctx->ctx_state == PFM_CTX_ZOMBIE) { in pfm_notify_user()
5179 if (unlikely(ctx->ctx_state == PFM_CTX_ZOMBIE)) goto stop_monitoring; in pfm_overflow_handler()
5394 ctx->ctx_state = PFM_CTX_MASKED; in pfm_overflow_handler()
5810 if (ctx->ctx_state == PFM_CTX_ZOMBIE) { in pfm_save_regs()
6006 if (unlikely(ctx->ctx_state == PFM_CTX_ZOMBIE)) { in pfm_load_regs()
6721 ctx->ctx_state, in dump_pmu_state()