diff options
| author | Antonio Quartulli <[email protected]> | 2025-02-21 20:40:34 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-03-17 19:16:59 +0000 |
| commit | e0349c46cb4fbbb507fa34476bd70f9c82bad359 (patch) | |
| tree | 2bbf7ab1475db67462fbf0ad567376675dfec265 /lib/parser.c | |
| parent | RDMA/bnxt_re: convert timeouts to secs_to_jiffies() (diff) | |
| download | kernel-e0349c46cb4fbbb507fa34476bd70f9c82bad359.tar.gz kernel-e0349c46cb4fbbb507fa34476bd70f9c82bad359.zip | |
scripts/gdb/linux/symbols.py: address changes to module_sect_attrs
When loading symbols from kernel modules we used to iterate
from 0 to module_sect_attrs::nsections, in order to
retrieve their name and address.
However module_sect_attrs::nsections has been removed from
the struct by a previous commit.
Re-arrange the iteration by accessing all items in
module_sect_attrs::grp::bin_attrs[] until NULL is found
(it's a NULL terminated array).
At the same time the symbol address cannot be extracted
from module_sect_attrs::attrs[]::address anymore because
it has also been deleted. Fetch it from
module_sect_attrs::grp::bin_attrs[]::private as described
in 4b2c11e4aaf7.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: d8959b947a8d ("module: sysfs: Drop member 'module_sect_attrs::nsections'")
Fixes: 4b2c11e4aaf7 ("module: sysfs: Drop member 'module_sect_attr::address'")
Signed-off-by: Antonio Quartulli <[email protected]>
Reviewed-by: Jan Kiszka <[email protected]>
Cc: Thomas Weißschuh <[email protected]>
Cc: Kieran Bingham <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions
