• Kirill Smelkov's avatar
    perf top: Teach it to autolocate vmlinux · 6cff0e8d
    Kirill Smelkov authored
    By relying on logic in dso__load_kernel_sym(), we can
    automatically load vmlinux.
    
    The only thing which needs to be adjusted, is how --sym-annotate
    option is handled - now we can't rely on vmlinux been loaded
    until full successful pass of dso__load_vmlinux(), but that's
    not the case if we'll do sym_filter_entry setup in
    symbol_filter().
    
    So move this step right after event__process_sample() where we
    know the whole dso__load_kernel_sym() pass is done.
    
    By the way, though conceptually similar `perf top` still can't
    annotate userspace - see next patches with fixes.
    Signed-off-by: default avatarKirill Smelkov <kirr@landau.phys.spbu.ru>
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Mike Galbraith <efault@gmx.de>
    LKML-Reference: <1265223128-11786-9-git-send-email-acme@infradead.org>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    6cff0e8d
builtin-top.c 31 KB