diff --git a/src/perf/counter/group/reader.cpp b/src/perf/counter/group/reader.cpp index 8f5fc9b7..114d27ae 100644 --- a/src/perf/counter/group/reader.cpp +++ b/src/perf/counter/group/reader.cpp @@ -110,6 +110,12 @@ Reader::Reader(ExecutionScope scope, bool enable_on_exec) << " counters at once might exceed the hardware limit of simultaneously " "openable counters."; } + + if (perf::counter::CounterProvider::instance().has_group_counters( + ExecutionScope(scope))) + { + Log::error() << "Try using --userspace-metric-event if the error persists."; + } throw e; } }