Searched refs:pfm_sessions (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/arch/ia64/kernel/
H A Dperfmon.c213 #define LOCK_PFS(g) spin_lock_irqsave(&pfm_sessions.pfs_lock, g)
214 #define UNLOCK_PFS(g) spin_unlock_irqrestore(&pfm_sessions.pfs_lock, g)
507 static pfm_session_t pfm_sessions; /* global sessions information */ variable
1336 pfm_sessions.pfs_sys_sessions, pfm_reserve_session()
1337 pfm_sessions.pfs_task_sessions, pfm_reserve_session()
1338 pfm_sessions.pfs_sys_use_dbregs, pfm_reserve_session()
1346 if (pfm_sessions.pfs_task_sessions > 0UL) { pfm_reserve_session()
1348 pfm_sessions.pfs_task_sessions)); pfm_reserve_session()
1352 if (pfm_sessions.pfs_sys_session[cpu]) goto error_conflict; pfm_reserve_session()
1356 pfm_sessions.pfs_sys_session[cpu] = task; pfm_reserve_session()
1358 pfm_sessions.pfs_sys_sessions++ ; pfm_reserve_session()
1361 if (pfm_sessions.pfs_sys_sessions) goto abort; pfm_reserve_session()
1362 pfm_sessions.pfs_task_sessions++; pfm_reserve_session()
1366 pfm_sessions.pfs_sys_sessions, pfm_reserve_session()
1367 pfm_sessions.pfs_task_sessions, pfm_reserve_session()
1368 pfm_sessions.pfs_sys_use_dbregs, pfm_reserve_session()
1383 task_pid_nr(pfm_sessions.pfs_sys_session[cpu]), pfm_reserve_session()
1402 pfm_sessions.pfs_sys_sessions, pfm_unreserve_session()
1403 pfm_sessions.pfs_task_sessions, pfm_unreserve_session()
1404 pfm_sessions.pfs_sys_use_dbregs, pfm_unreserve_session()
1410 pfm_sessions.pfs_sys_session[cpu] = NULL; pfm_unreserve_session()
1415 if (pfm_sessions.pfs_sys_use_dbregs == 0) { pfm_unreserve_session()
1418 pfm_sessions.pfs_sys_use_dbregs--; pfm_unreserve_session()
1421 pfm_sessions.pfs_sys_sessions--; pfm_unreserve_session()
1423 pfm_sessions.pfs_task_sessions--; pfm_unreserve_session()
1426 pfm_sessions.pfs_sys_sessions, pfm_unreserve_session()
1427 pfm_sessions.pfs_task_sessions, pfm_unreserve_session()
1428 pfm_sessions.pfs_sys_use_dbregs, pfm_unreserve_session()
3465 if (pfm_sessions.pfs_sys_use_dbregs> 0) pfm_use_debug_registers()
3468 pfm_sessions.pfs_ptrace_use_dbregs++; pfm_use_debug_registers()
3471 pfm_sessions.pfs_ptrace_use_dbregs, pfm_use_debug_registers()
3472 pfm_sessions.pfs_sys_use_dbregs, pfm_use_debug_registers()
3497 if (pfm_sessions.pfs_ptrace_use_dbregs == 0) { pfm_release_debug_registers()
3501 pfm_sessions.pfs_ptrace_use_dbregs--; pfm_release_debug_registers()
3750 if (pfm_sessions.pfs_ptrace_use_dbregs) pfm_write_ibr_dbr()
3753 pfm_sessions.pfs_sys_use_dbregs++; pfm_write_ibr_dbr()
3863 pfm_sessions.pfs_sys_use_dbregs--; pfm_write_ibr_dbr()
4227 if (pfm_sessions.pfs_ptrace_use_dbregs) { pfm_context_load()
4232 pfm_sessions.pfs_sys_use_dbregs++; pfm_context_load()
4233 DPRINT(("load [%d] increased sys_use_dbreg=%u\n", task_pid_nr(task), pfm_sessions.pfs_sys_use_dbregs)); pfm_context_load()
4386 pfm_sessions.pfs_sys_use_dbregs--; pfm_context_load()
5623 pfm_sessions.pfs_task_sessions, pfm_proc_show_header()
5624 pfm_sessions.pfs_sys_sessions, pfm_proc_show_header()
5625 pfm_sessions.pfs_sys_use_dbregs, pfm_proc_show_header()
5626 pfm_sessions.pfs_ptrace_use_dbregs); pfm_proc_show_header()
6639 spin_lock_init(&pfm_sessions.pfs_lock); pfm_init()

Completed in 68 milliseconds