Open gcmoreira opened 1 month ago
If you check other typedef defined in this file, you will find that none of them can be accessed in the ISF (fd_set
for example).
It seems that dwarf2json simply skips them :
diff --git a/main.go b/main.go
index 06e3f65..49e2fee 100644
--- a/main.go
+++ b/main.go
@@ -427,6 +427,8 @@ func (doc *vtypeJson) addDwarf(data *dwarf.Data, endian string, extract Extract)
if err != nil {
return fmt.Errorf("could not parse struct: %s", err)
}
+ } else {
+ fmt.Fprintf(os.Stdout, "tyoedef error : %s\n", typedefType.Name)
}
}
You'll find ktime_t
and others with go build && ./dwarf2json linux --elf ../vmlinux-6.8.0-41-generic | grep 'ktime_t'
.
DWARF2JSON version:
https://elixir.bootlin.com/linux/v6.8/source/include/linux/types.h#L124
Pahole is able to find the type in the vmlinux dwarf info.
However, it is not present in the generated ISF:
It doesn't seem related to the recent Rust bindings issue: