diff -Nru systemtap-2.8/debian/changelog systemtap-2.8/debian/changelog --- systemtap-2.8/debian/changelog 2015-09-29 20:53:35.000000000 +0000 +++ systemtap-2.8/debian/changelog 2016-03-15 13:05:17.000000000 +0000 @@ -1,3 +1,10 @@ +systemtap (2.8-2ubuntu1.1) wily; urgency=medium + + * debian/patches/0001-Fixed-PR18634-by-getting-timer-probes-to-compile-on-.patch: + - Build for wily kernel. LP: #1547644 + + -- Dan Streetman Fri, 19 Feb 2016 19:17:06 +0000 + systemtap (2.8-2ubuntu1) wily; urgency=medium * Merge with Debian; remaining changes: diff -Nru systemtap-2.8/debian/patches/0001-Fixed-PR18634-by-getting-timer-probes-to-compile-on-.patch systemtap-2.8/debian/patches/0001-Fixed-PR18634-by-getting-timer-probes-to-compile-on-.patch --- systemtap-2.8/debian/patches/0001-Fixed-PR18634-by-getting-timer-probes-to-compile-on-.patch 1970-01-01 00:00:00.000000000 +0000 +++ systemtap-2.8/debian/patches/0001-Fixed-PR18634-by-getting-timer-probes-to-compile-on-.patch 2016-03-15 13:05:17.000000000 +0000 @@ -0,0 +1,76 @@ +From 86f726b7785a035a2d6bc9ec2642c46621587d23 Mon Sep 17 00:00:00 2001 +From: David Smith +Date: Tue, 7 Jul 2015 14:01:27 -0500 +Subject: [PATCH] Fixed PR18634 by getting timer probes to compile on rawhide. + +* runtime/linux/timer.c (_stp_hrtimer_init): If STAPCONF_HRTIMER_GET_RES + isn't defined, meaning hrtimer_get_res() doesn't exist, just use the + 'hrtimer_resolution' variable. +* buildrun.cxx (compile_pass): Add an export test for hrtimer_get_res(). +* translate.cxx (emit_common_header): Remove generated inclusion of + linux/hrtimer.h. +* runtime/linux/timer.h: Add inclusion of linux/hrtimer.h. +--- + buildrun.cxx | 1 + + runtime/linux/timer.c | 4 ++++ + runtime/linux/timer.h | 1 + + translate.cxx | 1 - + 4 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/buildrun.cxx b/buildrun.cxx +index 37b989f..e4b2697 100644 +--- a/buildrun.cxx ++++ b/buildrun.cxx +@@ -310,6 +310,7 @@ compile_pass (systemtap_session& s) + o << "$(STAPCONF_HEADER):" << endl; + o << "\t@echo -n > $@" << endl; + output_autoconf(s, o, "autoconf-hrtimer-rel.c", "STAPCONF_HRTIMER_REL", NULL); ++ output_exportconf(s, o, "hrtimer_get_res", "STAPCONF_HRTIMER_GET_RES"); + output_autoconf(s, o, "autoconf-generated-compile.c", "STAPCONF_GENERATED_COMPILE", NULL); + output_autoconf(s, o, "autoconf-hrtimer-getset-expires.c", "STAPCONF_HRTIMER_GETSET_EXPIRES", NULL); + output_autoconf(s, o, "autoconf-inode-private.c", "STAPCONF_INODE_PRIVATE", NULL); +diff --git a/runtime/linux/timer.c b/runtime/linux/timer.c +index 03d8f3f..f24a5ee 100644 +--- a/runtime/linux/timer.c ++++ b/runtime/linux/timer.c +@@ -15,9 +15,13 @@ + + static void _stp_hrtimer_init(void) + { ++#if defined(STAPCONF_HRTIMER_GET_RES) + struct timespec res; + hrtimer_get_res (CLOCK_MONOTONIC, &res); + stap_hrtimer_resolution = timespec_to_ns(&res); ++#else ++ stap_hrtimer_resolution = hrtimer_resolution; ++#endif + } + + +diff --git a/runtime/linux/timer.h b/runtime/linux/timer.h +index e9a5271..e7e0bb6 100644 +--- a/runtime/linux/timer.h ++++ b/runtime/linux/timer.h +@@ -15,6 +15,7 @@ + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17) + #error "hrtimers not implemented" + #else /* kernel version >= 2.6.17 */ ++#include + + static unsigned long stap_hrtimer_resolution = 0; + +diff --git a/translate.cxx b/translate.cxx +index 390a73e..6e335b2 100644 +--- a/translate.cxx ++++ b/translate.cxx +@@ -1177,7 +1177,6 @@ c_unparser::emit_common_header () + o->newline(-1) << "}"; + + o->newline( 0) << "#ifdef STP_ON_THE_FLY_TIMER_ENABLE"; +- o->newline( 0) << "#include "; + o->newline( 0) << "#include \"timer.h\""; + o->newline( 0) << "static struct hrtimer module_refresh_timer;"; + +-- +2.5.0 + diff -Nru systemtap-2.8/debian/patches/series systemtap-2.8/debian/patches/series --- systemtap-2.8/debian/patches/series 2015-07-31 18:26:19.000000000 +0000 +++ systemtap-2.8/debian/patches/series 2016-03-15 13:05:17.000000000 +0000 @@ -2,3 +2,4 @@ suggest-readme.debian.diff dtrace-no-std-include-path.diff fix-emacs24.diff +0001-Fixed-PR18634-by-getting-timer-probes-to-compile-on-.patch