blob: c2d080b2f10aa990212eff2a83c887cec4e886cd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
From e30cb86791cc4a67c38aa3d0385d5e58e2026034 Mon Sep 17 00:00:00 2001
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
Date: Sun, 24 May 2020 19:31:18 -0600
Subject: [PATCH 22/34] bpf: define trace_bpf_jit_free stub for when BPF isn't
compiled in
Configuration options that exclude BPF mean we need to have a stub
version of this function.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
---
include/linux/filter.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/filter.h b/include/linux/filter.h
index 9f8aa2fe7f2..de43bcf9c6f 100644
--- a/include/linux/filter.h
+++ b/include/linux/filter.h
@@ -779,6 +779,10 @@ static inline bool bpf_jit_kallsyms_enabled(void)
return false;
}
+static inline void trace_bpf_jit_free(struct bpf_prog *fp)
+{
+}
+
static inline const char *
__bpf_address_lookup(unsigned long addr, unsigned long *size,
unsigned long *off, char *sym)
--
2.29.1
|