Lines Matching refs:ctx_state
292 unsigned int ctx_state; /* state: active/inactive (no bitfield) */ member
833 ctx->ctx_state = PFM_CTX_UNLOADED; in pfm_context_alloc()
966 if (ctx->ctx_state != PFM_CTX_MASKED) { in pfm_restore_monitoring()
968 task_pid_nr(task), task_pid_nr(current), ctx->ctx_state); in pfm_restore_monitoring()
1803 state = ctx->ctx_state; in pfm_flush()
1858 DPRINT(("ctx_state=%d\n", ctx->ctx_state)); in pfm_flush()
1933 state = ctx->ctx_state; in pfm_close()
2022 ctx->ctx_state = PFM_CTX_ZOMBIE; in pfm_close()
2037 state = ctx->ctx_state; in pfm_close()
2724 if (ctx->ctx_state == PFM_CTX_MASKED) { in pfm_reset_regs()
2779 state = ctx->ctx_state; in pfm_write_pmcs()
3018 state = ctx->ctx_state; in pfm_write_pmds()
3218 state = ctx->ctx_state; in pfm_read_pmds()
3463 state = ctx->ctx_state; in pfm_restart()
3545 ctx->ctx_state = PFM_CTX_LOADED; in pfm_restart()
3642 state = ctx->ctx_state; in pfm_write_ibr_dbr()
3892 state = ctx->ctx_state; in pfm_stop()
3980 state = ctx->ctx_state; in pfm_start()
4120 state = ctx->ctx_state; in pfm_context_load()
4128 ctx->ctx_state)); in pfm_context_load()
4233 ctx->ctx_state = PFM_CTX_LOADED; in pfm_context_load()
4343 ctx->ctx_state = PFM_CTX_UNLOADED; in pfm_context_load()
4369 DPRINT(("ctx_state=%d task [%d]\n", ctx->ctx_state, task ? task_pid_nr(task) : -1)); in pfm_context_unload()
4371 prev_state = ctx->ctx_state; in pfm_context_unload()
4388 ctx->ctx_state = PFM_CTX_UNLOADED; in pfm_context_unload()
4507 DPRINT(("state=%d task [%d]\n", ctx->ctx_state, task_pid_nr(task))); in pfm_exit_thread()
4509 state = ctx->ctx_state; in pfm_exit_thread()
4609 state = ctx->ctx_state; in pfm_check_task_state()
4695 if (ctx->ctx_state != old_state) { in pfm_check_task_state()
4696 DPRINT(("old_state=%d new_state=%d\n", old_state, ctx->ctx_state)); in pfm_check_task_state()
4821 prefetch(&ctx->ctx_state); in sys_perfmonctl()
4864 state = ctx->ctx_state; in pfm_resume_after_ovfl()
4889 if (ctx->ctx_state == PFM_CTX_MASKED) pfm_restore_monitoring(current); in pfm_resume_after_ovfl()
4894 ctx->ctx_state = PFM_CTX_LOADED; in pfm_resume_after_ovfl()
4967 DPRINT(("reason=%d state=%d\n", reason, ctx->ctx_state)); in pfm_handle_work()
4972 if (ctx->ctx_fl_going_zombie || ctx->ctx_state == PFM_CTX_ZOMBIE) in pfm_handle_work()
5042 if (ctx->ctx_state == PFM_CTX_ZOMBIE) { in pfm_notify_user()
5132 if (unlikely(ctx->ctx_state == PFM_CTX_ZOMBIE)) goto stop_monitoring; in pfm_overflow_handler()
5347 ctx->ctx_state = PFM_CTX_MASKED; in pfm_overflow_handler()
5763 if (ctx->ctx_state == PFM_CTX_ZOMBIE) { in pfm_save_regs()
5959 if (unlikely(ctx->ctx_state == PFM_CTX_ZOMBIE)) { in pfm_load_regs()
6666 ctx->ctx_state, in dump_pmu_state()