aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorPierre-Louis Bossart <[email protected]>2019-02-05 10:22:28 -0600
committerMark Brown <[email protected]>2019-02-06 17:32:02 +0000
commitf13d4b5f85e1c436c9bf21205509266b5a81a320 (patch)
tree5217e1153720fbddc4939289e599ba8a8ca5ee16 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parente29fe437ea5d926ea23d806b2468bf60ee8dc08a (diff)
ASoC: dapm: harden use of lookup tables
To detect potential errors, let's add: a) build-time warnings when the table size isn't aligned with the enum list b) run-time warnings when the values are not initialized. This requires an increase by one of all values to avoid the default 0. Suggested-by: Takashi Iwai <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions