summaryrefslogtreecommitdiff
path: root/samples/bpf/bpf_load.h
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@fb.com>2016-03-08 08:57:19 +0300
committerDavid S. Miller <davem@davemloft.net>2016-03-08 23:28:32 +0300
commit3622e7e4935105991dc648bca650c858576aecda (patch)
treed912d23d7c13a51fce638bd855fb37ef236cc26b /samples/bpf/bpf_load.h
parent618ec9a7b1fda46f8dd4a630ded983aeb51218f3 (diff)
downloadlinux-3622e7e4935105991dc648bca650c858576aecda.tar.xz
samples/bpf: move ksym_search() into library
move ksym search from offwaketime into library to be reused in other tests Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/bpf_load.h')
-rw-r--r--samples/bpf/bpf_load.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/samples/bpf/bpf_load.h b/samples/bpf/bpf_load.h
index cbd7c2b532b9..dfa57fe65c8e 100644
--- a/samples/bpf/bpf_load.h
+++ b/samples/bpf/bpf_load.h
@@ -23,5 +23,11 @@ extern int event_fd[MAX_PROGS];
int load_bpf_file(char *path);
void read_trace_pipe(void);
+struct ksym {
+ long addr;
+ char *name;
+};
+int load_kallsyms(void);
+struct ksym *ksym_search(long key);
#endif