Re: [PATCH v5 2/2] perf/core: Disable context fast-swap for sigtrap events
From: Tengda Wu
Date: Thu Nov 19 2026 - 08:20:14 EST
On 2026/11/19 21:07, Sebastian Andrzej Siewior wrote:
> On 2026-11-19 20:17:20 [+0800], Tengda Wu wrote:
>> There is a test case, see this:
>> https://lore.kernel.org/all/d1b24bbf-9111-4766-87c8-ff97adcac727@xxxxxxxxxxxxxxx/
>
> Now I remember. Would it make sense to include it to
> tools/testing/selftests/perf_events/sigtrap_threads.c
>
> ?
>
Well, because the trigger window is very short, it is not easy to reproduce.
The test case I provided above must be stress-tested through multiple
rounds of a while loop. Is it inappropriate to put this kind of test,
which requires a while loop and has a certain degree of randomness, into
deterministic test cases like sigtrap_threads.c?
Thanks,
Tengda