Home | History | Annotate | Download | only in qtools

Lines Matching refs:pid

124             pid = 0;
180 int pid;
206 symbol_type *LookupFunction(int pid, uint32_t addr, uint64_t time);
211 const char *GetProcessName(int pid);
245 symbol_type *FindCurrentMethod(int pid, uint64_t time);
451 const char* TraceReader<T>::GetProcessName(int pid)
453 if (pid < 0 || pid >= kNumPids || processes_[pid] == NULL)
455 return processes_[pid]->name;
895 assert(pstate->pid != 0);
1118 TraceReader<T>::LookupFunction(int pid, uint32_t addr, uint64_t time)
1121 if (cached_pid_ == pid) {
1130 symbol_type *sym = FindCurrentMethod(pid, time);
1140 ProcessState *pstate = processes_[pid];
1142 // There is no process state for the specified pid.
1149 cached_pid_ = pid;
1159 symbol_type *sym = FindCurrentMethod(pid, time);
1175 // event->pid is the process id of the child
1176 if (event->pid >= kNumPids) {
1177 fprintf(stderr, "Error: pid (%d) too large\n", event->pid);
1182 // pid.
1185 processes_[event->pid] = child;
1186 child->pid = event->pid;
1192 child->next = processes_[event->pid];
1193 child->parent_pid = current_->pid;
1211 // event->pid is the process id of the process we are
1221 if (event->pid >= kNumPids) {
1222 fprintf(stderr, "Error: pid (%d) too large\n", event->pid);
1229 current_ = processes_[event->pid];
1232 processes_[event->pid] = current_;
1233 current_->pid = event->pid;
1239 printf("switching to p%d\n", current_->pid);
1253 current_->exit_val = event->pid;
1335 ProcessState *pstate = processes_[event->pid];
1341 pstate->pid = event->pid;
1343 processes_[event->pid] = pstate;
1361 // Finds the current pid for the given time. This routine reads the pid
1368 return current_->pid;
1380 return current_->pid;
1472 // Returns the current top-of-stack Java method, if any, for the given pid
1479 TraceReader<T>::FindCurrentMethod(int pid, uint64_t time)
1481 ProcessState *procState = processes_[pid];
1489 // We may have to process methods from a different pid so use
1491 ProcessState *pState = processes_[next_method_.pid];
1548 // Read the pid trace file up to this point to make sure the
1552 ProcessState *pstate = processes_[next_method_.pid];