Tiezhu Yang
29c66ad1c3
libbpf: Use struct user_pt_regs to define __PT_REGS_CAST() for LoongArch
...
LoongArch provides struct user_pt_regs instead of struct pt_regs
to userspace, use struct user_pt_regs to define __PT_REGS_CAST()
to fix the following build error:
CLNG-BPF [test_maps] loop1.bpf.o
progs/loop1.c:22:9: error: incomplete definition of type 'struct pt_regs'
m = PT_REGS_RC(ctx);
^~~~~~~~~~~~~~~
tools/testing/selftests/bpf/tools/include/bpf/bpf_tracing.h:493:41: note: expanded from macro 'PT_REGS_RC'
#define PT_REGS_RC(x) (__PT_REGS_CAST(x)->__PT_RC_REG)
~~~~~~~~~~~~~~~~~^
tools/testing/selftests/bpf/tools/include/bpf/bpf_helper_defs.h:20:8: note: forward declaration of 'struct pt_regs'
struct pt_regs;
^
1 error generated.
make: *** [Makefile:572: tools/testing/selftests/bpf/loop1.bpf.o] Error 1
make: Leaving directory 'tools/testing/selftests/bpf'
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/1677235015-21717-2-git-send-email-yangtiezhu@loongson.cn
2023-02-27 09:49:19 -08:00
..
2022-11-18 13:55:09 -08:00
2023-02-22 13:01:34 -08:00
2023-02-16 15:32:45 -08:00
2023-01-27 14:05:46 +01:00
2023-02-17 22:12:04 +01:00
2023-02-27 09:49:19 -08:00
2023-01-31 20:36:03 -08:00
2023-02-21 17:07:39 -08:00
2023-01-18 10:52:06 -03:00
2023-02-21 17:32:50 -08:00
2023-02-22 13:04:55 -08:00
2023-02-24 17:34:23 -08:00
2022-12-09 18:06:24 -05:00
2022-12-21 19:03:42 -08:00
2023-01-27 06:18:41 -05:00
2022-12-13 19:29:45 -08:00