diff options
author | Alexei Starovoitov <ast@fb.com> | 2016-03-07 21:57:19 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-08 15:28:32 -0500 |
commit | 3622e7e4935105991dc648bca650c858576aecda (patch) | |
tree | d912d23d7c13a51fce638bd855fb37ef236cc26b /samples/bpf/bpf_load.h | |
parent | 618ec9a7b1fda46f8dd4a630ded983aeb51218f3 (diff) | |
download | linux-3622e7e4935105991dc648bca650c858576aecda.tar.gz linux-3622e7e4935105991dc648bca650c858576aecda.tar.bz2 linux-3622e7e4935105991dc648bca650c858576aecda.zip |
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.h | 6 |
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 |