Re: [PATCH] mm/damon: trace: print address range in hex

Akinobu Mita
2024-12-31T12:56:58Z

2024年12月31日(火) 3:39 SeongJae Park <sj@kernel.org>:
>
> On Mon, 30 Dec 2024 10:28:13 -0800 SeongJae Park <sj@kernel.org> wrote:
>
> > Hello Akinobu,
> >
> > On Mon, 30 Dec 2024 22:42:20 +0900 Akinobu Mita <akinobu.mita@gmail.com> wrote:
> >
> > > Currently, the address ranges are displayed in decimal format in
> > > tracepoints for DAMON, but hexadecimal format is easier to compare with
> > > address ranges in /proc/<pid>/numa_maps.
> >
> > I agree that it could be easier for the use case. But, I think writing and
> > using a script converting formats for DAMON tracepoint output or numa_maps
> > could also be a way to resolve the issue.
>
> For example, we can extend 'damo' to optionally do the conversion. Depending
> on your use case (if you also use 'damo' for your use case), it might be a way
> to move forward?

I'm currently using perf trace (-e damon:* --libtraceevent_print) to see which
address range accesses were detected or not, so as you suggested, I'll create a
script to convert the output of the perf trace.