diff options
-rw-r--r-- | simpleperf/cmd_record.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/simpleperf/cmd_record.cpp b/simpleperf/cmd_record.cpp index dd8d2380..5ef0bd87 100644 --- a/simpleperf/cmd_record.cpp +++ b/simpleperf/cmd_record.cpp @@ -575,7 +575,8 @@ bool RecordCommand::PrepareRecording(Workload* workload) { // 2. Add default event type. if (event_selection_set_.empty()) { std::string event_type = default_measured_event_type; - if (GetTargetArch() == ARCH_X86_32 || GetTargetArch() == ARCH_X86_64) { + if (GetTargetArch() == ARCH_X86_32 || GetTargetArch() == ARCH_X86_64 || + GetTargetArch() == ARCH_RISCV64) { // Emulators may not support hardware events. So switch to cpu-clock when cpu-cycles isn't // available. if (!IsHardwareEventSupported()) { |