diff options
author | Jakub Kicinski <[email protected]> | 2023-01-04 20:05:22 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-01-05 22:13:39 -0800 |
commit | 3015f8224961dbc701c7e0b9e74823289efbec0a (patch) | |
tree | bb33f0b81d4cfb8a500af08345b01fc8e72734f0 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 2c7bc10d0f7b0f66d9042ed88bb3ecd588352a00 (diff) |
devlink: use an explicit structure for dump context
Create a dump context structure instead of using cb->args
as an unsigned long array. This is a pure conversion which
is intended to be as much of a noop as possible.
Subsequent changes will use this to simplify the code.
The two non-trivial parts are:
- devlink_nl_cmd_health_reporter_dump_get_dumpit() checks args[0]
to see if devlink_fmsg_dumpit() has already been called (whether
this is the first msg), but doesn't use the exact value, so we
can drop the local variable there already
- devlink_nl_cmd_region_read_dumpit() uses args[0] for address
but we'll use args[1] now, shouldn't matter
Reviewed-by: Jacob Keller <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions