Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 1112) sorted by relevance

12345678910>>...45

/external/lldb/tools/debugserver/source/
DDNB.h46 nub_process_t DNBProcessAttach (nub_process_t pid, struct timespec *timeout, char *err_str…
57 nub_bool_t DNBProcessResume (nub_process_t pid, const DNBThreadResumeAction *actions, s…
58 nub_bool_t DNBProcessHalt (nub_process_t pid) DNB_EXPORT;
59 nub_bool_t DNBProcessDetach (nub_process_t pid) DNB_EXPORT;
60 nub_bool_t DNBProcessSignal (nub_process_t pid, int signal) DNB_EXPORT;
61 nub_bool_t DNBProcessKill (nub_process_t pid) DNB_EXPORT;
62 nub_size_t DNBProcessMemoryRead (nub_process_t pid, nub_addr_t addr, nub_size_t size, void …
63 nub_size_t DNBProcessMemoryWrite (nub_process_t pid, nub_addr_t addr, nub_size_t size, const…
64 nub_addr_t DNBProcessMemoryAllocate (nub_process_t pid, nub_size_t size, uint32_t permissio…
65 nub_bool_t DNBProcessMemoryDeallocate (nub_process_t pid, nub_addr_t addr) DNB_EXPORT;
[all …]
DDNB.cpp76 AddProcessToMap (nub_process_t pid, MachProcessSP& procSP) in AddProcessToMap() argument
81 process_map->insert(std::make_pair(pid, procSP)); in AddProcessToMap()
93 RemoveProcessFromMap (nub_process_t pid) in RemoveProcessFromMap() argument
98 return process_map->erase(pid); in RemoveProcessFromMap()
110 GetProcessSP (nub_process_t pid, MachProcessSP& procSP) in GetProcessSP() argument
115 ProcessMapIter pos = process_map->find(pid); in GetProcessSP()
130 const pid_t pid = (pid_t)(intptr_t)arg; in waitpid_thread() local
134 pid_t child_pid = waitpid(pid, &status, 0); in waitpid_thread()
135 …thread (): waitpid (pid = %i, &status, 0) => %i, status = %i, errno = %i", pid, child_pid, status,… in waitpid_thread()
160 …aitpid_thread (): main loop exited, setting exit status to an invalid value (-1) for pid %i", pid); in waitpid_thread()
[all …]
/external/strace/
Dstrace-graph42 my ($pid, $call, $args, $result, $time);
46 $pid = $1;
60 $unfinished{$pid} = $_;
65 unless (exists $unfinished{$pid}) {
69 $_ = $unfinished{$pid} . $_;
70 delete $unfinished{$pid};
81 handle_killed($pid, $time);
91 handle_trace($pid, $call, $args, $result, $time);
209 my ($pid, $call, $args, $result, $time) = @_;
212 if (defined $time and not defined $pr{$pid}{start}) {
[all …]
Dstrace.c344 ptrace_attach_or_seize(int pid) in ptrace_attach_or_seize() argument
348 return ptrace(PTRACE_ATTACH, pid, 0L, 0L); in ptrace_attach_or_seize()
349 r = ptrace(PTRACE_SEIZE, pid, 0L, (unsigned long)ptrace_setoptions); in ptrace_attach_or_seize()
352 r = ptrace(PTRACE_INTERRUPT, pid, 0L, 0L); in ptrace_attach_or_seize()
356 # define ptrace_attach_or_seize(pid) ptrace(PTRACE_ATTACH, (pid), 0, 0) argument
373 ptrace(op, tcp->pid, (void *) 0, (long) sig); in ptrace_restart()
403 perror_msg("ptrace(PTRACE_%s,pid:%d,sig:%d)", msg, tcp->pid, sig); in ptrace_restart()
429 static void kill_save_errno(pid_t pid, int sig) in kill_save_errno() argument
433 (void) kill(pid, sig); in kill_save_errno()
502 int pid; in strace_popen() local
[all …]
/external/chromium-trace/trace-viewer/src/tracing/
Dtrace_model.js82 getOrCreateProcess: function(pid) { argument
83 if (!this.processes[pid])
84 this.processes[pid] = new Process(this, pid);
85 return this.processes[pid];
98 for (var pid in this.processes)
99 this.processes[pid].addCategoriesToDict(categoriesDict);
113 for (var pid in this.processes) {
114 this.processes[pid].updateBounds();
115 this.bounds.addRange(this.processes[pid].bounds);
126 for (var pid in this.processes)
[all …]
/external/valgrind/main/coregrind/
Dm_debugger.c50 static Int ptrace_setregs(Int pid, VexGuestArchState* vex) in ptrace_setregs() argument
71 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, &regs); in ptrace_setregs()
109 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, &regs); in ptrace_setregs()
114 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R0 * 4), (void*)vex->guest_GPR0); in ptrace_setregs()
115 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R1 * 4), (void*)vex->guest_GPR1); in ptrace_setregs()
116 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R2 * 4), (void*)vex->guest_GPR2); in ptrace_setregs()
117 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R3 * 4), (void*)vex->guest_GPR3); in ptrace_setregs()
118 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R4 * 4), (void*)vex->guest_GPR4); in ptrace_setregs()
119 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R5 * 4), (void*)vex->guest_GPR5); in ptrace_setregs()
120 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R6 * 4), (void*)vex->guest_GPR6); in ptrace_setregs()
[all …]
Dvgdb-invoker-ptrace.c257 Bool waitstopped (pid_t pid, int signal_expected, const char *msg) in waitstopped() argument
267 p = waitpid(pid, &status, __WALL); in waitstopped()
268 DEBUG(1, "after waitpid pid %d p %d status 0x%x %s\n", pid, p, in waitstopped()
270 if (p != pid) { in waitstopped()
272 msg, pid, p, status, status_image (status)); in waitstopped()
312 res = ptrace (PTRACE_GETSIGINFO, pid, NULL, newsiginfo); in waitstopped()
320 res = ptrace (PTRACE_CONT, pid, NULL, 0); in waitstopped()
323 res = ptrace (PTRACE_CONT, pid, NULL, signal_received); in waitstopped()
338 Bool stop (pid_t pid, const char *msg) in stop() argument
342 DEBUG(1, "%s SIGSTOP pid %d\n", msg, pid); in stop()
[all …]
/external/linux-tools-perf/perf-3.12.0/tools/perf/scripts/perl/
Drw-by-pid.pl82 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
84 my $comm = $reads{$pid}{comm} || "";
85 my $total_reads = $reads{$pid}{total_reads} || 0;
86 my $bytes_requested = $reads{$pid}{bytes_requested} || 0;
87 my $bytes_read = $reads{$pid}{bytes_read} || 0;
89 printf("%6s %-20s %10s %10s %10s\n", $pid, $comm,
101 foreach my $pid (keys %reads) {
102 foreach my $error (keys %{$reads{$pid}{errors}}) {
103 my $comm = $reads{$pid}{comm} || "";
104 my $errcount = $reads{$pid}{errors}{$error} || 0;
[all …]
/external/chromium_org/sandbox/linux/services/
Dunix_domain_socket_unittest.cc48 void WaitForExit(pid_t pid) { in WaitForExit() argument
50 CHECK_EQ(pid, HANDLE_EINTR(waitpid(pid, &status, 0))); in WaitForExit()
55 base::ProcessId GetParentProcessId(base::ProcessId pid) { in GetParentProcessId() argument
60 CHECK(base::OpenProcessHandle(pid, &handle)); in GetParentProcessId()
61 base::ProcessId ret = base::GetParentProcessId(pid); in GetParentProcessId()
117 const pid_t pid = fork(); in SANDBOX_TEST() local
118 CHECK_NE(-1, pid); in SANDBOX_TEST()
119 if (pid == 0) { in SANDBOX_TEST()
131 CHECK_EQ(pid, sender_pid); in SANDBOX_TEST()
133 WaitForExit(pid); in SANDBOX_TEST()
[all …]
/external/blktrace/btt/
Dproc.c30 __u32 pid; member
65 struct p_info * __find_process_pid(__u32 pid) in __find_process_pid() argument
72 if (pid < this->u.pid) in __find_process_pid()
74 else if (pid > this->u.pid) in __find_process_pid()
103 static void insert_pid(struct p_info *that, __u32 pid) in insert_pid() argument
113 if (pid < this->u.pid) in insert_pid()
115 else if (pid > this->u.pid) in insert_pid()
122 this->u.pid = pid; in insert_pid()
159 insert_pid(pip, pip->pid); in insert()
168 struct p_info *find_process(__u32 pid, char *name) in find_process() argument
[all …]
/external/chromium-trace/trace-viewer/src/tracing/importer/
Dtrace_event_importer_test.js20 {name: 'a', args: {}, pid: 52, ts: 520, cat: 'foo', tid: 53, ph: 'B'}, property
21 {name: 'a', args: {}, pid: 52, ts: 560, cat: 'foo', tid: 53, ph: 'E'}, property
22 {name: 'b', args: {}, pid: 52, ts: 629, cat: 'bar', tid: 53, ph: 'B'}, property
23 {name: 'b', args: {}, pid: 52, ts: 631, cat: 'bar', tid: 53, ph: 'E'} property
55 pid: 1, property
62 pid: 1, property
79 {name: 'a', args: {}, pid: 52, ts: 520, cat: 'foo', tid: 53, ph: 'B'}, property
80 {name: 'a', args: {}, pid: 52, ts: 560, cat: 'bar', tid: 53, ph: 'E'} property
100 {name: 'a', args: {}, pid: 1, ts: 1, cat: 'foo', tid: 1, ph: 'B'}, property
101 {name: 'b', args: {}, pid: 1, ts: 2, cat: 'bar', tid: 1, ph: 'B'}, property
[all …]
/external/ltrace/sysdeps/linux-gnu/
Dbreakpoint.c41 arch_enable_breakpoint(pid_t pid, struct breakpoint *sbp) in arch_enable_breakpoint() argument
48 pid, sbp->addr, breakpoint_name(sbp)); in arch_enable_breakpoint()
51 long a = ptrace(PTRACE_PEEKTEXT, pid, in arch_enable_breakpoint()
56 pid, sbp->addr, breakpoint_name(sbp), in arch_enable_breakpoint()
68 a = ptrace(PTRACE_POKETEXT, pid, in arch_enable_breakpoint()
73 pid, sbp->addr, breakpoint_name(sbp), in arch_enable_breakpoint()
85 proc->pid, sbp->addr, breakpoint_name(sbp)); in enable_breakpoint()
86 arch_enable_breakpoint(proc->pid, sbp); in enable_breakpoint()
93 arch_disable_breakpoint(pid_t pid, const struct breakpoint *sbp) in arch_disable_breakpoint() argument
99 pid, sbp->addr, breakpoint_name(sbp)); in arch_disable_breakpoint()
[all …]
Dtrace.c59 trace_fail_warning(pid_t pid) in trace_fail_warning() argument
93 wait_for_proc(pid_t pid) in wait_for_proc() argument
99 if (waitpid(pid, NULL, __WALL) != pid) { in wait_for_proc()
108 trace_pid(pid_t pid) in trace_pid() argument
110 debug(DEBUG_PROCESS, "trace_pid: pid=%d", pid); in trace_pid()
114 if (ptrace(PTRACE_ATTACH, pid, 0, 0) < 0) in trace_pid()
117 return wait_for_proc(pid); in trace_pid()
126 pid_t pid = proc->pid; in trace_set_options() local
127 debug(DEBUG_PROCESS, "trace_set_options: pid=%d", pid); in trace_set_options()
132 if (ptrace(PTRACE_SETOPTIONS, pid, 0, (void *)options) < 0 && in trace_set_options()
[all …]
Devents.c60 event->proc->pid, event->type); in enque_event()
94 event->proc != NULL ? event->proc->pid : -1); in each_qd_event()
139 pid_t pid; in next_event() local
158 pid = waitpid(-1, &status, __WALL); in next_event()
161 if (pid == -1) { in next_event()
173 event.proc = pid2proc(pid); in next_event()
191 for (; i < 100 && process_status(pid) != PS_TRACING_STOP; ++i) { in next_event()
192 debug(2, "waiting for %d to stop", pid); in next_event()
196 event.e_un.newpid = pid; in next_event()
197 debug(DEBUG_EVENT, "event: NEW: pid=%d", pid); in next_event()
[all …]
/external/chromium_org/tools/
Dmulti_process_rss.py44 def _recursive_get_children(pid): argument
46 children = psutil.Process(pid).get_children()
51 descendant.append(child.pid)
52 descendant.extend(_recursive_get_children(child.pid))
62 pid = int(arg[:-1])
65 pid = int(arg)
69 pids.append(pid)
71 children = _recursive_get_children(pid)
82 for pid in pids:
83 maps = procfs.ProcMaps.load(pid)
[all …]
/external/libunwind/src/ptrace/
D_UPT_access_reg.c45 pid_t pid = ui->pid; in _UPT_access_reg() local
65 nat_bits = ptrace (PTRACE_PEEKUSER, pid, PT_NAT_BITS, 0); in _UPT_access_reg()
80 ptrace (PTRACE_POKEUSER, pid, PT_NAT_BITS, nat_bits); in _UPT_access_reg()
105 psr = ptrace (PTRACE_PEEKUSER, pid, PT_CR_IPSR, 0); in _UPT_access_reg()
117 ptrace (PTRACE_POKEUSER, pid, PT_CR_IIP, ip); in _UPT_access_reg()
118 ptrace (PTRACE_POKEUSER, pid, PT_CR_IPSR, psr); in _UPT_access_reg()
129 ip = ptrace (PTRACE_PEEKUSER, pid, PT_CR_IIP, 0); in _UPT_access_reg()
153 cfm = ptrace (PTRACE_PEEKUSER, pid, PT_CFM, 0); in _UPT_access_reg()
166 ptrace (PTRACE_POKEUSER, pid, PT_AR_BSP, bsp); in _UPT_access_reg()
177 bsp = ptrace (PTRACE_PEEKUSER, pid, PT_AR_BSP, 0); in _UPT_access_reg()
[all …]
/external/lldb/examples/interposing/darwin/fd_interposing/
DFDInterposing.cpp412 const pid_t pid = getpid(); in get_interposed_pid() local
413 if (g_pid != pid) in get_interposed_pid()
417 g_pid = pid; in get_interposed_pid()
418 … file descriptor create and delete functions for %s (pid=%i)\n", get_process_fullpath (true), pid); in get_interposed_pid()
422 …te and delete functions for child process %s (pid=%i)\n", g_pid, get_process_fullpath (true), pid); in get_interposed_pid()
441 const pid_t pid = get_interposed_pid(); in get_logging_fd() local
572 const int pid = get_interposed_pid(); in backtrace_error() local
573 if (pid >= 0) in backtrace_error()
578 log ("\nerror: %s (pid=%i): ", get_process_fullpath (), pid); in backtrace_error()
666 const int pid = get_interposed_pid(); in socket$__interposed__() local
[all …]
/external/chromium_org/tools/telemetry/telemetry/core/platform/
Dlinux_based_platform_backend.py40 def GetCpuStats(self, pid): argument
41 stats = self._GetProcFileForPid(pid, 'stat')
55 def GetMemoryStats(self, pid): argument
56 status_contents = self._GetProcFileForPid(pid, 'status')
57 stats = self._GetProcFileForPid(pid, 'stat').split()
69 for line in self._GetProcFileForPid(pid, 'smaps').splitlines():
79 def GetIOStats(self, pid): argument
80 io_contents = self._GetProcFileForPid(pid, 'io')
90 def GetPsOutput(self, columns, pid=None): argument
112 def _IsPidAlive(self, pid): argument
[all …]
/external/chromium_org/chromeos/process_proxy/
Dprocess_proxy_registry.cc69 pid_t* pid, in OpenProcess() argument
83 if (!proxy->Open(command, pid)) in OpenProcess()
91 base::Unretained(this), *pid))) { in OpenProcess()
97 DCHECK(proxy_map_.find(*pid) == proxy_map_.end()); in OpenProcess()
101 ProcessProxyInfo& info = proxy_map_[*pid]; in OpenProcess()
104 info.process_id = *pid; in OpenProcess()
109 bool ProcessProxyRegistry::SendInput(pid_t pid, const std::string& data) { in SendInput() argument
112 std::map<pid_t, ProcessProxyInfo>::iterator it = proxy_map_.find(pid); in SendInput()
118 bool ProcessProxyRegistry::CloseProcess(pid_t pid) { in CloseProcess() argument
121 std::map<pid_t, ProcessProxyInfo>::iterator it = proxy_map_.find(pid); in CloseProcess()
[all …]
/external/chromium_org/v8/tools/testrunner/server/
Ddaemon.py39 pid = os.fork()
40 if pid > 0:
54 pid = os.fork()
55 if pid > 0:
75 pid = str(os.getpid())
76 file(self.pidfile, 'w+').write("%s\n" % pid)
88 pid = int(pf.read().strip())
91 pid = None
93 if pid:
109 pid = int(pf.read().strip())
[all …]
/external/linux-tools-perf/perf-3.12.0/tools/perf/scripts/python/
Dnetdev-times.py227 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, vec): argument
230 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
233 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, vec): argument
236 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
239 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, vec): argument
242 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
245 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm, argument
247 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
251 def irq__irq_handler_exit(name, context, cpu, sec, nsec, pid, comm, irq, ret): argument
252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret)
[all …]
/external/chromium_org/chrome/browser/extensions/api/terminal/
Dterminal_private_api.cc49 pid_t pid, in NotifyProcessOutput() argument
55 pid, output_type, output)); in NotifyProcessOutput()
60 args->Append(new base::FundamentalValue(pid)); in NotifyProcessOutput()
113 pid_t pid; in OpenOnFileThread() local
116 &pid, in OpenOnFileThread()
119 pid = -1; in OpenOnFileThread()
124 this, pid)); in OpenOnFileThread()
129 void TerminalPrivateOpenTerminalProcessFunction::RespondOnUIThread(pid_t pid) { in RespondOnUIThread() argument
130 SetResult(new base::FundamentalValue(pid)); in RespondOnUIThread()
141 this, params->pid, params->input)); in RunTerminalFunction()
[all …]
/external/chromium_org/chrome/browser/
Dprocess_info_snapshot_mac.cc30 static bool GetKInfoForProcessID(pid_t pid, kinfo_proc* kinfo) { in GetKInfoForProcessID() argument
31 int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, pid}; in GetKInfoForProcessID()
47 pid_t pid, in GetExecutableNameForProcessID() argument
65 int mib[] = {CTL_KERN, KERN_PROCARGS, pid}; in GetExecutableNameForProcessID()
160 pid_t pid; in GetProcessMemoryInfoUsingPS() local
161 in >> pid; in GetProcessMemoryInfoUsingPS()
165 ProcessInfoSnapshot::ProcInfoEntry proc_info = proc_info_entries[pid]; in GetProcessMemoryInfoUsingPS()
166 proc_info.pid = pid; in GetProcessMemoryInfoUsingPS()
178 if (!proc_info.pid || ! proc_info.vsize) { in GetProcessMemoryInfoUsingPS()
184 proc_info_entries[proc_info.pid] = proc_info; in GetProcessMemoryInfoUsingPS()
[all …]
/external/valgrind/main/none/tests/
Dasync-sigs.c28 static void do_kill(int pid, int sig) in do_kill() argument
45 sprintf(pidbuf, "%d", pid); in do_kill()
71 int pid; in test() local
78 pid = fork(); in test()
79 if (pid == -1) { in test()
89 if (pid == 0) { in test()
103 do_kill(pid, caughtsig); // Should be caught. in test()
105 do_kill(pid, caughtsig); // Ditto. in test()
106 do_kill(pid, caughtsig); // Ditto. in test()
111 do_kill(pid, fatalsig); // Should kill it. in test()
[all …]
/external/chromium-trace/trace-viewer/src/tracing/importer/linux_perf/
Ddisk_parser.js48 openAsyncSlice: function(ts, category, threadName, pid, key, name) { argument
50 category + ':' + threadName, pid);
61 closeAsyncSlice: function(ts, category, threadName, pid, key, args) { argument
63 category + ':' + threadName, pid);
83 f2fsWriteBeginEvent: function(eventName, cpuNumber, pid, ts, eventBase) { argument
93 this.openAsyncSlice(ts, "f2fs", eventBase.threadName, eventBase.pid,
98 f2fsWriteEndEvent: function(eventName, cpuNumber, pid, ts, eventBase) { argument
110 this.closeAsyncSlice(ts, 'f2fs', eventBase.threadName, eventBase.pid,
119 ext4WriteBeginEvent: function(eventName, cpuNumber, pid, ts, eventBase) { argument
129 this.openAsyncSlice(ts, "ext4", eventBase.threadName, eventBase.pid,
[all …]

12345678910>>...45