summaryrefslogtreecommitdiff
path: root/samples/bpf/offwaketime_user.c
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2018-04-29 08:28:13 +0300
committerAlexei Starovoitov <ast@kernel.org>2018-04-29 18:45:54 +0300
commit28dbf861deacb0321604bf1c5e1ccc34dd215669 (patch)
treeae98045b9d24ea60e1034b08200d74e762dde8bb /samples/bpf/offwaketime_user.c
parentde2ff05f48afcde816ff4edb217417f62f624ab5 (diff)
downloadlinux-28dbf861deacb0321604bf1c5e1ccc34dd215669.tar.xz
samples/bpf: move common-purpose trace functions to selftests
There is no functionality change in this patch. The common-purpose trace functions, including perf_event polling and ksym lookup, are moved from trace_output_user.c and bpf_load.c to selftests/bpf/trace_helpers.c so that these function can be reused later in selftests. Acked-by: Alexei Starovoitov <ast@fb.com> Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/offwaketime_user.c')
-rw-r--r--samples/bpf/offwaketime_user.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/bpf/offwaketime_user.c b/samples/bpf/offwaketime_user.c
index 512f87a5fd20..f06063af9fcb 100644
--- a/samples/bpf/offwaketime_user.c
+++ b/samples/bpf/offwaketime_user.c
@@ -17,6 +17,7 @@
#include <sys/resource.h>
#include "libbpf.h"
#include "bpf_load.h"
+#include "trace_helpers.h"
#define PRINT_RAW_ADDR 0