summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-trace.c
diff options
context:
space:
mode:
authorAndi Kleen2017-10-20 22:27:54 +0200
committerArnaldo Carvalho de Melo2017-11-16 18:49:51 +0100
commitd0565132605f454179699a1b8a3276fc0f8cc87b (patch)
tree589c4a7c13975a40b66d91604dd39cf796fa68d9 /tools/perf/builtin-trace.c
parentperf record: Fix -c/-F options for cpu event aliases (diff)
downloadkernel-qcow2-linux-d0565132605f454179699a1b8a3276fc0f8cc87b.tar.gz
kernel-qcow2-linux-d0565132605f454179699a1b8a3276fc0f8cc87b.tar.xz
kernel-qcow2-linux-d0565132605f454179699a1b8a3276fc0f8cc87b.zip
perf evsel: Enable type checking for perf_evsel_config_term types
Use a typed enum for the perf_evsel_config_term type enum. This allows gcc to do much stronger type checks, and also check for missing case statements. I removed the unused _MAX member from the number. It found one missing case. I'm not sure it's a real problem, so I just turned it into a BUG_ON for now. Signed-off-by: Andi Kleen <ak@linux.intel.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Link: http://lkml.kernel.org/r/20171020202755.21410-1-andi@firstfloor.org [ Renamed the enum name to term_type as per jolsa's request ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-trace.c')
0 files changed, 0 insertions, 0 deletions