Lines Matching refs:ctx_state
288 unsigned int ctx_state; /* state: active/inactive (no bitfield) */ member
876 ctx->ctx_state = PFM_CTX_UNLOADED; in pfm_context_alloc()
1009 if (ctx->ctx_state != PFM_CTX_MASKED) { in pfm_restore_monitoring()
1011 task_pid_nr(task), task_pid_nr(current), ctx->ctx_state); in pfm_restore_monitoring()
1846 state = ctx->ctx_state; in pfm_flush()
1901 DPRINT(("ctx_state=%d\n", ctx->ctx_state)); in pfm_flush()
1976 state = ctx->ctx_state; in pfm_close()
2065 ctx->ctx_state = PFM_CTX_ZOMBIE; in pfm_close()
2080 state = ctx->ctx_state; in pfm_close()
2779 if (ctx->ctx_state == PFM_CTX_MASKED) { in pfm_reset_regs()
2834 state = ctx->ctx_state; in pfm_write_pmcs()
3073 state = ctx->ctx_state; in pfm_write_pmds()
3273 state = ctx->ctx_state; in pfm_read_pmds()
3518 state = ctx->ctx_state; in pfm_restart()
3600 ctx->ctx_state = PFM_CTX_LOADED; in pfm_restart()
3697 state = ctx->ctx_state; in pfm_write_ibr_dbr()
3947 state = ctx->ctx_state; in pfm_stop()
4035 state = ctx->ctx_state; in pfm_start()
4175 state = ctx->ctx_state; in pfm_context_load()
4183 ctx->ctx_state)); in pfm_context_load()
4288 ctx->ctx_state = PFM_CTX_LOADED; in pfm_context_load()
4398 ctx->ctx_state = PFM_CTX_UNLOADED; in pfm_context_load()
4424 DPRINT(("ctx_state=%d task [%d]\n", ctx->ctx_state, task ? task_pid_nr(task) : -1)); in pfm_context_unload()
4426 prev_state = ctx->ctx_state; in pfm_context_unload()
4443 ctx->ctx_state = PFM_CTX_UNLOADED; in pfm_context_unload()
4562 DPRINT(("state=%d task [%d]\n", ctx->ctx_state, task_pid_nr(task))); in pfm_exit_thread()
4564 state = ctx->ctx_state; in pfm_exit_thread()
4664 state = ctx->ctx_state; in pfm_check_task_state()
4750 if (ctx->ctx_state != old_state) { in pfm_check_task_state()
4751 DPRINT(("old_state=%d new_state=%d\n", old_state, ctx->ctx_state)); in pfm_check_task_state()
4876 prefetch(&ctx->ctx_state); in sys_perfmonctl()
4919 state = ctx->ctx_state; in pfm_resume_after_ovfl()
4944 if (ctx->ctx_state == PFM_CTX_MASKED) pfm_restore_monitoring(current); in pfm_resume_after_ovfl()
4949 ctx->ctx_state = PFM_CTX_LOADED; in pfm_resume_after_ovfl()
5022 DPRINT(("reason=%d state=%d\n", reason, ctx->ctx_state)); in pfm_handle_work()
5027 if (ctx->ctx_fl_going_zombie || ctx->ctx_state == PFM_CTX_ZOMBIE) in pfm_handle_work()
5097 if (ctx->ctx_state == PFM_CTX_ZOMBIE) { in pfm_notify_user()
5187 if (unlikely(ctx->ctx_state == PFM_CTX_ZOMBIE)) goto stop_monitoring; in pfm_overflow_handler()
5402 ctx->ctx_state = PFM_CTX_MASKED; in pfm_overflow_handler()
5825 if (ctx->ctx_state == PFM_CTX_ZOMBIE) { in pfm_save_regs()
6021 if (unlikely(ctx->ctx_state == PFM_CTX_ZOMBIE)) { in pfm_load_regs()
6743 ctx->ctx_state, in dump_pmu_state()