/sdk/emulator/qtools/ |
D | parse_options-inl.h | 28 inline bool IsValidEvent(BBEvent *event, symbol_type *sym) in IsValidEvent() argument 35 if (sym == NULL || included_procedures.Find(sym->name) == 0) in IsValidEvent() 39 if (sym == NULL || excluded_procedures.Find(sym->name)) in IsValidEvent() 56 symbol_type *sym = trace->LookupFunction(pid, addr, time); in GetSymbol() local 58 if (lump_kernel && (sym->region->flags & region_type::kIsKernelRegion)) { in GetSymbol() 60 kernel_sym = sym; in GetSymbol() 61 sym->name = ":kernel"; in GetSymbol() 63 sym = kernel_sym; in GetSymbol() 67 if (lump_libraries && (sym->region->flags & region_type::kIsLibraryRegion)) { in GetSymbol() 69 library_sym = sym; in GetSymbol() [all …]
|
D | profile_trace.cpp | 68 symbol_type *sym; in main() local 72 bool eof = GetNextValidEvent(trace, &event, &first_ignored_event, &sym); in main() 86 sym->count += 1; in main() 87 prev_sym = sym; in main() 90 bb_time, bb_num, bb_addr, sym->name, sym->addr, sym->count); in main() 102 symbol_type *sym = syms; in main() local 103 for (int ii = 0; ii < nsyms; ++ii, ++sym) { in main() 104 total += sym->elapsed; in main() 113 sym = syms; in main() 114 for (int ii = 0; ii < nsyms; ++ii, ++sym) { in main() [all …]
|
D | q2g.cpp | 53 symbol_type *sym; in main() local 54 if (GetNextValidEvent(trace, &event, &ignored, &sym)) in main() 64 if (sym != prev_sym) { in main() 69 if (sym->filenum == 0) { in main() 70 sym->filenum = next_filenum; in main() 71 sym->procnum = next_procnum; in main() 72 gtrace->AddProcedure(sym->filenum, sym->procnum, sym->name); in main() 90 gtrace->AddProcEntry(sym->filenum, sym->procnum, event.time, event.pid); in main() 91 prev_sym = sym; in main() 95 eof = GetNextValidEvent(trace, &event, &ignored, &sym); in main()
|
D | bb2sym.cpp | 15 symbol_type *sym; member 70 blocks[ii].sym = NULL; in main() 78 symbol_type *sym; in main() local 82 if (GetNextValidEvent(trace, &event, &ignored, &sym)) in main() 86 blocks[bb_num].sym = sym; in main() 92 || sorted[ii]->sym == NULL) in main() 97 sorted[ii]->bb.bb_addr, sorted[ii]->sym->region->path, in main() 98 sorted[ii]->sym->name); in main()
|
D | read_trace.cpp | 63 symbol_type *sym; in main() local 68 if (GetNextValidEvent(trace, &event, &ignored, &sym)) in main() 77 uint32_t offset = addr - sym->addr - sym->region->base_addr; in main() 78 symbol_type *vm_sym = sym->vm_sym; in main() 85 if (strcmp(sym->name, "(unknown)") == 0 || offset > kOffsetThreshold) { in main() 117 sprintf(buf, "%s+%02x: %s", vm_name, offset, sym->name); in main() 119 sprintf(buf, "%s+%02x", sym->name, offset); in main()
|
D | read_method.cpp | 95 symbol_type *sym; in main() local 99 if (trace->ReadMethodSymbol(&method_record, &sym, &proc)) in main() 105 if (sym != NULL) { in main() 108 method_record.flags, sym->name); in main() 127 sym == NULL ? NULL: sym->name, in main()
|
D | read_elf.cpp | 65 void SwapElfSymbol(Elf32_Sym *sym) in SwapElfSymbol() argument 67 sym->st_name = SwapWord(sym->st_name); in SwapElfSymbol() 68 sym->st_value = SwapAddr(sym->st_value); in SwapElfSymbol() 69 sym->st_size = SwapWord(sym->st_size); in SwapElfSymbol() 70 sym->st_shndx = SwapSection(sym->st_shndx); in SwapElfSymbol()
|
D | bb_dump.cpp | 36 symbol_type *sym; in main() local 40 if (GetNextValidEvent(trace, &event, &ignored, &sym)) in main() 44 event.bb_addr, sym->name); in main()
|
D | q2dm.cpp | 42 void push(symbol_type *sym) { in push() argument 45 frames[top] = sym; in push() 110 symbol_type *sym = fstack->pop(); in pop() local 111 if (sym != NULL && sym != function) { in pop() 113 stack->getGlobalTime(time), pid, sym->name); in pop()
|
D | check_trace.cpp | 38 symbol_type *sym; in main() local 42 if (GetNextValidEvent(trace, &event, &ignored, &sym)) in main()
|
D | trace_reader.cpp | 19 DexSym sym; member 833 for (DexSymList *sym = head; sym; sym = next_sym) { in CopyDexSymbolsToArray() local 834 next_sym = sym->next; in CopyDexSymbolsToArray() 835 symbols[next_index].addr = sym->sym.addr; in CopyDexSymbolsToArray() 836 symbols[next_index].len = sym->sym.len; in CopyDexSymbolsToArray() 837 symbols[next_index].name = sym->sym.name; in CopyDexSymbolsToArray() 839 delete sym; in CopyDexSymbolsToArray() 982 symbol->sym.addr = addr; in ParseDexList() 983 symbol->sym.len = len; in ParseDexList() 984 symbol->sym.name = name; in ParseDexList()
|
D | check_stack.cpp | 111 symbol_type *sym; in main() local 115 if (mtrace->ReadMethodSymbol(&method_record, &sym, &proc)) in main() 133 sym == NULL ? NULL: sym->name, in main()
|
D | trace_reader.h | 1130 symbol_type *sym = FindCurrentMethod(pid, time); in LookupFunction() local 1131 if (sym != NULL) { in LookupFunction() 1132 sym->vm_sym = cached_func_; in LookupFunction() 1133 return sym; in LookupFunction() 1159 symbol_type *sym = FindCurrentMethod(pid, time); in LookupFunction() local 1160 if (sym != NULL) { in LookupFunction() 1161 sym->vm_sym = cached_func_; in LookupFunction() 1162 return sym; in LookupFunction() 1463 symbol_type *sym = FindFunction(sym_addr, region->nsymbols, in HandleMethodRecord() local 1466 pstate->current_method_sym = sym; in HandleMethodRecord() [all …]
|
/sdk/emulator/qtools/tests/ |
D | macros.h | 83 #define TRACE_DYN_SYM(addr,sym)\ argument 86 DEV_WRITE_WORD(TRACE_DEV_REG_DYN_SYM, (unsigned long)(sym));\
|