On Wed, Oct 17, 2018 at 04:30:22PM -0700, Yonghong Song wrote:
> 
> This patch added func info support to the kernel so we can
> get better ksym's for bpf function calls. Basically,
> pairs of bpf function calls and their corresponding types
> are passed to the kernel. Extracting function names from
> the types, the kernel is able to construct a ksym for
> each function call with embedded function name.
...
> Below is a demonstration from Patch #13.
>   $ bpftool prog dump jited id 1
>   int _dummy_tracepoint(struct dummy_tracepoint_args * ):
>   bpf_prog_b07ccb89267cf242__dummy_tracepoint:
>          0:   push   %rbp
>          1:   mov    %rsp,%rbp
>         ......
>         3c:   add    $0x28,%rbp
>         40:   leaveq
>         41:   retq
>   
>   int test_long_fname_1(struct dummy_tracepoint_args * ):
>   bpf_prog_2dcecc18072623fc_test_long_fname_1:
>          0:   push   %rbp
>          1:   mov    %rsp,%rbp

Considering we only had 16-byte names for main prog and
no names at all for subprogs, this is huge improvement
in BPF introspection.
Cannot wait for the followup patches with line info support.

For the set:
Acked-by: Alexei Starovoitov <a...@kernel.org>

Reply via email to