selftests/bpf: trace_helpers.c: do not use poisoned type
authorShung-Hsi Yu <shung-hsi.yu@suse.com>
Fri, 2 Feb 2024 09:55:58 +0000 (17:55 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Fri, 2 Feb 2024 22:14:03 +0000 (14:14 -0800)
commita68b50f47bec8bd6a33b07b7e1562db2553981a7
tree319c590302cf34ab5eae788a6b59f698fe848f09
parent6fb3f72702fba97323a89e53f484de58bc59d13c
selftests/bpf: trace_helpers.c: do not use poisoned type

After commit c698eaebdf47 ("selftests/bpf: trace_helpers.c: Optimize
kallsyms cache") trace_helpers.c now includes libbpf_internal.h, and
thus can no longer use the u32 type (among others) since they are poison
in libbpf_internal.h. Replace u32 with __u32 to fix the following error
when building trace_helpers.c on powerpc:

  error: attempt to use poisoned "u32"

Fixes: c698eaebdf47 ("selftests/bpf: trace_helpers.c: Optimize kallsyms cache")
Signed-off-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20240202095559.12900-1-shung-hsi.yu@suse.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/trace_helpers.c