Re: [PATCH v6 4/5] perf scripts: Add perf-stuck, to tell where a running perf is stuck
From: Arnaldo Carvalho de Melo
Date: Thu Oct 01 2026 - 05:32:36 EST
On Thu, Oct 01, 2026 at 12:24:43AM -0700, Namhyung Kim wrote:
> On Wed, Sep 30, 2026 at 11:37:15PM +0200, Arnaldo Carvalho de Melo wrote:
> > + set $perf_die_chain_i = 0
> > + while $perf_die_chain_i < $perf_die_chain_n
> > + # Pointer type DIEs have no DW_AT_name, so dwarf_diename() can
> > + # return NULL: printf %s of it would error out and abort this
> > + # batch script, handle it.
> > + set $perf_die_chain_name = (char *) dwarf_diename($arg1)
> > + printf "chain[%d] die=%p addr=%p cu=%p off=0x%lx tag=%d name=", $perf_die_chain_i, $arg1, $arg1->addr, $arg1->cu, ((Dwarf_Off) dwarf_dieoffset($arg1)), ((int) dwarf_tag($arg1))
>
> Nit: can you please break this line?
Will do,
- Arnaldo