/external/chromium_org/sandbox/linux/services/ |
H A D | unix_domain_socket_unittest.cc | 48 void WaitForExit(pid_t pid) { argument 50 CHECK_EQ(pid, HANDLE_EINTR(waitpid(pid, &status, 0))); 55 base::ProcessId GetParentProcessId(base::ProcessId pid) { argument 60 CHECK(base::OpenProcessHandle(pid, &handle)); 61 base::ProcessId ret = base::GetParentProcessId(pid); 117 const pid_t pid = fork(); local 118 CHECK_NE(-1, pid); 119 if (pid == 0) { 131 CHECK_EQ(pid, sender_pi 147 const pid_t pid = syscall(__NR_clone, CLONE_NEWPID | SIGCHLD, 0, 0, 0); local 181 const pid_t pid = syscall(__NR_clone, CLONE_NEWPID | SIGCHLD, 0, 0, 0); local 247 const pid_t pid = syscall(__NR_clone, CLONE_NEWPID | SIGCHLD, 0, 0, 0); local [all...] |
H A D | yama_unittests.cc | 41 bool CanPtrace(pid_t pid) { argument 43 ret = ptrace(PTRACE_ATTACH, pid, NULL, NULL); 50 int wait_ret = HANDLE_EINTR(waitid(P_PID, pid, &process_info, WSTOPPED)); 52 PCHECK(0 == ptrace(PTRACE_DETACH, pid, NULL, NULL)); 56 // _exit(0) if pid can be ptraced by the current process. 58 void ExitZeroIfCanPtrace(pid_t pid) { argument 59 if (CanPtrace(pid)) { 66 bool CanSubProcessPtrace(pid_t pid) { argument 67 ScopedProcess process(base::Bind(&ExitZeroIfCanPtrace, pid));
|
/external/chromium_org/sandbox/win/sandbox_poc/pocdll/ |
H A D | invasive.cc | 169 DWORD pid; local 170 ::GetWindowThreadProcessId(hwnd, &pid); 171 if (pid != ::GetCurrentProcessId()) {
|
/external/chromium_org/third_party/boringssl/src/crypto/rand/ |
H A D | urandom.c | 65 pid_t pid; /* pid contains the pid at the time that the buffer was member in struct:rand_buffer 67 pid_t ppid; /* ppid contains the parent pid in order to try and reduce 142 pid_t pid, ppid; local 168 pid = getpid(); 173 if (buf && buf->pid == pid && buf->ppid == ppid && 196 buf->pid = pid; [all...] |
/external/chromium_org/tools/deep_memory_profiler/lib/ |
H A D | pageframe.py | 118 def pid(self): member in class:PFNCounts
|
/external/chromium_org/win8/delegate_execute/ |
H A D | delegate_execute.cc | 110 DWORD pid = operation.GetParentPid(); local 111 AtlTrace("%ds timeout. Killing Chrome %d\n", kWaitSeconds, pid); 112 base::KillProcessById(pid, 0, false);
|
/external/kernel-headers/original/uapi/linux/ |
H A D | dlm_plock.h | 34 __u32 pid; member in struct:dlm_plock_info
|
H A D | if_pppol2tp.h | 25 __kernel_pid_t pid; /* pid that owns the fd. member in struct:pppol2tp_addr 39 __kernel_pid_t pid; /* pid that owns the fd. member in struct:pppol2tpin6_addr 53 __kernel_pid_t pid; /* pid that owns the fd. member in struct:pppol2tpv3_addr 64 __kernel_pid_t pid; /* pid that owns the fd. member in struct:pppol2tpv3in6_addr
|
/external/libcap-ng/libcap-ng-0.7/utils/ |
H A D | pscap.c | 69 int pid, ppid, uid = -1, euid = -1; local 79 pid = strtol(ent->d_name, NULL, 10); 83 /* Skip our pid so we aren't listed */ 84 if (pid == our_pid) 88 snprintf(buf, 32, "/proc/%d/stat", pid); 107 if (pid == 2 || ppid == 2) 110 if (!show_all && pid == 1) 115 capng_setpid(pid); 125 snprintf(buf, 32, "/proc/%d/status", pid); 153 "ppid", "pid", "nam [all...] |
/external/libnl/lib/genl/ |
H A D | genl.c | 236 * @arg pid netlink process id or NL_AUTO_PID 246 void *genlmsg_put(struct nl_msg *msg, uint32_t pid, uint32_t seq, int family, argument 255 nlh = nlmsg_put(msg, pid, seq, family, GENL_HDRLEN + hdrlen, flags);
|
/external/libnl/lib/netfilter/ |
H A D | nfnl.c | 222 * @arg pid netlink process id 230 int nfnlmsg_put(struct nl_msg *msg, uint32_t pid, uint32_t seq, argument 236 nlh = nlmsg_put(msg, pid, seq, NFNLMSG_TYPE(subsys_id, type), 0, flags);
|
/external/libunwind/src/mi/ |
H A D | map.c | 42 unw_map_cursor_create (unw_map_cursor_t *map_cursor, pid_t pid) argument 44 map_cursor->map_list = map_create_list (pid);
|
/external/libunwind/src/ptrace/ |
H A D | _UPT_access_reg.c | 45 pid_t pid = ui->pid; local 65 nat_bits = ptrace (PTRACE_PEEKUSER, pid, PT_NAT_BITS, 0); 80 ptrace (PTRACE_POKEUSER, pid, PT_NAT_BITS, nat_bits); 105 psr = ptrace (PTRACE_PEEKUSER, pid, PT_CR_IPSR, 0); 117 ptrace (PTRACE_POKEUSER, pid, PT_CR_IIP, ip); 118 ptrace (PTRACE_POKEUSER, pid, PT_CR_IPSR, psr); 129 ip = ptrace (PTRACE_PEEKUSER, pid, PT_CR_IIP, 0); 153 cfm = ptrace (PTRACE_PEEKUSER, pid, PT_CFM, 0); 166 ptrace (PTRACE_POKEUSER, pid, PT_AR_BS 283 pid_t pid = ui->pid; local 361 pid_t pid = ui->pid; local [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/ |
H A D | attr.c | 67 static int store_event(struct perf_event_attr *attr, pid_t pid, int cpu, argument 93 __WRITE_ASS(pid, "d", pid); 137 void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, argument 142 if (store_event(attr, pid, cpu, fd, group_fd, flags))
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
H A D | run-command.c | 69 cmd->pid = fork(); 70 if (!cmd->pid) { 121 if (cmd->pid < 0) { 154 static int wait_or_whine(pid_t pid) argument 158 pid_t waiting = waitpid(pid, &status, 0); 166 if (waiting != pid) 187 return wait_or_whine(cmd->pid);
|
H A D | run-command.h | 17 pid_t pid; member in struct:child_process
|
H A D | target.h | 8 const char *pid; member in struct:perf_target 52 return target->tid || target->pid || target->uid_str;
|
/external/lldb/tools/debugserver/source/ |
H A D | RNBContext.cpp | 71 RNBContext::SetProcessID (nub_process_t pid) argument 80 m_pid = pid; 82 if (pid != INVALID_NUB_PROCESS) 145 nub_process_t pid = ctx.ProcessID(); local 146 DNBLogThreadedIf(LOG_RNB_PROC, "RNBContext::%s (arg=%p, pid=%4.4x): thread starting...", __FUNCTION__, arg, pid); 151 DNBLogThreadedIf(LOG_RNB_PROC, "RNBContext::%s calling DNBProcessWaitForEvent(pid, eEventProcessRunningStateChanged | eEventProcessStoppedStateChanged | eEventStdioAvailable | eEventProfileDataAvailable, true)...", __FUNCTION__); 152 nub_event_t pid_status_event = DNBProcessWaitForEvents (pid, eEventProcessRunningStateChanged | eEventProcessStoppedStateChanged | eEventStdioAvailable | eEventProfileDataAvailable, true, NULL); 153 DNBLogThreadedIf(LOG_RNB_PROC, "RNBContext::%s calling DNBProcessWaitForEvent(pid, eEventProcessRunningStateChanged | eEventProcessStoppedStateChanged | eEventStdioAvailable | eEventProfileDataAvailable, true) => 0x%8.8x", __FUNCTION__, pid_status_event); 157 DNBLogThreadedIf(LOG_RNB_PROC, "RNBContext::%s (pid [all...] |
H A D | RNBServices.cpp | 60 const pid_t pid = proc_info.kp_proc.p_pid; local 63 pid == our_pid || // Skip this process 64 pid == 0 || // Skip kernel (kernel pid is zero) 75 const int32_t pid_int32 = pid; 85 int return_val = proc_pidpath (pid, proc_path_buf, PATH_MAX); 157 pid_t pid = INVALID_NUB_PROCESS; local 158 if (::SBSProcessIDForDisplayIdentifier ((CFStringRef)displayIdentifier, &pid) == true) 160 CFReleaser<CFNumberRef> pidCFNumber (::CFNumberCreate (alloc, kCFNumberSInt32Type, &pid)); 229 IsSBProcess (nub_process_t pid) argument [all...] |
/external/ltrace/ |
H A D | libltrace.c | 53 struct process *p_proc = pid2proc(it->pid); 55 printf("stop_non_p_processes: %d terminated?\n", it->pid); 65 debug(2, "Sending SIGSTOP to process %u", proc->pid); 66 kill(proc->pid, SIGSTOP); 128 pid_t pid = execute_program(command, argv); local 129 struct process *proc = open_program(command, pid); 137 continue_process(pid); 141 open_pid(opt_p_tmp->pid);
|
/external/ltrace/sysdeps/linux-gnu/ |
H A D | events.c | 60 event->proc->pid, event->type); 94 event->proc != NULL ? event->proc->pid : -1); 97 event->proc != NULL ? event->proc->pid : -1) ; 139 pid_t pid; local 158 pid = waitpid(-1, &status, __WALL); 161 if (pid == -1) { 173 event.proc = pid2proc(pid); 191 for (; i < 100 && process_status(pid) != PS_TRACING_STOP; ++i) { 192 debug(2, "waiting for %d to stop", pid); 196 event.e_un.newpid = pid; [all...] |
H A D | trace.h | 34 pid_t pid; /* This may be 0 for tasks that exited member in struct:pid_task
|
/external/oprofile/daemon/liblegacy/ |
H A D | opd_parse_proc.c | 3 * Parsing of /proc/#pid 89 * Read the /proc/<pid>/maps file and add all 117 verbprintf(vmisc, "image name %s for pid %u %u\n", image_name, proc->tid, proc->tgid); 129 * is always true at exec time but not for /proc/pid so restore 150 /* FIXME: use the first field of /proc/pid/status as proc name 151 * for now we use /proc/%pid/exe as name */ 204 u32 pid; local 212 if (sscanf(dirent->d_name, "%u", &pid) == 1) { 213 u32 tgid = read_tgid(pid); 214 verbprintf(vmisc, "ASCII added %u %u\n", pid, tgi [all...] |
/external/qemu/hw/android/goldfish/ |
H A D | trace.c | 53 static unsigned pid; // PID (really thread id) variable 55 static unsigned tid; // current thread id (same as pid, most of the time) 70 case TRACE_DEV_REG_SWITCH: // context switch, switch to pid 84 case TRACE_DEV_REG_FORK: // fork, fork new pid 85 DPID("QEMU.trace: fork (pid=%d tgid=%d value=%d)\n", pid, tgid, value); 90 case TRACE_DEV_REG_CLONE: // fork, clone new pid (i.e. thread) 91 DPID("QEMU.trace: clone (pid=%d tgid=%d value=%d)\n", pid, tgid, value); 159 case TRACE_DEV_REG_INIT_PID: // init, name the pid tha [all...] |
/external/valgrind/main/memcheck/tests/ |
H A D | addressable.c | 117 int pid; local 119 pid = fork(); 120 if (pid == -1) { 124 if (pid == 0) { 134 while((ret = waitpid(pid, &status, 0)) != pid) {
|