Searched refs:ownerpid (Results 1 – 1 of 1) sorted by relevance
| /xnu-8019.80.24/tests/ktrace/ |
| H A D | ktrace_helpers.h | 29 int ownerpid = 0; in start_controlling_ktrace() local 30 size_t pidsz = sizeof(ownerpid); in start_controlling_ktrace() 31 ret = sysctlbyname("ktrace.owning_pid", &ownerpid, &pidsz, NULL, 0); in start_controlling_ktrace() 34 if (ownerpid <= 0) { in start_controlling_ktrace() 40 ret = proc_name(ownerpid, ownername, sizeof(ownername)); in start_controlling_ktrace() 42 T_LOG("ktrace is in foreground, but owner (%d) has no name", ownerpid); in start_controlling_ktrace() 47 kill(ownerpid, SIGKILL); in start_controlling_ktrace() 50 ret = proc_name(ownerpid, ownername, sizeof(ownername)); in start_controlling_ktrace()
|