Open tw4452852 opened 12 months ago
Hello! I found this repository to be a really useful resource. Did you find a workaround for the Zig bitfield translation issue? I was able to compile your trace tool on Linux 5.18
zig build trace -Dkprobe=vfs_read
To get it to compile, I went into the generated vmlinux.zig
to find&replace 752 instances of opaque {}
with extern struct {}
. I was curious if you had a better solution.
@ekzhang Not yet, I'm afraid.
For example:
related to
zig translate-c
doesn't support bitfields, see https://github.com/ziglang/zig/issues/1499