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

util: Use bpf_trace_vprintk() directly in sample detection program #318

Merged
merged 1 commit into from
May 10, 2023

Conversation

tohojo
Copy link
Member

@tohojo tohojo commented Apr 24, 2023

The dummy program we use to feature detect for xdp-sample doesn't compile
on old versions of libbpf that don't have the macro feature that selects
bpf_trace_vprintk() if the number of args exceeds what bpf_trace_printk()
supports. To get around this, just use the bpf_trace_vprintk() helper
directly, which should hopefully work on old libbpf versions as well.

Fixes #315

The dummy program we use to feature detect for xdp-sample doesn't compile
on old versions of libbpf that don't have the macro feature that selects
bpf_trace_vprintk() if the number of args exceeds what bpf_trace_printk()
supports. To get around this, just use the bpf_trace_vprintk() helper
directly, which should hopefully work on old libbpf versions as well.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant