Skip to content
Commit 69b2c81b authored by Marco Elver's avatar Marco Elver Committed by Paul E. McKenney
Browse files

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: default avatarMarco Elver <elver@google.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 3570a1bc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment