Message ID | 20230128000650.1516334-3-iii@linux.ibm.com (mailing list archive) |
---|---|
State | Superseded |
Commit | 390a07a921b3b1fe544cb2921de7abb94ebb7f26 |
Delegated to: | BPF |
Headers | show |
Series | Support bpf trampoline for s390x | expand |
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 14a0264fac57..6415b54fea4e 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -939,7 +939,9 @@ struct btf_func_model { /* Each call __bpf_prog_enter + call bpf_func + call __bpf_prog_exit is ~50 * bytes on x86. */ -#define BPF_MAX_TRAMP_LINKS 38 +enum { + BPF_MAX_TRAMP_LINKS = 38, +}; struct bpf_tramp_links { struct bpf_tramp_link *links[BPF_MAX_TRAMP_LINKS];
This way it's possible to query its value from testcases using BTF. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> --- include/linux/bpf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)