diff options
author | Robin Murphy <robin.murphy@arm.com> | 2021-12-03 14:44:54 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-12-14 15:09:27 +0300 |
commit | da5f7d2c8019c9dd053e2d94fdc1b3e7c03c35a5 (patch) | |
tree | 88e79a56287dcd1a9860a2d6ab4ea36e52fcf576 /scripts/gdb/linux/utils.py | |
parent | 5f167eab83f153c2c6f80cfe419e269d5f481b09 (diff) | |
download | linux-da5f7d2c8019c9dd053e2d94fdc1b3e7c03c35a5.tar.xz |
perf/arm-cmn: Streamline node iteration
Refactor the places where we scan through the set of nodes to switch
from explicit array indexing to pointer-based iteration. This leads to
slightly simpler object code, but also makes the source less dense and
more pleasant for further development. It also unearths an almost-bug
in arm_cmn_event_init() where we've been depending on the "array index"
of NULL relative to cmn->dns being a sufficiently large number, yuck.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/ee0c9eda9a643f46001ac43aadf3f0b1fd5660dd.1638530442.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions