-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello Gerald,


On Thu, 2017-03-02 at 13:25 -0800, Gerald Turner wrote:
> FWIW, I attempted to kludge around the mangled include argument by
> running stap with "-B 'EXTRA_CFLAGS += -I/usr/share/systemtap/runtime'".
> This seems to work around the compilation failure of missing
> runtime_defines.h in include path, however compiliation then fails due
> to what appears to be API changes in Linux kernel 4.9.
> 
> For example:
> 
>   In file included from /usr/share/systemtap/runtime/linux/runtime.h:209:0,
>                    from /usr/share/systemtap/runtime/runtime.h:26,
>                    from
> /tmp/stapqySw7o/stap_6ed5af627765aaab098e97da6b2931f0_2608_src.c:25:
>   /usr/share/systemtap/runtime/linux/access_process_vm.h:50:13: error: too
> many arguments to function ‘get_user_pages’
>          ret = get_user_pages (tsk, mm, addr, 1, write, 1, &page, &vma);
>                ^~~~~~~~~~~~~~
> 
> The prototype changed in Linux 4.9:
> 
>    long get_user_pages(unsigned long start, unsigned long nr_pages,
>                                int write, int force, struct page **pages,
>                                struct vm_area_struct **vmas);
> 
> It looks like systemtap 3.1 is expecting the prototype in Linux versions
> prior to 4.6:
> 

This is very weird. I was so hoping that 3.1 would fix the interface change
related build failures. The 3.1 stap release worked fine for me locally on
custom build 4.10 kernel.

The 3.1 release notes also claim successful tests with 4.8 and 4.10 kernels.


>    long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
>                        unsigned long start, unsigned long nr_pages,
>                        int write, int force, struct page **pages,
>                        struct vm_area_struct **vmas);
> 
> Log of systemtap 3.1 attached.
- -- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEQCVDstmIVAB/Yn02pjpYo/LhdWkFAli5VkMACgkQpjpYo/Lh
dWlSOBAAkjOB4cNsHuaoK2qo0SOv67/XEsuxeN9jLHo3rL/Q0AwdiLZAWAzLUxLZ
CXsrj0nosYin+c/MVBE4BrNv/UsbKl8telKr4rofcCO8AVftuI5Mn2sJsZWm2+AH
VELAQSKCms/9xY94lvaWV+YPIjVWh2oSTZBbBuosVHzq8g8z1SAFo9d6EkQP301z
CA9ZUgYdiBCgujjY6/FjxLhWrbuPz7eq8Xy7zoU8MyAi1igtm8bO/Qykwq01m5A8
X+1gOP0BIjx59i48WhX1z91EZk25oBDP9cuU4qdp/Cs7hhusV29sFP0jrJC3mLCZ
+cN3pijxuzxBZxv7kzYdmp7Q1YfAq/wkwB8V2DEG71jdh4y4CWMSrRNm+NmNftYW
xYTeJ3+01R6hDqmdjXCC3mtpu4ZAQ2Z2411WCceDiiYCswdF1bXTq3A6A3Mr6itw
aPROmV1yz5AMbAWiY4KPsOEWB3TyaVfzbgBjSOh11NiFWU6tEGhM8vgrOrAzAjek
WvmowAC5g308nSJBgATc/XxDcjBVfC9YoaRvvw74yKsP/y8GK2g4pvc35A7UowrQ
FFVyeQxSRuGHMSU3WMfxfK3ii/zQRJG0m9C+OvqOioQ7/ygWD/AbDsPLAyqoBz2F
L62cliiJ14zpF9vO5XuUt5/juILwR4++3G9qu5Xlt5kJgQHLCOY=
=0q9Z
-----END PGP SIGNATURE-----

Reply via email to