diff options
author | Oliver Upton <oliver.upton@linux.dev> | 2022-11-07 21:56:31 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-11-10 14:43:46 +0000 |
commit | dfc7a7769ab7f2a2f629c673717ef1fa7b63aa42 (patch) | |
tree | d8d6a9575d8555ca4aae4233d7942f567fd4a14c /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 30a0b95b1335e12efef89dd78518ed3e4a71a763 (diff) | |
download | linux-dfc7a7769ab7f2a2f629c673717ef1fa7b63aa42.tar.gz linux-dfc7a7769ab7f2a2f629c673717ef1fa7b63aa42.tar.bz2 linux-dfc7a7769ab7f2a2f629c673717ef1fa7b63aa42.zip |
KVM: arm64: Combine visitor arguments into a context structure
Passing new arguments by value to the visitor callbacks is extremely
inflexible for stuffing new parameters used by only some of the
visitors. Use a context structure instead and pass the pointer through
to the visitor callback.
While at it, redefine the 'flags' parameter to the visitor to contain
the bit indicating the phase of the walk. Pass the entire set of flags
through the context structure such that the walker can communicate
additional state to the visitor callback.
No functional change intended.
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Reviewed-by: Ben Gardon <bgardon@google.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221107215644.1895162-2-oliver.upton@linux.dev
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions