diff options
Diffstat (limited to 'simpleperf/cmd_report.cpp')
-rw-r--r-- | simpleperf/cmd_report.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/simpleperf/cmd_report.cpp b/simpleperf/cmd_report.cpp index e2cd39c0..2ab58278 100644 --- a/simpleperf/cmd_report.cpp +++ b/simpleperf/cmd_report.cpp @@ -583,7 +583,7 @@ bool ReportCommand::ReadSampleTreeFromRecordFile() { bool ReportCommand::ProcessRecord(std::unique_ptr<Record> record) { BuildThreadTree(*record, &thread_tree_); - if (record->header.type == PERF_RECORD_SAMPLE) { + if (record->type() == PERF_RECORD_SAMPLE) { sample_tree_builder_->ProcessSampleRecord( *static_cast<const SampleRecord*>(record.get())); } @@ -616,6 +616,7 @@ void ReportCommand::PrintReportContext(FILE* report_fp) { if (!record_cmdline_.empty()) { fprintf(report_fp, "Cmdline: %s\n", record_cmdline_.c_str()); } + fprintf(report_fp, "Arch: %s\n", GetArchString(record_file_arch_).c_str()); for (const auto& attr : event_attrs_) { const EventType* event_type = FindEventTypeByConfig(attr.type, attr.config); std::string name; |