• Namhyung Kim's avatar
    perf script: Add --inline option for debugging · 325fbff5
    Namhyung Kim authored
    The --inline option is to show inlined functions in callchains.
    
    For example:
    
      $ perf script
      a.out  5644 11611.467597:     309961 cycles:u:
                         790 main (/home/namhyung/tmp/perf/a.out)
                       20511 __libc_start_main (/usr/lib/libc-2.25.so)
                         8ba _start (/home/namhyung/tmp/perf/a.out)
      ...
    
      $ perf script --inline
      a.out  5644 11611.467597:     309961 cycles:u:
                         790 main (/home/namhyung/tmp/perf/a.out)
                             std::__detail::_Adaptor<std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul>, double>::operator()
                             std::uniform_real_distribution<double>::operator()<std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul> >
                             std::uniform_real_distribution<double>::operator()<std::linear_congruential_engine<unsigned long, 16807ul, 0ul, 2147483647ul> >
                             main
                       20511 __libc_start_main (/usr/lib/libc-2.25.so)
                         8ba _start (/home/namhyung/tmp/perf/a.out)
      ...
    Reviewed-and-tested-by: default avatarMilian Wolff <milian.wolff@kdab.com>
    Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Jin Yao <yao.jin@linux.intel.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Milian Wolff <milian.wolff@kdab.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: kernel-team@lge.com
    Link: http://lkml.kernel.org/r/20170524062129.32529-5-namhyung@kernel.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    325fbff5
evsel_fprintf.c 6.51 KB