diff options
author | Marco Elver <[email protected]> | 2020-07-31 10:17:19 +0200 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2020-08-24 15:10:21 -0700 |
commit | 69b2c81bc894606670204f0ae08f406dbcce836d (patch) | |
tree | 5fc086ec7445d1b934c95195f5ca9e1bee64b264 /tools/perf/util/trace-event-scripting.c | |
parent | 3570a1bcf45e9a7ddf9ba0e8d6d57cc67675cfef (diff) |
kcsan: Simplify debugfs counter to name mapping
Simplify counter ID to name mapping by using an array with designated
inits. This way, we can turn a run-time BUG() into a compile-time static
assertion failure if a counter name is missing.
No functional change intended.
Signed-off-by: Marco Elver <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions