/linux-4.4.14/include/linux/ |
H A D | context_tracking.h | 14 extern void __context_tracking_enter(enum ctx_state state); 15 extern void __context_tracking_exit(enum ctx_state state); 17 extern void context_tracking_enter(enum ctx_state state); 18 extern void context_tracking_exit(enum ctx_state state); 34 static inline enum ctx_state exception_enter(void) exception_enter() 36 enum ctx_state prev_ctx; exception_enter() 48 static inline void exception_exit(enum ctx_state prev_ctx) exception_exit() 64 static inline enum ctx_state ct_state(void) ct_state() 72 static inline enum ctx_state exception_enter(void) { return 0; } exception_exit() 73 static inline void exception_exit(enum ctx_state prev_ctx) { } ct_state() 74 static inline enum ctx_state ct_state(void) { return CONTEXT_DISABLED; } ct_state()
|
H A D | context_tracking_state.h | 16 enum ctx_state { enum in struct:context_tracking
|
/linux-4.4.14/kernel/ |
H A D | context_tracking.c | 61 void __context_tracking_enter(enum ctx_state state) __context_tracking_enter() 104 void context_tracking_enter(enum ctx_state state) context_tracking_enter() 144 void __context_tracking_exit(enum ctx_state state) __context_tracking_exit() 168 void context_tracking_exit(enum ctx_state state) context_tracking_exit()
|
/linux-4.4.14/arch/ia64/kernel/ |
H A D | perfmon.c | 288 unsigned int ctx_state; /* state: active/inactive (no bitfield) */ member in struct:pfm_context 876 ctx->ctx_state = PFM_CTX_UNLOADED; pfm_context_alloc() 1009 if (ctx->ctx_state != PFM_CTX_MASKED) { pfm_restore_monitoring() 1011 task_pid_nr(task), task_pid_nr(current), ctx->ctx_state); pfm_restore_monitoring() 1846 state = ctx->ctx_state; pfm_flush() 1852 DPRINT(("ctx_state=%d is_current=%d\n", pfm_flush() 1901 DPRINT(("ctx_state=%d\n", ctx->ctx_state)); pfm_flush() 1976 state = ctx->ctx_state; pfm_close() 1982 DPRINT(("ctx_state=%d is_current=%d\n", pfm_close() 2017 * ctx_state = MASKED and not ZOMBIE pfm_close() 2026 DPRINT(("waking up ctx_state=%d\n", state)); pfm_close() 2058 DPRINT(("after zombie wakeup ctx_state=%d for\n", state)); pfm_close() 2065 ctx->ctx_state = PFM_CTX_ZOMBIE; pfm_close() 2080 state = ctx->ctx_state; pfm_close() 2104 DPRINT(("ctx_state=%d free_possible=%d addr=%p size=%lu\n", pfm_close() 2779 if (ctx->ctx_state == PFM_CTX_MASKED) { pfm_reset_regs() 2834 state = ctx->ctx_state; pfm_write_pmcs() 3073 state = ctx->ctx_state; pfm_write_pmds() 3273 state = ctx->ctx_state; pfm_read_pmds() 3300 DPRINT(("ld=%d apmu=%d ctx_state=%d\n", pfm_read_pmds() 3518 state = ctx->ctx_state; pfm_restart() 3600 ctx->ctx_state = PFM_CTX_LOADED; pfm_restart() 3697 state = ctx->ctx_state; pfm_write_ibr_dbr() 3947 state = ctx->ctx_state; pfm_stop() 3964 DPRINT(("task [%d] ctx_state=%d is_system=%d\n", pfm_stop() 4035 state = ctx->ctx_state; pfm_start() 4175 state = ctx->ctx_state; pfm_context_load() 4181 DPRINT(("cannot load to [%d], invalid ctx_state=%d\n", pfm_context_load() 4183 ctx->ctx_state)); pfm_context_load() 4288 ctx->ctx_state = PFM_CTX_LOADED; pfm_context_load() 4398 ctx->ctx_state = PFM_CTX_UNLOADED; pfm_context_load() 4424 DPRINT(("ctx_state=%d task [%d]\n", ctx->ctx_state, task ? task_pid_nr(task) : -1)); pfm_context_unload() 4426 prev_state = ctx->ctx_state; pfm_context_unload() 4433 DPRINT(("ctx_state=%d, nothing to do\n", prev_state)); pfm_context_unload() 4443 ctx->ctx_state = PFM_CTX_UNLOADED; pfm_context_unload() 4562 DPRINT(("state=%d task [%d]\n", ctx->ctx_state, task_pid_nr(task))); pfm_exit_thread() 4564 state = ctx->ctx_state; pfm_exit_thread() 4664 state = ctx->ctx_state; pfm_check_task_state() 4750 if (ctx->ctx_state != old_state) { pfm_check_task_state() 4751 DPRINT(("old_state=%d new_state=%d\n", old_state, ctx->ctx_state)); pfm_check_task_state() 4876 prefetch(&ctx->ctx_state); sys_perfmonctl() 4919 state = ctx->ctx_state; pfm_resume_after_ovfl() 4944 if (ctx->ctx_state == PFM_CTX_MASKED) pfm_restore_monitoring(current); pfm_resume_after_ovfl() 4949 ctx->ctx_state = PFM_CTX_LOADED; pfm_resume_after_ovfl() 5022 DPRINT(("reason=%d state=%d\n", reason, ctx->ctx_state)); pfm_handle_work() 5027 if (ctx->ctx_fl_going_zombie || ctx->ctx_state == PFM_CTX_ZOMBIE) pfm_handle_work() 5097 if (ctx->ctx_state == PFM_CTX_ZOMBIE) { pfm_notify_user() 5187 if (unlikely(ctx->ctx_state == PFM_CTX_ZOMBIE)) goto stop_monitoring; pfm_overflow_handler() 5402 ctx->ctx_state = PFM_CTX_MASKED; pfm_overflow_handler() 5825 if (ctx->ctx_state == PFM_CTX_ZOMBIE) { pfm_save_regs() 6021 if (unlikely(ctx->ctx_state == PFM_CTX_ZOMBIE)) { pfm_load_regs() 6741 printk("->CPU%d ctx_state=%d vaddr=%p addr=%p fd=%d ctx_task=[%d] saved_psr_up=0x%lx\n", dump_pmu_state() 6743 ctx->ctx_state, dump_pmu_state()
|
H A D | perfmon_itanium.h | 59 is_loaded = ctx->ctx_state == PFM_CTX_LOADED || ctx->ctx_state == PFM_CTX_MASKED; pfm_ita_pmc_check()
|
H A D | perfmon_mckinley.h | 89 is_loaded = ctx->ctx_state == PFM_CTX_LOADED || ctx->ctx_state == PFM_CTX_MASKED; pfm_mck_pmc_check()
|
H A D | perfmon_montecito.h | 171 is_loaded = ctx->ctx_state == PFM_CTX_LOADED || ctx->ctx_state == PFM_CTX_MASKED; pfm_mont_pmc_check()
|
/linux-4.4.14/arch/sparc/kernel/ |
H A D | kgdb_64.c | 165 enum ctx_state prev_state = exception_enter(); kgdb_trap()
|
H A D | traps_64.c | 192 enum ctx_state prev_state = exception_enter(); spitfire_insn_access_exception() 269 enum ctx_state prev_state = exception_enter(); spitfire_data_access_exception() 2006 enum ctx_state prev_state = exception_enter(); sun4v_resum_error() 2206 enum ctx_state prev_state = exception_enter(); do_fpieee() 2219 enum ctx_state prev_state = exception_enter(); do_fpother() 2242 enum ctx_state prev_state = exception_enter(); do_tof() 2267 enum ctx_state prev_state = exception_enter(); do_div0() 2443 enum ctx_state prev_state = exception_enter(); do_illegal_instruction() 2493 enum ctx_state prev_state = exception_enter(); mem_address_unaligned() 2536 enum ctx_state prev_state = exception_enter(); do_privop()
|
H A D | unaligned_64.c | 597 enum ctx_state prev_state = exception_enter(); handle_lddfmna() 661 enum ctx_state prev_state = exception_enter(); handle_stdfmna()
|
H A D | signal_64.c | 48 enum ctx_state prev_state = exception_enter(); sparc64_set_context() 147 enum ctx_state prev_state = exception_enter(); sparc64_get_context()
|
H A D | sys_sparc_64.c | 501 enum ctx_state prev_state = exception_enter(); sparc_breakpoint()
|
H A D | kprobes.c | 422 enum ctx_state prev_state = exception_enter(); kprobe_trap()
|
/linux-4.4.14/arch/mips/kernel/ |
H A D | traps.c | 437 enum ctx_state prev_state; do_be() 692 enum ctx_state prev_state; do_ov() 820 enum ctx_state prev_state; do_fpe() 939 enum ctx_state prev_state; do_bp() 1030 enum ctx_state prev_state; do_tr() 1074 enum ctx_state prev_state; do_ri() 1343 enum ctx_state prev_state; do_cpu() 1455 enum ctx_state prev_state; do_msa_fpe() 1475 enum ctx_state prev_state; do_msa() 1496 enum ctx_state prev_state; do_mdmx() 1508 enum ctx_state prev_state; do_watch() 1539 enum ctx_state prev_state; do_mcheck()
|
H A D | cpu-bugs64.c | 175 enum ctx_state prev_state; do_daddi_ov()
|
H A D | unaligned.c | 2224 enum ctx_state prev_state; do_ade()
|
/linux-4.4.14/arch/powerpc/kernel/ |
H A D | traps.c | 702 enum ctx_state prev_state = exception_enter(); machine_check_exception() 769 enum ctx_state prev_state = exception_enter(); unknown_exception() 781 enum ctx_state prev_state = exception_enter(); instruction_breakpoint_exception() 801 enum ctx_state prev_state = exception_enter(); single_step_exception() 1139 enum ctx_state prev_state = exception_enter(); program_check_exception() 1262 enum ctx_state prev_state = exception_enter(); alignment_exception() 1325 enum ctx_state prev_state = exception_enter(); kernel_fp_unavailable_exception() 1336 enum ctx_state prev_state = exception_enter(); altivec_unavailable_exception()
|
/linux-4.4.14/arch/tile/kernel/ |
H A D | ptrace.c | 325 enum ctx_state prev_state = exception_enter(); do_breakpoint()
|
H A D | traps.c | 257 enum ctx_state prev_state = exception_enter(); do_trap()
|
H A D | single_step.c | 742 enum ctx_state prev_state = exception_enter(); gx_singlestep_handle()
|
H A D | unaligned.c | 1452 enum ctx_state prev_state = exception_enter(); do_unaligned()
|
/linux-4.4.14/arch/mips/mm/ |
H A D | fault.c | 338 enum ctx_state prev_state; do_page_fault()
|
/linux-4.4.14/arch/sparc/mm/ |
H A D | fault_64.c | 284 enum ctx_state prev_state = exception_enter(); do_sparc64_fault()
|
/linux-4.4.14/arch/x86/mm/ |
H A D | fault.c | 1297 enum ctx_state prev_state; do_page_fault() 1334 enum ctx_state prev_state; trace_do_page_fault()
|
/linux-4.4.14/arch/x86/kernel/ |
H A D | kvm.c | 260 enum ctx_state prev_state; do_async_page_fault()
|
/linux-4.4.14/arch/powerpc/mm/ |
H A D | fault.c | 211 enum ctx_state prev_state = exception_enter(); do_page_fault()
|
H A D | hash_utils_64.c | 998 enum ctx_state prev_state = exception_enter(); hash_page_mm() 1425 enum ctx_state prev_state = exception_enter(); low_hash_fault()
|
/linux-4.4.14/arch/tile/mm/ |
H A D | fault.c | 848 enum ctx_state prev_state = exception_enter(); do_page_fault()
|
/linux-4.4.14/kernel/sched/ |
H A D | core.c | 3229 enum ctx_state prev_state = exception_enter(); schedule_user() 3297 enum ctx_state prev_ctx; preempt_schedule_notrace() 3328 enum ctx_state prev_state; preempt_schedule_irq()
|