OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf38497
)
bpf: Change BPF_MAX_TRAMP_LINKS to enum
author
Ilya Leoshkevich
<iii@linux.ibm.com>
Sat, 28 Jan 2023 00:06:21 +0000
(
01:06
+0100)
committer
Alexei Starovoitov
<ast@kernel.org>
Sat, 28 Jan 2023 20:27:12 +0000
(12:27 -0800)
This way it's possible to query its value from testcases using BTF.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link:
https://lore.kernel.org/r/20230128000650.1516334-3-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf.h
patch
|
blob
|
history
diff --git
a/include/linux/bpf.h
b/include/linux/bpf.h
index
f7f24de
..
34551e4
100644
(file)
--- 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];