From: sashiko-bot@kernel.org
To: "Kunwu Chan" <kunwu.chan@gmail.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v2 3/5] perf/core: add KUnit tests for AUX kernel-consumer API
Date: Fri, 09 Oct 2026 16:11:43 +0000 [thread overview]
Message-ID: <sashiko-outbox-165817@kernel.org> (raw)
In-Reply-To: <20261009160010.1829642-4-kunwu.chan@gmail.com>
> From: Lian Wang <lianux.mm@gmail.com>
>
> Add a KUnit test suite (perf_aux_kernel) for the perf_event_setup_aux(),
> perf_event_release_aux(), perf_event_aux_head(), perf_event_aux_tail_set()
> and perf_event_aux_copy() functions.
>
> A self-contained dummy AUX PMU is registered in suite_init so that
> every test is deterministic and needs no hardware. The dummy
> setup_aux pre-fills all pages with a recognisable pattern (0xAB);
> aux_test_produce() advances the published head via
> perf_aux_output_begin/end, and copy tests verify the pattern.
>
> 39 test cases cover setup/release lifecycle, writer admission and
> blocking, head/tail/copy accessor contract validation (including
> wrap-around, boundary cursors, and data correctness), buffer-full
> [ ... ]
> Gated by CONFIG_PERF_AUX_KERNEL_KUNIT_TEST.
>
> Co-developed-by: Kunwu Chan <kunwu.chan@gmail.com>
> Signed-off-by: Kunwu Chan <kunwu.chan@gmail.com>
> Signed-off-by: Lian Wang <lianux.mm@gmail.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261009160010.1829642-1-kunwu.chan@gmail.com?part=3
next prev parent reply other threads:[~2026-10-09 16:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 15:59 [PATCH v2 0/5] perf/core: add AUX buffer kernel-consumer API Kunwu Chan
2026-10-09 15:59 ` [PATCH v2 1/5] perf/core: add AUX buffer ownership for kernel events Kunwu Chan
2026-10-09 16:14 ` sashiko-bot
2026-10-12 10:42 ` Peter Zijlstra
2026-10-09 15:59 ` [PATCH v2 2/5] perf/core: add AUX ring accessors for kernel consumers Kunwu Chan
2026-10-09 16:17 ` sashiko-bot
2026-10-09 15:59 ` [PATCH v2 3/5] perf/core: add KUnit tests for AUX kernel-consumer API Kunwu Chan
2026-10-09 16:11 ` sashiko-bot [this message]
2026-10-09 15:59 ` [PATCH v2 4/5] selftests/perf_events: add userspace AUX regression test Kunwu Chan
2026-10-09 16:10 ` sashiko-bot
2026-10-09 15:59 ` [PATCH v2 5/5] selftests/perf_events: add AUX kernel API selftest script Kunwu Chan
2026-10-09 16:10 ` sashiko-bot
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=sashiko-outbox-165817@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=kunwu.chan@gmail.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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