Messages in this thread Patch in this message | | | Date | Thu, 1 Jun 2023 01:29:52 -0700 | Subject | [PATCH v2 2/4] perf evsel: Add verbose 3 print of evsel name when opening | From | Ian Rogers <> |
| |
It is often useful to know not just the attribute and perf_event_open details when opening an evsel, but also the evsel's name. Add this debug output for verbose 3 so that it won't interfere with the current verbose 2 output.
Signed-off-by: Ian Rogers <irogers@google.com> --- tools/perf/util/evsel.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 46da3f0bb47e..779bc2b574f4 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -2038,6 +2038,7 @@ static int evsel__open_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, fallback_missing_features: evsel__disable_missing_features(evsel); + pr_debug3("Opening: %s\n", evsel__name(evsel)); display_attr(&evsel->core.attr); for (idx = start_cpu_map_idx; idx < end_cpu_map_idx; idx++) { -- 2.41.0.rc0.172.g3f132b7071-goog
| |