perf evsel: Add verbose 3 print of evsel name when opening
authorIan Rogers <irogers@google.com>
Thu, 1 Jun 2023 08:29:52 +0000 (01:29 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 1 Jun 2023 17:26:44 +0000 (14:26 -0300)
commit1f4326bf83ce02ae8f7d50240c367fbb7bf28343
treeea565103603b725009378f5d0e6ab2a0f94c1055
parente23421426e1364299e9ee5091022058ba10fee63
perf evsel: Add verbose 3 print of evsel name when opening

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>
Tested-by: Kan Liang <kan.liang@linux.intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ravi Bangoria <ravi.bangoria@amd.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Link: https://lore.kernel.org/r/20230601082954.754318-3-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c