Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/bpf2go: clarify -target usage with bpf_tracing.h #773

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

lmb
Copy link
Collaborator

@lmb lmb commented Aug 30, 2022

Using tracing macros like PT_REGS_PARM1 causes an error when compiling for
generic targets bpf, bpfel and bpfeb:

offcpu.c:33:41: error: The eBPF is using target specific macros, please provide -target

This is confusing if the user already provides "-target bpfel" or similar.
Clarify that specific arch has to be selected for tracing to work.

See #772

Using tracing macros like PT_REGS_PARM1 causes an error when compiling for
generic targets bpf, bpfel and bpfeb:

    offcpu.c:33:41: error: The eBPF is using target specific macros, please provide -target

This is confusing if the user already provides "-target bpfel" or similar.
Clarify that specific arch has to be selected for tracing to work.
@lmb lmb merged commit 27ffd5d into cilium:master Aug 30, 2022
@lmb lmb deleted the bpf2go-target-error-message branch August 30, 2022 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant