On Wed, Feb 26, 2020 at 5:05 AM Jiri Olsa <jolsa@xxxxxxxxxx> wrote: > > Adding 'struct bpf_ksym' object that will carry the > kallsym information for bpf symbol. Adding the start > and end address to begin with. It will be used by > bpf_prog, bpf_trampoline, bpf_dispatcher. > > The symbol_start/symbol_end values were originally used > to sort bpf_prog objects. For the address displayed in > /proc/kallsyms we are using prog->bpf_func. > > I'm using the bpf_func for program symbol start instead > of the symbol_start, because it makes no difference for > sorting bpf_prog objects and we can use it directly as > an address for display it in /proc/kallsyms. > > Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx>