/external/valgrind/main/coregrind/ |
D | m_debugger.c | 49 static Int ptrace_setregs(Int pid, VexGuestArchState* vex) in ptrace_setregs() argument 70 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, ®s); in ptrace_setregs() 108 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, ®s); in ptrace_setregs() 113 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R0 * 4), (void*)vex->guest_GPR0); in ptrace_setregs() 114 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R1 * 4), (void*)vex->guest_GPR1); in ptrace_setregs() 115 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R2 * 4), (void*)vex->guest_GPR2); in ptrace_setregs() 116 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R3 * 4), (void*)vex->guest_GPR3); in ptrace_setregs() 117 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R4 * 4), (void*)vex->guest_GPR4); in ptrace_setregs() 118 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R5 * 4), (void*)vex->guest_GPR5); in ptrace_setregs() 119 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R6 * 4), (void*)vex->guest_GPR6); in ptrace_setregs() [all …]
|
D | vgdb.c | 457 Bool waitstopped (int pid, int signal_expected, char *msg) in waitstopped() argument 467 p = waitpid(pid, &status, __WALL); in waitstopped() 468 DEBUG(1, "after waitpid pid %d p %d status 0x%x %s\n", pid, p, in waitstopped() 470 if (p != pid) { in waitstopped() 472 msg, pid, p, status, status_image (status)); in waitstopped() 489 res = ptrace (PTRACE_CONT, pid, NULL, signal_received); in waitstopped() 503 Bool stop (int pid, char *msg) in stop() argument 507 DEBUG(1, "%s SIGSTOP pid %d\n", msg, pid); in stop() 508 res = kill (pid, SIGSTOP); in stop() 510 ERROR(errno, "%s SIGSTOP pid %d %ld\n", msg, pid, res); in stop() [all …]
|
/external/strace/ |
D | strace-graph | 44 my ($pid, $call, $args, $result, $time); 48 $pid = $1; 62 $unfinished{$pid} = $_; 67 unless (exists $unfinished{$pid}) { 71 $_ = $unfinished{$pid} . $_; 72 delete $unfinished{$pid}; 83 handle_killed($pid, $time); 93 handle_trace($pid, $call, $args, $result, $time); 211 my ($pid, $call, $args, $result, $time) = @_; 214 if (defined $time and not defined $pr{$pid}{start}) { [all …]
|
D | strace.c | 55 # define my_tgkill(pid, tid, sig) syscall (__NR_tgkill, (pid), (tid), (sig)) argument 57 # define my_tgkill(pid, tid, sig) syscall (__NR_tkill, (tid), (sig)) argument 63 # define my_tgkill(pid, tid, sig) kill ((tid), (sig)) argument 154 int pid; member 368 sprintf(name, "%.512s.%u", outfname, tcp->pid); in newoutf() 392 pid_t pid = fork(); in startup_attach() local 393 if (pid < 0) { in startup_attach() 396 if (pid) { /* parent */ in startup_attach() 433 sprintf(procdir, "/proc/%d/task", tcp->pid); in startup_attach() 448 else if (tid != tcbtab[tcbi]->pid) { in startup_attach() [all …]
|
/external/linux-tools-perf/scripts/perl/ |
D | rw-by-pid.pl | 82 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 …]
|
D | rwtop.pl | 132 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=> 134 my $comm = $reads{$pid}{comm} || ""; 135 my $total_reads = $reads{$pid}{total_reads} || 0; 136 my $bytes_requested = $reads{$pid}{bytes_requested} || 0; 137 my $bytes_read = $reads{$pid}{bytes_read} || 0; 139 printf("%6s %-20s %10s %10s %10s\n", $pid, $comm, 156 foreach my $pid (sort { ($writes{$b}{bytes_written} || 0) <=> 158 my $comm = $writes{$pid}{comm} || ""; 159 my $total_writes = $writes{$pid}{total_writes} || 0; 160 my $bytes_written = $writes{$pid}{bytes_written} || 0; [all …]
|
/external/blktrace/btt/ |
D | proc.c | 30 __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/ |
D | timeline_thread.js | 60 this.pid = parent.pid; 72 TimelineThread.getPTIDFromPidAndTid = function(pid, tid) { argument 73 if (!ptidMap[pid]) 74 ptidMap[pid] = {}; 75 if (!ptidMap[pid][tid]) 76 ptidMap[pid][tid] = pid + ':' + tid; 77 return ptidMap[pid][tid]; 94 return TimelineThread.getPTIDFromPidAndTid(this.tid, this.pid); 165 return this.pid + ': ' + tname; 172 return 'pid: ' + this.pid + [all …]
|
D | timeline_model.js | 112 getOrCreateProcess: function(pid) { argument 113 if (!this.processes[pid]) 114 this.processes[pid] = new TimelineProcess(pid); 115 return this.processes[pid]; 124 for (var pid in this.processes) { 125 var process = this.processes[pid]; 138 for (var pid in this.processes) { 139 var process = this.processes[pid]; 165 for (var pid in this.processes) { 166 var process = this.processes[pid]; [all …]
|
D | linux_perf_mali_parser.js | 36 maliDDKOpenSlice: function(pid, ts, func, blockinfo) { argument 37 var kthread = this.importer.getOrCreateKernelThread('mali_ddk', pid, 43 maliDDKCloseSlice: function(pid, ts, args, blockinfo) { argument 44 var kthread = this.importer.getOrCreateKernelThread('mali_ddk', pid, 68 maliDDKEvent: function(eventName, cpuNumber, pid, ts, eventBase) { argument 73 this.maliDDKOpenSlice(pid, ts, maliEvent[3], maliEvent[2]); 76 this.maliDDKCloseSlice(pid, ts, [], maliEvent[2]); 97 dvfsEventEvent: function(eventName, cpuNumber, pid, ts, eventBase) { argument 106 dvfsSetClockEvent: function(eventName, cpuNumber, pid, ts, eventBase) { argument 115 dvfsSetVoltageEvent: function(eventName, cpuNumber, pid, ts, eventBase) { argument
|
/external/chromium/chrome/browser/ |
D | process_info_snapshot_mac.cc | 28 static bool GetKInfoForProcessID(pid_t pid, kinfo_proc* kinfo) { in GetKInfoForProcessID() argument 29 int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, pid}; in GetKInfoForProcessID() 45 pid_t pid, in GetExecutableNameForProcessID() argument 63 int mib[] = {CTL_KERN, KERN_PROCARGS, pid}; in GetExecutableNameForProcessID() 161 pid_t pid; in GetProcessMemoryInfoUsingPS() local 162 in >> pid; in GetProcessMemoryInfoUsingPS() 166 ProcessInfoSnapshot::ProcInfoEntry proc_info = proc_info_entries[pid]; in GetProcessMemoryInfoUsingPS() 167 proc_info.pid = pid; in GetProcessMemoryInfoUsingPS() 179 if (!proc_info.pid || ! proc_info.vsize) { in GetProcessMemoryInfoUsingPS() 185 proc_info_entries[proc_info.pid] = proc_info; in GetProcessMemoryInfoUsingPS() [all …]
|
D | mach_broker_mac.cc | 96 int pid; in ThreadMain() local 97 err = pid_for_task(child_task, &pid); in ThreadMain() 99 broker_->FinalizePid(pid, in ThreadMain() 147 void MachBroker::AddPlaceholderForPid(base::ProcessHandle pid) { in AddPlaceholderForPid() argument 151 DCHECK_EQ(0u, mach_map_.count(pid)); in AddPlaceholderForPid() 152 mach_map_[pid] = mach_info; in AddPlaceholderForPid() 156 void MachBroker::FinalizePid(base::ProcessHandle pid, in FinalizePid() argument 160 const int count = mach_map_.count(pid); in FinalizePid() 163 LOG(ERROR) << "Unknown process " << pid << " is sending Mach IPC messages!"; in FinalizePid() 168 DCHECK(mach_map_[pid].mach_task_ == MACH_PORT_NULL); in FinalizePid() [all …]
|
D | memory_details_mac.cc | 111 pids_by_browser[index].push_back(entry->pid()); in CollectProcessData() 112 all_pids.push_back(entry->pid()); in CollectProcessData() 122 helper_pids.push_back(entry->pid()); in CollectProcessData() 123 all_pids.push_back(entry->pid()); in CollectProcessData() 137 info.pid = *it; in CollectProcessData() 146 if (process_info.GetProcInfo(info.pid, &proc_info)) { in CollectProcessData() 165 process_info.GetCommittedKBytesOfPID(info.pid, &info.committed); in CollectProcessData() 166 process_info.GetWorkingSetKBytesOfPID(info.pid, &info.working_set); in CollectProcessData() 194 base::ProcessId pid, in CollectProcessDataChrome() argument 197 info.pid = pid; in CollectProcessDataChrome() [all …]
|
D | memory_details_linux.cc | 75 pid_t pid; member 118 unsigned pid, ppid; in GetProcesses() local 120 if (sscanf(buf, "%u (%a[^)]) %*c %u", &pid, &process_name, &ppid) != 3) in GetProcesses() 124 process.pid = pid; in GetProcesses() 154 pmi.pid = *i; in GetProcessDataMemoryInformation() 157 if (pmi.pid == base::GetCurrentProcId()) in GetProcessDataMemoryInformation() 187 if (!zygote_found && zygote == i->pid) { in GetAllChildren() 189 out->push_back(i->pid); in GetAllChildren() 190 next_wavefront.insert(i->pid); in GetAllChildren() 192 out->push_back(i->pid); in GetAllChildren() [all …]
|
/external/linux-tools-perf/scripts/python/ |
D | netdev-times.py | 227 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/valgrind/main/none/tests/ |
D | async-sigs.c | 28 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/dhcpcd/dhcpcd-hooks/ |
D | 50-yp.conf | 6 [ -s /var/run/ypbind.pid ] && cat /var/run/ypbind.pid 12 local cf=/etc/yp.conf."$interface" prefix= x= pid= 31 pid="$(ypbind_pid)" 32 if [ -n "$pid" ]; then 33 kill -HUP "$pid" 41 local pid="$(ypbind_pid)" 42 if [ -n "$pid" ]; then 43 kill -HUP "$pid"
|
/external/chromium/chrome/browser/net/ |
D | url_request_tracking.cc | 18 explicit OriginPidData(int pid) : pid_(pid) {} in OriginPidData() argument 21 int pid() const { return pid_; } in pid() function in __anon421d46010111::OriginPidData 22 void set_pid(int pid) { pid_ = pid; } in set_pid() argument 34 void SetOriginPIDForRequest(int pid, net::URLRequest* request) { in SetOriginPIDForRequest() argument 36 request->SetUserData(&kOriginPidKey, new OriginPidData(pid)); in SetOriginPIDForRequest() 44 return data->pid(); in GetOriginPIDForRequest()
|
/external/linux-tools-perf/util/ |
D | thread.c | 10 static struct thread *thread__new(pid_t pid) in thread__new() argument 16 self->pid = pid; in thread__new() 19 snprintf(self->comm, 32, ":%d", self->pid); in thread__new() 60 return fprintf(fp, "Thread %d %s\n", self->pid, self->comm) + in thread__fprintf() 64 struct thread *perf_session__findnew(struct perf_session *self, pid_t pid) in perf_session__findnew() argument 75 if (self->last_match && self->last_match->pid == pid) in perf_session__findnew() 82 if (th->pid == pid) { in perf_session__findnew() 87 if (pid < th->pid) in perf_session__findnew() 93 th = thread__new(pid); in perf_session__findnew()
|
D | values.c | 9 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init() 12 if (!values->pid || !values->tid || !values->value) in perf_read_values_init() 35 free(values->pid); in perf_read_values_destroy() 46 values->pid = realloc(values->pid, in perf_read_values__enlarge_threads() 47 values->threads_max * sizeof(*values->pid)); in perf_read_values__enlarge_threads() 52 if (!values->pid || !values->tid || !values->value) in perf_read_values__enlarge_threads() 57 u32 pid, u32 tid) in perf_read_values__findnew_thread() argument 62 if (values->pid[i] == pid && values->tid[i] == tid) in perf_read_values__findnew_thread() 69 values->pid[i] = pid; in perf_read_values__findnew_thread() 118 u32 pid, u32 tid, in perf_read_values_add_value() argument [all …]
|
/external/qemu/memcheck/ |
D | memcheck_proc_management.c | 98 create_new_process(uint32_t pid, uint32_t parent_pid) in create_new_process() argument 109 new_proc->pid = pid; in create_new_process() 123 parent_pid, pid); in create_new_process() 135 parent->image_path, parent_pid, pid); in create_new_process() 145 parent->image_path, parent_pid, pid); in create_new_process() 154 if(create_new_thread(new_proc, pid) == NULL) { in create_new_process() 275 strlen(image_path) + 1, image_path, proc->pid); in procdesc_set_image_path() 316 get_process_from_pid(uint32_t pid) in get_process_from_pid() argument 322 if (current_thread != NULL && current_thread->process->pid == pid) { in get_process_from_pid() 328 if (pid == proc->pid) { in get_process_from_pid() [all …]
|
/external/openssh/openbsd-compat/ |
D | mktemp.c | 82 pid_t pid; local 98 pid = getpid(); 99 while (trv >= path && *trv == 'X' && pid != 0) { 100 *trv-- = (pid % 10) + '0'; 101 pid /= 10; 106 pid = (arc4random() & 0xffff) % (26+26); 107 if (pid < 26) 108 c = pid + 'A'; 110 c = (pid - 26) + 'a';
|
/external/chromium/base/ |
D | file_util_android.cc | 70 pid_t pid; in _gettemp() local 86 pid = getpid(); in _gettemp() 87 while (trv >= path && *trv == 'X' && pid != 0) { in _gettemp() 88 *trv-- = (pid % 10) + '0'; in _gettemp() 89 pid /= 10; in _gettemp() 94 pid = (arc4random() & 0xffff) % (26+26); in _gettemp() 95 if (pid < 26) in _gettemp() 96 c = pid + 'A'; in _gettemp() 98 c = (pid - 26) + 'a'; in _gettemp()
|
/external/libcap-ng/libcap-ng-0.7/utils/ |
D | pscap.c | 69 int pid, ppid, uid = -1, euid = -1; in main() local 79 pid = strtol(ent->d_name, NULL, 10); in main() 84 if (pid == our_pid) in main() 88 snprintf(buf, 32, "/proc/%d/stat", pid); in main() 107 if (pid == 2 || ppid == 2) in main() 110 if (!show_all && pid == 1) in main() 115 capng_setpid(pid); in main() 125 snprintf(buf, 32, "/proc/%d/status", pid); in main() 170 printf("%-5d %-5d %-10s %-16s ", ppid, pid, in main() 173 printf("%-5d %-5d %-10d %-16s ", ppid, pid, in main()
|
/external/valgrind/main/gdbserver_tests/ |
D | fork_chain.c | 8 int pid; in fork_chain() local 12 pid = fork(); in fork_chain() 13 if (pid == -1) { in fork_chain() 18 if (pid == 0) { in fork_chain() 25 while((ret = waitpid(pid, &status, 0)) != pid) { in fork_chain()
|