kernel_samsung_a53x/tools/testing/selftests/bpf/prog_tests
Tony Ambardar adf067b8b0 selftests/bpf: Fix compiling kfree_skb.c with musl-libc
[ Upstream commit bae9a5ce7d3a9b3a9e07b31ab9e9c58450e3e9fd ]

The GNU version of 'struct tcphdr' with member 'doff' is not exposed by
musl headers unless _GNU_SOURCE is defined. Add this definition to fix
errors seen compiling for mips64el/musl-libc:

  In file included from kfree_skb.c:2:
  kfree_skb.c: In function 'on_sample':
  kfree_skb.c:45:30: error: 'struct tcphdr' has no member named 'doff'
     45 |         if (CHECK(pkt_v6->tcp.doff != 5, "check_tcp",
        |                              ^

Fixes: 580d656d80cf ("selftests/bpf: Add kfree_skb raw_tp test")
Signed-off-by: Tony Ambardar <tony.ambardar@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/e2d8cedc790959c10d6822a51f01a7a3616bea1b.1721713597.git.tony.ambardar@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:22 +01:00
..
align.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
attach_probe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
autoload.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bpf_iter.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bpf_obj_id.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bpf_tcp_ca.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bpf_verif_scale.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btf.c selftests/bpf: satisfy compiler by having explicit return in btf test 2024-11-18 12:13:11 +01:00
btf_dump.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btf_endian.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btf_map_in_map.c selftests/bpf: Fix flaky test btf_map_in_map/lookup_update 2024-11-19 14:19:06 +01:00
btf_skc_cls_ingress.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btf_write.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cg_storage_multi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cgroup_attach_autodetach.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cgroup_attach_multi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cgroup_attach_override.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cgroup_link.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cgroup_skb_sk_lookup.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cls_redirect.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
connect_force_port.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core_autosize.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core_extern.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core_reloc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core_retro.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpu_mask.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
d_path.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enable_stats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
endian.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fentry_fexit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fentry_test.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fexit_bpf2bpf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fexit_stress.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fexit_test.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
flow_dissector.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
flow_dissector_load_bytes.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
flow_dissector_reattach.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
get_stack_raw_tp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
get_stackid_cannot_attach.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global_data.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
global_data_init.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hashmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kfree_skb.c selftests/bpf: Fix compiling kfree_skb.c with musl-libc 2024-11-23 23:21:22 +01:00
ksyms.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ksyms_btf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
l4lb_all.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
link_pinning.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
load_bytes_relative.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
map_init.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
map_lock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
map_ptr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
metadata.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
modify_return.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ns_current_pid_tgid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
obj_name.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pe_preserve_elems.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf_branches.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf_buffer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf_event_stackmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinning.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pkt_access.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pkt_md_access.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
probe_read_user_str.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
probe_user.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
prog_run_xattr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
queue_stack_map.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
raw_tp_test_run.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
raw_tp_writable_reject_nbd_invalid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
raw_tp_writable_test_run.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rdonly_maps.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reference_tracking.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
resolve_btfids.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ringbuf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ringbuf_multi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
section_names.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
select_reuseport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
send_signal.c selftests/bpf: Fix send_signal test with nested CONFIG_PARAVIRT 2024-11-23 23:20:23 +01:00
send_signal_sched_switch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
signal_pending.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sk_assign.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sk_lookup.c selftests/bpf: Close fd in error path in drop_on_reuseport 2024-11-23 23:20:08 +01:00
skb_ctx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
skb_helpers.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
skeleton.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
snprintf_btf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sock_fields.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sockmap_basic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sockmap_ktls.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sockmap_listen.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sockopt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sockopt_inherit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sockopt_multi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sockopt_sk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spinlock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stacktrace_build_id.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stacktrace_build_id_nmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stacktrace_map.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stacktrace_map_raw_tp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
subprogs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tailcalls.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
task_fd_query_rawtp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
task_fd_query_tp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp_estats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp_hdr_options.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp_rtt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_bpffs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_global_funcs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_local_storage.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_lsm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_overhead.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_profiler.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tp_attach_query.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace_ext.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace_printk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trampoline_count.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udp_limit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
varlen.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmlinux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdp_adjust_tail.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdp_attach.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdp_bpf2bpf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdp_cpumap_attach.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdp_devmap_attach.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdp_info.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdp_link.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdp_noinline.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdp_perf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00