Skip to content

error calling TypeDeclaration: Struct:"blkgq_entry": field 0: type *btf.Pointer: not supported #750

Answered by lmb
alahaiyo asked this question in Q&A
Discussion options

You must be logged in to vote

Can you double check that old versions worked? I don't think we ever supported generating pointer types.

What do you want to do with blkgq_entry->disk in Go? There is no way to share pointers between Go and eBPF, which is why you currently can't generate a type for such structs.

P.S.: Please pass -target amd64 to bpf2go instead of -D__TARGET_ARCH_x86.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alahaiyo
Comment options

Answer selected by alahaiyo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants