kpatch/test/integration/centos-7/tracepoints-section.patch
Joe Lawrence 11ce8102c2 testing: add and rebase integration tests for CentOS 7
Kernel version: 3.10.0-327.36.3.el7.x86_64
2016-12-16 16:06:28 -05:00

14 lines
460 B
Diff

diff -Nupr src.orig/kernel/timer.c src/kernel/timer.c
--- src.orig/kernel/timer.c 2016-11-30 20:10:24.823178250 +0000
+++ src/kernel/timer.c 2016-11-30 20:14:03.481178250 +0000
@@ -1390,6 +1390,9 @@ static void run_timer_softirq(struct sof
{
struct tvec_base *base = __this_cpu_read(tvec_bases);
+ if (!base)
+ printk("kpatch-test: testing __tracepoints section changes\n");
+
if (time_after_eq(jiffies, base->timer_jiffies))
__run_timers(base);
}