Commit 819c23af authored by Andrii Nakryiko's avatar Andrii Nakryiko Committed by Alexei Starovoitov

libbpf: Add __noinline macro to bpf_helpers.h

__noinline is pretty frequently used, especially with BPF subprograms, so add
them along the __always_inline, for user convenience and completeness.
Signed-off-by: default avatarAndrii Nakryiko <andriin@fb.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200820231250.1293069-4-andriin@fb.com
parent 88a82120
...@@ -32,6 +32,9 @@ ...@@ -32,6 +32,9 @@
#ifndef __always_inline #ifndef __always_inline
#define __always_inline __attribute__((always_inline)) #define __always_inline __attribute__((always_inline))
#endif #endif
#ifndef __noinline
#define __noinline __attribute__((noinline))
#endif
#ifndef __weak #ifndef __weak
#define __weak __attribute__((weak)) #define __weak __attribute__((weak))
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment