• Namhyung Kim's avatar
    perf annotate-data: Add pr_debug_scope() · 02648783
    Namhyung Kim authored
    The pr_debug_scope() is to print more information about the scope DIE
    during the instruction tracking so that it can help finding relevant
    debug info and the source code like inlined functions more easily.
    
      $ perf --debug type-profile annotate --data-type
      ...
      -----------------------------------------------------------
      find data type for 0(reg0, reg12) at set_task_cpu+0xdd
      CU for kernel/sched/core.c (die:0x1268dae)
      frame base: cfa=1 fbreg=7
      scope: [3/3] (die:12b6d28) [inlined] set_task_rq       <<<--- (here)
      bb: [9f - dd]
      var [9f] reg3 type='struct task_struct*' size=0x8 (die:0x126aff0)
      var [9f] reg6 type='unsigned int' size=0x4 (die:0x1268e0d)
    Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Kan Liang <kan.liang@linux.intel.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Link: https://lore.kernel.org/r/20240909214251.3033827-2-namhyung@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    02648783
annotate-data.c 45.9 KB