bpf: Add bpf_ksym_find function
authorJiri Olsa <jolsa@kernel.org>
Thu, 12 Mar 2020 19:56:02 +0000 (20:56 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Mar 2020 19:49:51 +0000 (12:49 -0700)
commiteda0c92902b57bbde674c27882554b074e9180a6
tree5a8d436dc0a859bb4faf33360b5ed49ad6d01cc0
parentca4424c920f574b7246ff1b6d83cfdfd709e42c8
bpf: Add bpf_ksym_find function

Adding bpf_ksym_find function that is used bpf bpf address
lookup functions:
  __bpf_address_lookup
  is_bpf_text_address

while keeping bpf_prog_kallsyms_find to be used only for lookup
of bpf_prog objects (will happen in following changes).

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200312195610.346362-8-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/core.c