kpatch/test/integration/rhel-8.10/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 2024-04-18 14:12:03.614374798 -0400
+++ src/kernel/time/timer.c 2024-04-18 14:13:05.967239282 -0400
@@ -1988,6 +1988,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]));