From: SeongJae Park <sj@kernel.org>
To: Akinobu Mita <akinobu.mita@gmail.com>
Cc: SeongJae Park <sj@kernel.org>, damon@lists.linux.dev, linux-mm@kvack.org
Subject: Re: [PATCH] mm/damon: trace: print address range in hex
Date: Wed, 1 Jan 2025 09:43:49 -0800 [thread overview]
Message-ID: <20250101174349.71139-1-sj@kernel.org> (raw)
In-Reply-To: <CAC5umyh9k_xvRws9HdmuF8op424VL8j50304+m=GsY+jfxADbQ@mail.gmail.com>
On Tue, 31 Dec 2024 21:56:43 +0900 Akinobu Mita <akinobu.mita@gmail.com> wrote:
> 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,
Thank you for kindly sharing your use case. I'm not very sure why you need to
use 'perf trace' instead of 'damo', though. 'damo' supports recording the
whole events and getting access monitoring result snapshots in live, with a few
results filtering criterias. I just assume you had to use 'perf trace' since
you want to read full events in realtime, but please let me know if you want to
know more details about 'damo' features that might help you.
> so as you suggested, I'll create a
> script to convert the output of the perf trace.
Thank you for accepting my suggestion. Please let me know if there is anything
that I can help at writing the script. For example, if you really need to use
'perf trace', we're open to extend 'damo' for that.
Thanks,
SJ
prev parent reply other threads:[~2025-01-01 17:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-30 13:42 Akinobu Mita
2024-12-30 13:42 ` [PATCH damo] _damo_records: support address range in hex format Akinobu Mita
2024-12-30 18:35 ` SeongJae Park
2024-12-30 18:28 ` [PATCH] mm/damon: trace: print address range in hex SeongJae Park
2024-12-30 18:39 ` SeongJae Park
2024-12-31 12:56 ` Akinobu Mita
2025-01-01 17:43 ` SeongJae Park [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250101174349.71139-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=akinobu.mita@gmail.com \
--cc=damon@lists.linux.dev \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox