Home
last modified time | relevance | path

Searched refs:callchain (Results 1 – 20 of 20) sorted by relevance

/system/extras/simpleperf/
Dsample_tree.h122 std::vector<EntryT*> callchain; in ProcessSampleRecord() local
123 callchain.push_back(sample); in ProcessSampleRecord()
147 CreateCallChainSample(sample, ip, in_kernel, callchain, acc_info); in ProcessSampleRecord()
151 callchain.push_back(callchain_sample); in ProcessSampleRecord()
158 std::reverse(callchain.begin(), callchain.end()); in ProcessSampleRecord()
160 while (callchain.size() >= 2) { in ProcessSampleRecord()
161 EntryT* sample = callchain[0]; in ProcessSampleRecord()
162 callchain.erase(callchain.begin()); in ProcessSampleRecord()
168 InsertCallChainForSample(sample, callchain, acc_info); in ProcessSampleRecord()
189 const std::vector<EntryT*>& callchain,
[all …]
Dcallchain.h47 const std::vector<EntryT*>& callchain, uint64_t period, in AddCallChain()
50 NodeT* p = FindMatchingNode(children, callchain[0], is_same_sample); in AddCallChain()
52 std::unique_ptr<NodeT> new_node = AllocateNode(callchain, 0, period, 0); in AddCallChain()
59 GetMatchingLengthInNode(p, callchain, callchain_pos, is_same_sample); in AddCallChain()
67 if (callchain_pos == callchain.size()) { in AddCallChain()
73 NodeT* np = FindMatchingNode(p->children, callchain[callchain_pos], in AddCallChain()
81 AllocateNode(callchain, callchain_pos, period, 0); in AddCallChain()
Dcmd_report_sample.cpp282 const proto::Sample_CallChainEntry& callchain = sample.callchain(i); in DumpProtobufReport() local
284 callchain.vaddr_in_file()); in DumpProtobufReport()
285 FprintIndented(report_fp_, 2, "file_id: %u\n", callchain.file_id()); in DumpProtobufReport()
286 int32_t symbol_id = callchain.symbol_id(); in DumpProtobufReport()
293 max_symbol_id_map[callchain.file_id()] = in DumpProtobufReport()
294 std::max(max_symbol_id_map[callchain.file_id()], symbol_id); in DumpProtobufReport()
369 proto::Sample_CallChainEntry* callchain = sample->add_callchain(); in PrintSampleRecordInProtobuf() local
370 callchain->set_vaddr_in_file(vaddr_in_file); in PrintSampleRecordInProtobuf()
371 callchain->set_file_id(file_id); in PrintSampleRecordInProtobuf()
372 callchain->set_symbol_id(symbol_id); in PrintSampleRecordInProtobuf()
[all …]
DSampleDisplayer.h119 for (size_t i = 0; i < sample->callchain.children.size(); ++i) { in operator()
120 DisplayCallGraphEntry(fp, 1, prefix, sample->callchain.children[i], in operator()
121 sample->callchain.children_period + sample->GetPeriod(), in operator()
122 (i + 1 == sample->callchain.children.size())); in operator()
Dreport_sample.proto34 repeated CallChainEntry callchain = 3; field
Dcmd_kmem.cpp43 CallChainRoot<SlabSample> callchain; // a callchain tree representing all member
216 const std::vector<SlabSample*>& callchain, in CreateCallChainSample() argument
226 callchain); in CreateCallChainSample()
Dcmd_report.cpp74 CallChainRoot<SampleEntry> callchain; member
177 const std::vector<SampleEntry*>& callchain, in CreateCallChainSample() argument
186 return InsertCallChainSample(std::move(callchain_sample), callchain); in CreateCallChainSample()
/system/extras/perfprofd/quipper/
Dperf_internals.h47 sample.callchain = NULL; in PerfSampleCustodian()
51 if (sample_.callchain) in ~PerfSampleCustodian()
52 delete [] sample_.callchain; in ~PerfSampleCustodian()
Dperf_parser.cc279 if (sample_info.callchain && in MapSampleEvent()
283 sample_info.callchain, in MapSampleEvent()
311 struct ip_callchain* callchain, in MapCallchain() argument
313 if (!callchain) { in MapCallchain()
321 if (callchain->nr == 0) in MapCallchain()
325 parsed_event->callchain.resize(callchain->nr); in MapCallchain()
327 for (unsigned int j = 0; j < callchain->nr; ++j) { in MapCallchain()
328 uint64_t entry = callchain->ips[j]; in MapCallchain()
335 callchain->ips[j] = ip; in MapCallchain()
341 &callchain->ips[j], in MapCallchain()
[all …]
Dperf_parser.h89 std::vector<DSOAndOffset> callchain; member
215 struct ip_callchain* callchain,
Dperf_reader.cc276 CHECK_EQ(static_cast<void*>(NULL), sample->callchain); in ReadCallchain()
283 struct ip_callchain* callchain = in ReadCallchain() local
285 callchain->nr = callchain_size; in ReadCallchain()
287 callchain->ips[i] = *array++; in ReadCallchain()
289 ByteSwap(&callchain->ips[i]); in ReadCallchain()
291 sample->callchain = callchain; in ReadCallchain()
608 if (!sample.callchain) { in WritePerfSampleToData()
611 *array++ = sample.callchain->nr; in WritePerfSampleToData()
612 for (size_t i = 0; i < sample.callchain->nr; ++i) in WritePerfSampleToData()
613 *array++ = sample.callchain->ips[i]; in WritePerfSampleToData()
/system/extras/perfprofd/
Dperf_data_converter.cc11 typedef std::vector<DSOAndOffset> callchain; typedef
14 bool operator()(const callchain *c1, const callchain *c2) const { in operator ()()
54 map<const callchain *, uint64, callchain_lt> callchain_count_map;
99 if (!event.callchain.empty()) { in RawPerfDataToAndroidPerfProfile()
102 const callchain *cc = &event.callchain; in RawPerfDataToAndroidPerfProfile()
/system/extras/simpleperf/scripts/
Dreport_sample.py46 callchain = lib.GetCallChainOfCurrentSample()
54 for i in range(callchain.nr):
55 entry = callchain.entries[i]
Dsimpleperf_report_lib.py126 def __init__(self, callchain): argument
127 self.nr = callchain.nr
130 self.entries.append(CallChainEntryStructureUsingStr(callchain.entries[i]))
231 callchain = self._GetCallChainOfCurrentSampleFunc(self.getInstance())
232 assert(not _is_null(callchain))
234 return CallChainStructureUsingStr(callchain[0])
235 return callchain[0]
295 callchain = self.report_lib.GetCallChainOfCurrentSample()
296 self.assertEqual(callchain.nr, 0)
Dbinary_cache_builder.py79 callchain = lib.GetCallChainOfCurrentSample()
80 for i in range(callchain.nr):
81 symbols.append(callchain.entries[i].symbol)
Dannotate.py335 callchain = lib.GetCallChainOfCurrentSample()
336 for i in range(callchain.nr):
337 symbols.append(callchain.entries[i].symbol)
391 callchain = lib.GetCallChainOfCurrentSample()
392 for i in range(callchain.nr):
393 symbols.append(callchain.entries[i].symbol)
Dpprof_proto_generator.py298 callchain = self.lib.GetCallChainOfCurrentSample()
310 for i in range(callchain.nr):
311 entry = callchain.entries[i]
/system/extras/perfprofd/tests/
DAndroid.mk20 LOCAL_MODULE := callchain.canned.perf.data
24 LOCAL_SRC_FILES := callchain.canned.perf.data
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/
Devent.h130 struct ip_callchain * callchain; member
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
Devent.h118 struct ip_callchain *callchain; member