Re: [PATCH bpf 3/3] bpf: show main program address in bpf_prog_info->jited_ksyms

2018-11-02 Thread Daniel Borkmann
On 11/01/2018 08:00 AM, Song Liu wrote: > Currently, when there is not subprog (prog->aux->func_cnt == 0), > bpf_prog_info does not return any jited_ksyms. This patch adds > main program address (prog->bpf_func) to jited_ksyms. > > Signed-off-by: Song Liu > --- > kernel/bpf/syscall.c | 16

[PATCH bpf 3/3] bpf: show main program address in bpf_prog_info->jited_ksyms

2018-11-01 Thread Song Liu
Currently, when there is not subprog (prog->aux->func_cnt == 0), bpf_prog_info does not return any jited_ksyms. This patch adds main program address (prog->bpf_func) to jited_ksyms. Signed-off-by: Song Liu --- kernel/bpf/syscall.c | 16 1 file changed, 12 insertions(+), 4