diff options
Diffstat (limited to 'simpleperf/event_selection_set.cpp')
-rw-r--r-- | simpleperf/event_selection_set.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/simpleperf/event_selection_set.cpp b/simpleperf/event_selection_set.cpp index a6d9a7e0..d5bca318 100644 --- a/simpleperf/event_selection_set.cpp +++ b/simpleperf/event_selection_set.cpp @@ -217,7 +217,8 @@ bool EventSelectionSet::BuildAndCheckEventSelection(const std::string& event_nam selection->event_attr.precise_ip = event_type->precise_ip; if (IsEtmEventType(event_type->event_type.type)) { auto& etm_recorder = ETMRecorder::GetInstance(); - if (!etm_recorder.CheckEtmSupport()) { + if (auto result = etm_recorder.CheckEtmSupport(); !result.ok()) { + LOG(ERROR) << result.error(); return false; } ETMRecorder::GetInstance().SetEtmPerfEventAttr(&selection->event_attr); |