elf_helper: skip SYS_INIT() "devices"
SYS_INIT instantiates a device struct, but this is really just used to run some functions at boot, it does not correspond to a device driver belonging to a subsystem. Don't put them in the kernel object table. These are easy to filter since they are all named with the _SYS_NAME macro. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
cf268c39a2
commit
e48bc56b11
1 changed files with 4 additions and 0 deletions
|
@ -415,6 +415,10 @@ class ElfHelper:
|
|||
if not name:
|
||||
continue
|
||||
|
||||
if name.startswith("__device_sys_init"):
|
||||
# Boot-time initialization function; not an actual device
|
||||
continue
|
||||
|
||||
type_offset = die_get_type_offset(die)
|
||||
|
||||
# Is this a kernel object, or a structure containing kernel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue