Re: [PATCH 2/6] perf test: Use a test program in perf record tests

From: Namhyung Kim
Date: Wed Sep 07 2022 - 13:38:51 EST


Hi Adrian,

On Wed, Sep 7, 2022 at 3:45 AM Adrian Hunter <adrian.hunter@xxxxxxxxx> wrote:
>
> On 7/09/22 09:46, Namhyung Kim wrote:
> > If the system has cc it could build a test program with two threads
> > and then use it for more detailed testing. Also it adds initial delay
> > of 3ms to profile a multi-threaded target. This change make the test
> > failing but that's what we want to check for now.
>
> So the delay is just to get a separate dummy event?

No, it's actually to wait for the new thread.

>
> I hit the issue from this patch:
>
> https://lore.kernel.org/lkml/20220711180706.3418612-1-kan.liang@xxxxxxxxxxxxxxx/
>
> That is, if I apply the patch above then the test passes, otherwise it fails always.

It's good to find/verify the bug with this :)

Thanks,
Namhyung