mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
To: David Carlier <devnexen@gmail.com>,
	Josh Law <objecting@objecting.org>,
	Dennis Zhou <dennis@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] lib: add kunit boundary tests for percpu_counter_tree comparisons
Date: Mon, 16 Mar 2026 10:40:42 -0400	[thread overview]
Message-ID: <c94af0cc-82c5-4cff-8091-9f23b9092c9f@efficios.com> (raw)
In-Reply-To: <20260316143805.36805-2-devnexen@gmail.com>

On 2026-03-16 10:38, David Carlier wrote:
> Add boundary tests for all four comparison APIs to validate that
> the accuracy parameters are correctly applied:
> 
> - percpu_counter_tree_approximate_compare_value()
> - percpu_counter_tree_precise_compare_value()
> - percpu_counter_tree_approximate_compare()
> - percpu_counter_tree_precise_compare()
> 
> The single-value tests probe the accuracy range boundaries (at,
> beyond, and in the asymmetric gap between under and over) to catch
> swapped accuracy parameters. The two-counter tests verify the
> symmetric combined accuracy boundary for counter-to-counter
> comparisons.
> 
> Signed-off-by: David Carlier <devnexen@gmail.com>

Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

-- 
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com

  reply	other threads:[~2026-03-16 14:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-16 14:38 [PATCH 1/2] lib: fix compare_delta parameter order in percpu_counter_tree David Carlier
2026-03-16 14:38 ` [PATCH 2/2] lib: add kunit boundary tests for percpu_counter_tree comparisons David Carlier
2026-03-16 14:40   ` Mathieu Desnoyers [this message]
2026-03-16 15:13   ` Josh Law
2026-03-16 14:39 ` [PATCH 1/2] lib: fix compare_delta parameter order in percpu_counter_tree Mathieu Desnoyers

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=c94af0cc-82c5-4cff-8091-9f23b9092c9f@efficios.com \
    --to=mathieu.desnoyers@efficios.com \
    --cc=akpm@linux-foundation.org \
    --cc=dennis@kernel.org \
    --cc=devnexen@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=objecting@objecting.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

all inboxes | Powered by JetHome®