kpatch/test/integration/rhel-8.4/tracepoints-section.patch

14 lines
529 B
Diff

diff -Nupr src.orig/kernel/time/timer.c src/kernel/time/timer.c
--- src.orig/kernel/time/timer.c 2021-04-20 11:04:27.325102120 -0400
+++ src/kernel/time/timer.c 2021-04-20 11:05:27.596253341 -0400
@@ -1751,6 +1751,9 @@ static __latent_entropy void run_timer_s
{
struct timer_base *base = this_cpu_ptr(&timer_bases[BASE_STD]);
+ if (!base)
+ printk("kpatch-test: testing __tracepoints section changes\n");
+
__run_timers(base);
if (IS_ENABLED(CONFIG_NO_HZ_COMMON))
__run_timers(this_cpu_ptr(&timer_bases[BASE_DEF]));