diff options
author | Marco Elver <elver@google.com> | 2020-07-31 11:17:19 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-08-25 01:10:21 +0300 |
commit | 69b2c81bc894606670204f0ae08f406dbcce836d (patch) | |
tree | 5fc086ec7445d1b934c95195f5ca9e1bee64b264 /scripts/bpf_helpers_doc.py | |
parent | 3570a1bcf45e9a7ddf9ba0e8d6d57cc67675cfef (diff) | |
download | linux-69b2c81bc894606670204f0ae08f406dbcce836d.tar.xz |
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 <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions