projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a3b0f9
)
Mark additional helper function as inline
author
Brenden Blanco
<bblanco@gmail.com>
Thu, 9 Feb 2017 18:52:40 +0000
(10:52 -0800)
committer
Brenden Blanco
<bblanco@gmail.com>
Thu, 9 Feb 2017 18:59:50 +0000
(10:59 -0800)
Signed-off-by: Brenden Blanco <bblanco@gmail.com>
src/cc/export/helpers.h
patch
|
blob
|
history
diff --git
a/src/cc/export/helpers.h
b/src/cc/export/helpers.h
index
ae8f523
..
1fa20a5
100644
(file)
--- a/
src/cc/export/helpers.h
+++ b/
src/cc/export/helpers.h
@@
-147,7
+147,7
@@
static u32 (*bpf_get_prandom_u32)(void) =
static int (*bpf_trace_printk_)(const char *fmt, u64 fmt_size, ...) =
(void *) BPF_FUNC_trace_printk;
int bpf_trace_printk(const char *fmt, ...) asm("llvm.bpf.extra");
-static void bpf_tail_call_(u64 map_fd, void *ctx, int index) {
+static
inline
void bpf_tail_call_(u64 map_fd, void *ctx, int index) {
((void (*)(void *, u64, int))BPF_FUNC_tail_call)(ctx, map_fd, index);
}
static int (*bpf_clone_redirect)(void *ctx, int ifindex, u32 flags) =