Skip to content

Commit

Permalink
Print a useful message if we see PERF_AUX_FLAG_TRUNCATED in Intel PT.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuey committed Oct 11, 2024
1 parent deeb983 commit cc863ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/PerfCounters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,10 @@ size_t PerfCounters::PTState::flush() {
case PERF_RECORD_AUX: {
auto aux_packet = *reinterpret_cast<PerfEventAux*>(packet->data());
if (aux_packet.flags) {
if (aux_packet.flags & PERF_AUX_FLAG_TRUNCATED) {
CLEAN_FATAL() << "PT aux data truncated. Try increasing "
"PT_PERF_AUX_SIZE in src/PerfCounters.cc and rerecording.";
}
FATAL() << "Unexpected AUX packet flags " << aux_packet.flags;
}
pt_data.data.emplace_back();
Expand Down

0 comments on commit cc863ba

Please sign in to comment.