• Home
  • Raw
  • Download

Lines Matching refs:current_

208     ProcessState        *GetCurrentProcess()            { return current_; }  in GetCurrentProcess()
259 ProcessState *current_; variable
284 current_ = new ProcessState; in TraceReader()
285 processes_[0] = current_; in TraceReader()
292 AddPredefinedRegions(current_); in TraceReader()
1193 child->parent_pid = current_->pid; in HandlePidEvent()
1194 child->parent = current_; in HandlePidEvent()
1196 child->name = Strdup(current_->name); in HandlePidEvent()
1198 CopyRegions(current_, child); in HandlePidEvent()
1206 child->addr_manager = current_->addr_manager; in HandlePidEvent()
1216 current_->cpu_time += elapsed; in HandlePidEvent()
1218 if (current_->flags & ProcessState::kCalledExit) in HandlePidEvent()
1219 current_->end_time = event->time; in HandlePidEvent()
1229 current_ = processes_[event->pid]; in HandlePidEvent()
1230 if (current_ == NULL) { in HandlePidEvent()
1231 current_ = new ProcessState; in HandlePidEvent()
1232 processes_[event->pid] = current_; in HandlePidEvent()
1233 current_->pid = event->pid; in HandlePidEvent()
1234 current_->start_time = event->time; in HandlePidEvent()
1235 CopyKernelRegion(current_); in HandlePidEvent()
1239 printf("switching to p%d\n", current_->pid); in HandlePidEvent()
1240 ProcessState *manager = current_->addr_manager; in HandlePidEvent()
1253 current_->exit_val = event->pid; in HandlePidEvent()
1254 current_->flags |= ProcessState::kCalledExit; in HandlePidEvent()
1257 FindAndRemoveRegion(current_, event->vstart, event->vend); in HandlePidEvent()
1301 if (current_->flags & ProcessState::kHasFirstMmap) in HandlePidEvent()
1304 current_->flags |= ProcessState::kHasFirstMmap; in HandlePidEvent()
1314 AddRegion(current_, region); in HandlePidEvent()
1318 if (current_->argc > 0) { in HandlePidEvent()
1319 for (int ii = 0; ii < current_->argc; ii++) { in HandlePidEvent()
1320 delete[] current_->argv[ii]; in HandlePidEvent()
1322 delete[] current_->argv; in HandlePidEvent()
1324 delete[] current_->name; in HandlePidEvent()
1326 current_->argc = event->argc; in HandlePidEvent()
1327 current_->argv = event->argv; in HandlePidEvent()
1328 current_->name = Strdup(current_->argv[0]); in HandlePidEvent()
1329 current_->flags |= ProcessState::kCalledExec; in HandlePidEvent()
1330 ClearRegions(current_); in HandlePidEvent()
1368 return current_->pid; in FindCurrentPid()
1380 return current_->pid; in FindCurrentPid()