]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clocksource: Provide a module parameter to fuzz per-CPU clock checking
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 22 Dec 2020 01:31:18 +0000 (17:31 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 2 Apr 2021 19:34:35 +0000 (12:34 -0700)
commit9c4864334b4384292cae69c2dfa4806a1010eae0
treebd34af2578e68457f156b70a94ff5f2f0c7f295e
parente5cf7a67dddd4dadbf769c54543440d381e8007d
clocksource: Provide a module parameter to fuzz per-CPU clock checking

Code that checks for clock desynchronization must itself be tested, so
this commit creates a new clocksource.inject_delay_shift_percpu= kernel
boot parameter that adds or subtracts a large value from the check read,
using the specified bit of the CPU ID to determine whether to add or
to subtract.

Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Mark Rutland <Mark.Rutland@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Reported-by: Chris Mason <clm@fb.com>
[ paulmck: Apply Randy Dunlap feedback. ]
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
kernel/time/clocksource.c