• Jin Yao's avatar
    perf report: Enable finding kernel inline functions · 8b8ef2d7
    Jin Yao authored
    Currently perf supports a mode to query inline stack. It works well for
    finding user space inline functions but it doesn't work for kernel ones,
    due to some unnecessary check.
    
    This patch removes these unnecessary checks. Now kernel inline functions
    can be reported.
    
    For example:
    
      perf report --inline -g func --stdio
    
      |--46.19%--do_huge_pmd_anonymous_page
      |          do_huge_pmd_anonymous_page (inline)
      |          __do_huge_pmd_anonymous_page (inline)
      |          __SetPageUptodate (inline)
      |          __set_bit (inline)
    
      The result is compared with the output of addr2line. They match.
    Signed-off-by: default avatarYao Jin <yao.jin@linux.intel.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Kan Liang <kan.liang@intel.com>
    Cc: Milian Wolff <milian.wolff@kdab.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Link: http://lkml.kernel.org/r/1500409892-15904-1-git-send-email-yao.jin@linux.intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    8b8ef2d7
hist.c 21.9 KB