mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
bpf: btf: Add BTF_FMODEL_SIGNED_ARG flag
s390x eBPF JIT needs to know whether a function return value is signed and which function arguments are signed, in order to generate code compliant with the s390x ABI. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Link: https://lore.kernel.org/r/20230128000650.1516334-26-iii@linux.ibm.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
0f0e5f5bd5
commit
49f67f393f
3 changed files with 29 additions and 6 deletions
|
@ -899,8 +899,12 @@ enum bpf_cgroup_storage_type {
|
|||
/* The argument is a structure. */
|
||||
#define BTF_FMODEL_STRUCT_ARG BIT(0)
|
||||
|
||||
/* The argument is signed. */
|
||||
#define BTF_FMODEL_SIGNED_ARG BIT(1)
|
||||
|
||||
struct btf_func_model {
|
||||
u8 ret_size;
|
||||
u8 ret_flags;
|
||||
u8 nr_args;
|
||||
u8 arg_size[MAX_BPF_FUNC_ARGS];
|
||||
u8 arg_flags[MAX_BPF_FUNC_ARGS];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue