Re: [PATCH] scripts/gdb: add a Radix Tree Parser

From: Florian Fainelli
Date: Wed Apr 05 2023 - 17:58:43 EST


On 4/4/23 14:40, Florian Fainelli wrote:
[snip]
+ shift = node['shift'] + constants.LX_RADIX_TREE_MAP_SHIFT
+
+ while True:
+ offset = (index >> node['shift']) & constants.LX_RADIX_TREE_MAP_MASK
+ slot = node['slots'][offset]

We need to check for slot == 0 here, unless there are other comments, I will spin a v2 with that change.
--
Florian