diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 8300e8c7aea8257f117d51b3a15ed87d5af9081a..6a571d322bb24ce2feb07f4f1830e2517c516dbb 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -2427,6 +2427,10 @@ bool perf_evsel__fallback(struct evsel *evsel, int err, char *new_name; const char *sep = ":"; + /* If event has exclude user then don't exclude kernel. */ + if (evsel->core.attr.exclude_user) + return false; + /* Is there already the separator in the name. */ if (strchr(name, '/') || strchr(name, ':'))