perf lock contention: Factor out lock_type_table
authorNamhyung Kim <namhyung@kernel.org>
Mon, 19 Dec 2022 20:17:27 +0000 (12:17 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Dec 2022 18:18:29 +0000 (15:18 -0300)
commit59119c09ae748c6398e44925346ed9e3fa2b4679
tree9654d0fe50921c24cead06338161c5179ee58299
parent8b269b75551227796c1ddac2dbdb2ba504158c61
perf lock contention: Factor out lock_type_table

Move it out of get_type_str() so that we can reuse the table for others
later.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Blake Jones <blakejones@google.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Song Liu <song@kernel.org>
Cc: bpf@vger.kernel.org
Link: https://lore.kernel.org/r/20221219201732.460111-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-lock.c