projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88a8212
)
libbpf: Add __noinline macro to bpf_helpers.h
author
Andrii Nakryiko
<andriin@fb.com>
Thu, 20 Aug 2020 23:12:37 +0000
(16:12 -0700)
committer
Alexei Starovoitov
<ast@kernel.org>
Fri, 21 Aug 2020 22:40:22 +0000
(15:40 -0700)
__noinline is pretty frequently used, especially with BPF subprograms, so add
them along the __always_inline, for user convenience and completeness.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link:
https://lore.kernel.org/bpf/20200820231250.1293069-4-andriin@fb.com
tools/lib/bpf/bpf_helpers.h
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/bpf_helpers.h
b/tools/lib/bpf/bpf_helpers.h
index
e9a4ecd
..
1106777
100644
(file)
--- a/
tools/lib/bpf/bpf_helpers.h
+++ b/
tools/lib/bpf/bpf_helpers.h
@@
-32,6
+32,9
@@
#ifndef __always_inline
#define __always_inline __attribute__((always_inline))
#endif
+#ifndef __noinline
+#define __noinline __attribute__((noinline))
+#endif
#ifndef __weak
#define __weak __attribute__((weak))
#endif