Lines Matching refs:ctx_state
288 unsigned int ctx_state; /* state: active/inactive (no bitfield) */ member
887 ctx->ctx_state = PFM_CTX_UNLOADED; in pfm_context_alloc()
1020 if (ctx->ctx_state != PFM_CTX_MASKED) { in pfm_restore_monitoring()
1022 task_pid_nr(task), task_pid_nr(current), ctx->ctx_state); in pfm_restore_monitoring()
1866 state = ctx->ctx_state; in pfm_flush()
1921 DPRINT(("ctx_state=%d\n", ctx->ctx_state)); in pfm_flush()
1996 state = ctx->ctx_state; in pfm_close()
2085 ctx->ctx_state = PFM_CTX_ZOMBIE; in pfm_close()
2100 state = ctx->ctx_state; in pfm_close()
2818 if (ctx->ctx_state == PFM_CTX_MASKED) { in pfm_reset_regs()
2873 state = ctx->ctx_state; in pfm_write_pmcs()
3112 state = ctx->ctx_state; in pfm_write_pmds()
3312 state = ctx->ctx_state; in pfm_read_pmds()
3557 state = ctx->ctx_state; in pfm_restart()
3639 ctx->ctx_state = PFM_CTX_LOADED; in pfm_restart()
3736 state = ctx->ctx_state; in pfm_write_ibr_dbr()
3986 state = ctx->ctx_state; in pfm_stop()
4074 state = ctx->ctx_state; in pfm_start()
4214 state = ctx->ctx_state; in pfm_context_load()
4222 ctx->ctx_state)); in pfm_context_load()
4327 ctx->ctx_state = PFM_CTX_LOADED; in pfm_context_load()
4437 ctx->ctx_state = PFM_CTX_UNLOADED; in pfm_context_load()
4463 DPRINT(("ctx_state=%d task [%d]\n", ctx->ctx_state, task ? task_pid_nr(task) : -1)); in pfm_context_unload()
4465 prev_state = ctx->ctx_state; in pfm_context_unload()
4482 ctx->ctx_state = PFM_CTX_UNLOADED; in pfm_context_unload()
4601 DPRINT(("state=%d task [%d]\n", ctx->ctx_state, task_pid_nr(task))); in pfm_exit_thread()
4603 state = ctx->ctx_state; in pfm_exit_thread()
4703 state = ctx->ctx_state; in pfm_check_task_state()
4789 if (ctx->ctx_state != old_state) { in pfm_check_task_state()
4790 DPRINT(("old_state=%d new_state=%d\n", old_state, ctx->ctx_state)); in pfm_check_task_state()
4915 prefetch(&ctx->ctx_state); in sys_perfmonctl()
4958 state = ctx->ctx_state; in pfm_resume_after_ovfl()
4983 if (ctx->ctx_state == PFM_CTX_MASKED) pfm_restore_monitoring(current); in pfm_resume_after_ovfl()
4988 ctx->ctx_state = PFM_CTX_LOADED; in pfm_resume_after_ovfl()
5061 DPRINT(("reason=%d state=%d\n", reason, ctx->ctx_state)); in pfm_handle_work()
5066 if (ctx->ctx_fl_going_zombie || ctx->ctx_state == PFM_CTX_ZOMBIE) in pfm_handle_work()
5136 if (ctx->ctx_state == PFM_CTX_ZOMBIE) { in pfm_notify_user()
5226 if (unlikely(ctx->ctx_state == PFM_CTX_ZOMBIE)) goto stop_monitoring; in pfm_overflow_handler()
5441 ctx->ctx_state = PFM_CTX_MASKED; in pfm_overflow_handler()
5880 if (ctx->ctx_state == PFM_CTX_ZOMBIE) { in pfm_save_regs()
6076 if (unlikely(ctx->ctx_state == PFM_CTX_ZOMBIE)) { in pfm_load_regs()
6799 ctx->ctx_state, in dump_pmu_state()