refscale: Add measurement of clock readout
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 4 May 2021 00:04:57 +0000 (17:04 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 27 Jul 2021 18:38:56 +0000 (11:38 -0700)
commit25f6fa53a07422e2bb004229eefd32760c469fb0
tree3ac629fe664e2f57039d9c54faa792b99ca62739
parent2734d6c1b1a089fb593ef6a23d4b70903526fe0c
refscale: Add measurement of clock readout

This commit adds a "clock" type to refscale, which checks the performance
of ktime_get_real_fast_ns().  Use the "clocksource=" kernel boot parameter
to select the underlying clock source.

[ paulmck: Work around compiler false positive per kernel test robot. ]
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/refscale.c