From 8d6f42f90692634af2a4d53059d6601a0ec1436c Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 13 Dec 2016 16:55:36 -0600 Subject: [PATCH] Fix get_user_pages_remote() autoconf test for 4.8 kernels. * runtime/linux/autoconf-get_user_pages_remote-flags.c: Since later autoconf-style test don't get the results of previous tests, remove STAPCONF_GET_USER_PAGES_REMOTE check. --- runtime/linux/autoconf-get_proc_freq.c | 11 +++++++++++ runtime/linux/autoconf-get_user_pages_remote-flags.c | 2 -- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 runtime/linux/autoconf-get_proc_freq.c diff --git a/runtime/linux/autoconf-get_proc_freq.c b/runtime/linux/autoconf-get_proc_freq.c new file mode 100644 index 000000000..25f4bba8b --- /dev/null +++ b/runtime/linux/autoconf-get_proc_freq.c @@ -0,0 +1,11 @@ +#if defined(__powerpc__) +#include + +unsigned long ____autoconf_func(void) +{ + unsigned long proc_freq = 0; + if (ppc_md.get_proc_freq) + proc_freq = ppc_md.get_proc_freq(0); + return proc_freq; +} +#endif diff --git a/runtime/linux/autoconf-get_user_pages_remote-flags.c b/runtime/linux/autoconf-get_user_pages_remote-flags.c index 1313e8957..c0c23609f 100644 --- a/runtime/linux/autoconf-get_user_pages_remote-flags.c +++ b/runtime/linux/autoconf-get_user_pages_remote-flags.c @@ -1,4 +1,3 @@ -#ifdef STAPCONF_GET_USER_PAGES_REMOTE #include // @@ -39,4 +38,3 @@ long gupr_wrapper(struct task_struct *tsk, struct mm_struct *mm, return get_user_pages_remote(tsk, mm, start, nr_pages, gup_flags, pages, vmas); } -#endif -- 2.43.5