mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-12 03:29:06 +08:00
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: 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
This commit is contained in:
committed by
Andrii Nakryiko
parent
d81d872279
commit
b6e179e67c
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user