Re: [PATCH 1/2] perf annotate-data: Show offset and size in hex
From: Arnaldo Carvalho de Melo
Date: Wed Aug 21 2024 - 10:45:41 EST
On Mon, Aug 19, 2024 at 07:21:34PM -0700, Namhyung Kim wrote:
> On Mon, Aug 19, 2024 at 5:12 PM Arnaldo Carvalho de Melo
> <arnaldo.melo@xxxxxxxxx> wrote:
> >
> >
> >
> > On Mon, Aug 19, 2024, 8:36 PM Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
> >>
> >> It'd be better to have them in hex to check cacheline alignment.
> >>
> >>
> > Why is it better? To compare with the usual output of some other tool?
> >
> > Spelling out reasons helps reviewers/users.
>
> Cache line sizes are power of 2 so it'd be natural to use hex and
> check whether an offset is in the same boundary. Also perf annotate
> shows instruction offsets in hex.
>
> >
> > Maybe this should be selectable?
>
> I can add an option and/or a config if you want.
It would be interesting to have, but I'm merging the patches to make
progress...
- Arnaldo