aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorBenjamin Berg <[email protected]>2023-12-20 16:19:47 +0100
committerJohannes Berg <[email protected]>2024-01-03 15:35:04 +0100
commit292010ee509443a1383bb079a4fa80515aa89a7f (patch)
tree4185e49ceb3c01c4df61d6688ada2ed66ac427d5 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parenta5bb4e1a3748e650e664e9d44feb30daa9851945 (diff)
kunit: add parameter generation macro using description from array
The existing KUNIT_ARRAY_PARAM macro requires a separate function to get the description. However, in a lot of cases the description can just be copied directly from the array. Add a second macro that avoids having to write a static function just for a single strscpy. Signed-off-by: Benjamin Berg <[email protected]> Reviewed-by: David Gow <[email protected]> Link: https://msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions