Home | History | Annotate | Download | only in qtools

Lines Matching defs:ProcessState

91     class ProcessState {
109 // Define values for the ProcessState flag bits
121 ProcessState() {
142 ~ProcessState() {
190 ProcessState *parent;
191 ProcessState *addr_manager; // the address space manager process
192 ProcessState *next;
202 void CopyKernelRegion(ProcessState *pstate);
203 void ClearRegions(ProcessState *pstate);
204 void CopyRegions(ProcessState *parent, ProcessState *child);
205 void DumpRegions(FILE *stream, ProcessState *pstate);
208 ProcessState *GetCurrentProcess() { return current_; }
209 ProcessState *GetProcesses(int *num_procs);
210 ProcessState *GetNextProcess();
216 ProcessState **pproc);
233 void AddPredefinedRegions(ProcessState *pstate);
236 void AddRegion(ProcessState *pstate, region_type *region);
241 void FindAndRemoveRegion(ProcessState *pstate,
249 void HandleMethodRecord(ProcessState *pstate,
258 ProcessState *processes_[kNumPids];
259 ProcessState *current_;
284 current_ = new ProcessState;
313 // is reference-counted and deleted by the ProcessState
318 // Delete the ProcessState objects after the region symbols in
411 typename TraceReader<T>::ProcessState*
422 ProcessState *procs = new ProcessState[nprocs];
425 ProcessState *pstate = procs;
428 memcpy(pstate++, processes_[ii], sizeof(ProcessState));
438 typename TraceReader<T>::ProcessState*
494 void TraceReader<T>::AddPredefinedRegions(ProcessState *pstate)
543 processes_[0]->flags |= ProcessState::kHasKernelRegion;
875 void TraceReader<T>::CopyKernelRegion(ProcessState *pstate)
877 ProcessState *manager = pstate->addr_manager;
878 if (manager->flags & ProcessState::kHasKernelRegion)
889 manager->flags |= ProcessState::kHasKernelRegion;
893 void TraceReader<T>::ClearRegions(ProcessState *pstate)
913 pstate->flags &= ~ProcessState::kIsClone;
914 pstate->flags &= ~ProcessState::kHasKernelRegion;
919 void TraceReader<T>::AddRegion(ProcessState *pstate, region_type *region)
921 ProcessState *manager = pstate->addr_manager;
923 manager->max_regions = ProcessState::kInitialNumRegions;
952 void TraceReader<T>::FindAndRemoveRegion(ProcessState *pstate, uint32_t vstart,
955 ProcessState *manager = pstate->addr_manager;
1009 void TraceReader<T>::CopyRegions(ProcessState *parent, ProcessState *child)
1012 ProcessState *manager = parent->addr_manager;
1027 void TraceReader<T>::DumpRegions(FILE *stream, ProcessState *pstate) {
1028 ProcessState *manager = pstate->addr_manager;
1140 ProcessState *pstate = processes_[pid];
1148 ProcessState *manager = pstate->addr_manager;
1180 // Create a new ProcessState struct for the child
1184 ProcessState *child = new ProcessState;
1201 child->flags |= ProcessState::kIsClone;
1218 if (current_->flags & ProcessState::kCalledExit)
1231 current_ = new ProcessState;
1240 ProcessState *manager = current_->addr_manager;
1254 current_->flags |= ProcessState::kCalledExit;
1301 if (current_->flags & ProcessState::kHasFirstMmap)
1304 current_->flags |= ProcessState::kHasFirstMmap;
1329 current_->flags |= ProcessState::kCalledExec;
1335 ProcessState *pstate = processes_[event->pid];
1337 pstate = new ProcessState;
1384 void TraceReader<T>::ProcessState::DumpStack(FILE *stream)
1394 void TraceReader<T>::HandleMethodRecord(ProcessState *pstate,
1460 ProcessState *manager = pstate->addr_manager;
1481 ProcessState *procState = processes_[pid];
1491 ProcessState *pState = processes_[next_method_.pid];
1537 ProcessState **pproc)
1552 ProcessState *pstate = processes_[next_method_.pid];