Lines Matching refs:pfm_sessions

145 #define LOCK_PFS()	    spin_lock(&pfm_sessions.pfs_lock)
146 #define UNLOCK_PFS() spin_unlock(&pfm_sessions.pfs_lock)
406 static pfm_session_t pfm_sessions; /* global sessions information */ variable
1014 if (pfm_sessions.pfs_task_sessions > 0UL) { in pfm_reserve_session()
1016 pfm_sessions.pfs_task_sessions)); in pfm_reserve_session()
1026 if (pfm_sessions.pfs_sys_session[i]) goto undo; in pfm_reserve_session()
1030 pfm_sessions.pfs_sys_session[i] = task; in pfm_reserve_session()
1034 pfm_sessions.pfs_sys_sessions += n; in pfm_reserve_session()
1036 if (pfm_sessions.pfs_sys_sessions) goto abort; in pfm_reserve_session()
1037 pfm_sessions.pfs_task_sessions++; in pfm_reserve_session()
1043 pfm_sessions.pfs_sys_session[i]->pid, i)); in pfm_reserve_session()
1046 pfm_sessions.pfs_sys_session[i] = NULL; in pfm_reserve_session()
1071 pfm_sessions.pfs_sys_sessions, in pfm_unreserve_session()
1072 pfm_sessions.pfs_task_sessions, in pfm_unreserve_session()
1073 pfm_sessions.pfs_sys_use_dbregs, in pfm_unreserve_session()
1082 pfm_sessions.pfs_sys_session[i] = NULL; in pfm_unreserve_session()
1089 if (pfm_sessions.pfs_sys_use_dbregs == 0) { in pfm_unreserve_session()
1093 pfm_sessions.pfs_sys_use_dbregs--; in pfm_unreserve_session()
1096 pfm_sessions.pfs_sys_sessions -= n; in pfm_unreserve_session()
1099 smp_processor_id(), pfm_sessions.pfs_sys_sessions)); in pfm_unreserve_session()
1101 pfm_sessions.pfs_task_sessions--; in pfm_unreserve_session()
1103 task->pid, pfm_sessions.pfs_task_sessions)); in pfm_unreserve_session()
1908 if (pfm_sessions.pfs_sys_use_dbregs> 0) in pfm_use_debug_registers()
1911 pfm_sessions.pfs_ptrace_use_dbregs++; in pfm_use_debug_registers()
1914 pfm_sessions.pfs_ptrace_use_dbregs, in pfm_use_debug_registers()
1915 pfm_sessions.pfs_sys_use_dbregs, in pfm_use_debug_registers()
1937 if (pfm_sessions.pfs_ptrace_use_dbregs == 0) { in pfm_release_debug_registers()
1942 pfm_sessions.pfs_ptrace_use_dbregs--; in pfm_release_debug_registers()
2252 if (pfm_sessions.pfs_ptrace_use_dbregs) in pfm_write_ibr_dbr()
2255 pfm_sessions.pfs_sys_use_dbregs++; in pfm_write_ibr_dbr()
2387 pfm_sessions.pfs_sys_use_dbregs--; in pfm_write_ibr_dbr()
3220 pfm_sessions.pfs_task_sessions, in pfm_proc_show_header()
3221 pfm_sessions.pfs_sys_sessions, in pfm_proc_show_header()
3222 pfm_sessions.pfs_sys_use_dbregs, in pfm_proc_show_header()
3223 pfm_sessions.pfs_ptrace_use_dbregs); in pfm_proc_show_header()
4092 pfm_sessions.pfs_task_sessions++; in pfm_inherit()
4578 spin_lock_init(&pfm_sessions.pfs_lock); in pfm_init()