Lines Matching refs:pstate
202 void CopyKernelRegion(ProcessState *pstate);
203 void ClearRegions(ProcessState *pstate);
205 void DumpRegions(FILE *stream, ProcessState *pstate);
233 void AddPredefinedRegions(ProcessState *pstate);
236 void AddRegion(ProcessState *pstate, region_type *region);
241 void FindAndRemoveRegion(ProcessState *pstate,
249 void HandleMethodRecord(ProcessState *pstate,
425 ProcessState *pstate = procs;
428 memcpy(pstate++, processes_[ii], sizeof(ProcessState));
494 void TraceReader<T>::AddPredefinedRegions(ProcessState *pstate)
501 AddRegion(pstate, region);
511 AddRegion(pstate, region);
527 AddRegion(pstate, region);
875 void TraceReader<T>::CopyKernelRegion(ProcessState *pstate)
877 ProcessState *manager = pstate->addr_manager;
893 void TraceReader<T>::ClearRegions(ProcessState *pstate)
895 assert(pstate->pid != 0);
896 int nregions = pstate->nregions;
897 region_type **regions = pstate->regions;
908 delete[] pstate->regions;
909 pstate->regions = NULL;
910 pstate->nregions = 0;
911 pstate->max_regions = 0;
912 pstate->addr_manager = pstate;
913 pstate->flags &= ~ProcessState::kIsClone;
914 pstate->flags &= ~ProcessState::kHasKernelRegion;
915 CopyKernelRegion(pstate);
919 void TraceReader<T>::AddRegion(ProcessState *pstate, region_type *region)
921 ProcessState *manager = pstate->addr_manager;
952 void TraceReader<T>::FindAndRemoveRegion(ProcessState *pstate, uint32_t vstart,
955 ProcessState *manager = pstate->addr_manager;
1027 void TraceReader<T>::DumpRegions(FILE *stream, ProcessState *pstate) {
1028 ProcessState *manager = pstate->addr_manager;
1140 ProcessState *pstate = processes_[pid];
1141 if (pstate == NULL) {
1148 ProcessState *manager = pstate->addr_manager;
1335 ProcessState *pstate = processes_[event->pid];
1336 if (pstate == NULL) {
1337 pstate = new ProcessState;
1339 pstate->tgid = event->tgid;
1341 pstate->pid = event->pid;
1342 pstate->start_time = event->time;
1343 processes_[event->pid] = pstate;
1344 CopyKernelRegion(pstate);
1346 delete[] pstate->name;
1348 pstate->name = event->path;
1394 void TraceReader<T>::HandleMethodRecord(ProcessState *pstate,
1398 int top = pstate->method_stack_top;
1403 if (top >= pstate->kMaxMethodStackSize) {
1407 pstate->method_stack[top].addr = method_rec->addr;
1409 pstate->method_stack[top].isNative = isNative;
1410 pstate->method_stack_top = top + 1;
1415 pstate->current_method_sym = NULL;
1419 addr = pstate->method_stack[top].addr;
1424 if (addr != method_rec->addr && !pstate->method_stack[top].isNative) {
1428 pstate->DumpStack(stderr);
1435 if (poppingNative != pstate->method_stack[top].isNative) {
1439 pstate->DumpStack(stderr);
1443 pstate->method_stack_top = top;
1446 pstate->current_method_sym = NULL;
1449 addr = pstate->method_stack[top - 1].addr;
1450 isNative = pstate->method_stack[top - 1].isNative;
1456 pstate->current_method_sym = NULL;
1460 ProcessState *manager = pstate->addr_manager;
1466 pstate->current_method_sym = sym;
1491 ProcessState *pState = processes_[next_method_.pid];
1492 HandleMethodRecord(pState, &next_method_);
1552 ProcessState *pstate = processes_[next_method_.pid];
1553 *pproc = pstate;
1554 HandleMethodRecord(pstate, &next_method_);
1555 *psym = pstate->current_method_sym;