Home
last modified time | relevance | path

Searched refs:instr_range (Results 1 – 2 of 2) sorted by relevance

/system/extras/simpleperf/
DETMDecoder.cpp416 ETMInstrRange instr_range; member
435 auto& instr_range = data.instr_range; in ProcessElement() local
441 instr_range.branch_to_addr = start_addr; in ProcessElement()
444 instr_range.dso = map->dso; in ProcessElement()
445 instr_range.start_addr = start_addr; in ProcessElement()
446 instr_range.end_addr = map->GetVaddrInFile(elem.en_addr - elem.last_instr_sz); in ProcessElement()
453 instr_range.branch_to_addr = map->GetVaddrInFile(next_instr->branch_addr); in ProcessElement()
456 instr_range.branch_to_addr = 0; in ProcessElement()
458 instr_range.branch_taken_count = branch_taken ? 1 : 0; in ProcessElement()
459 instr_range.branch_not_taken_count = branch_taken ? 0 : 1; in ProcessElement()
[all …]
Dcmd_inject.cpp291 void ProcessInstrRange(const ETMInstrRange& instr_range) { in ProcessInstrRange() argument
292 if (!FilterDso(instr_range.dso)) { in ProcessInstrRange()
296 auto& binary = autofdo_binary_map_[instr_range.dso]; in ProcessInstrRange()
297 binary.range_count_map[AddrPair(instr_range.start_addr, instr_range.end_addr)] += in ProcessInstrRange()
298 instr_range.branch_taken_count + instr_range.branch_not_taken_count; in ProcessInstrRange()
299 if (instr_range.branch_taken_count > 0) { in ProcessInstrRange()
300 binary.branch_count_map[AddrPair(instr_range.end_addr, instr_range.branch_to_addr)] += in ProcessInstrRange()
301 instr_range.branch_taken_count; in ProcessInstrRange()