Re: [PATCH v1 5/5] perf test trace BTF: Use --sort-events in BTF general tests
From: Howard Chu
Date: Sun May 18 2025 - 14:12:17 EST
Hello Namhyung,
On Sun, May 18, 2025 at 10:51 AM Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
>
> On Sat, May 17, 2025 at 09:32:30AM -0700, Howard Chu wrote:
> > Without the '--sort-events' flag, perf trace doesn't receive and process
> > events based on their arrival time, thus PERF_RECORD_COMM event that
> > assigns the correct comm to a PID, may be delivered and processed after
> > regular samples, causing trace outputs not having a 'comm', e.g.
> > 'mv', instead, having the default PID placeholder, e.g. ':14514'.
> >
> > Hopefully this answers Namhyung's question in [1].
>
> Thanks, it makes sense. Maybe it migrated to another CPU after exec.
>
> >
> > You can simply justify the statement with this diff:
> >
> > ---8<---
>
> Please do not use this in the format patch emails. This makes git treat
> the following contents as commit body so it'll be added to the commit as
> if it's a valid change. Maybe adding some spaces at the beginning of
> each line help. But I think it's better if you publish it somewhere else
> and add a link instead.
Sorry. I will delete this scissor in v2.
Thanks,
Howard