-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Wed, 2017-03-01 at 18:58 +0530, Ritesh Raj Sarraf wrote: > But in my logs, runtime_defines.h is properly detected. I'll try to run the > command on a Debian kernel to verify if it is broken or not.
Forgot to add the log. ``` rrs@learner:/tmp$ sudo stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}' [sudo] password for rrs: Pass 1: parsed user script and 118 library scripts using 106660virt/39568res/6268shr/33552data kb, in 200usr/20sys/258real ms. Pass 2: analyzed script: 1 probe, 1 function, 4 embeds, 0 globals using 246904virt/181448res/7688shr/173796data kb, in 1810usr/660sys/4018real ms. Pass 3: translated to C into "/tmp/stapJQUBQF/stap_8ef46d39a073456b4762098be7ff765b_1501_src.c" using 246904virt/181640res/7880shr/173796data kb, in 10usr/50sys/60real ms. In file included from /usr/share/systemtap/runtime/linux/runtime.h:209:0, from /usr/share/systemtap/runtime/runtime.h:24, from /tmp/stapJQUBQF/stap_8ef46d39a073456b4762098be7ff765b_1501_src.c:25: /usr/share/systemtap/runtime/linux/access_process_vm.h: In function ‘__access_process_vm_’: /usr/share/systemtap/runtime/linux/access_process_vm.h:36:61: error: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Werror=int-conversion] ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma); ^ In file included from ./include/linux/pid_namespace.h:6:0, from ./include/linux/ptrace.h:8, from ./include/linux/ftrace.h:13, from ./include/linux/kprobes.h:42, from /usr/share/systemtap/runtime/linux/runtime.h:21, from /usr/share/systemtap/runtime/runtime.h:24, from /tmp/stapJQUBQF/stap_8ef46d39a073456b4762098be7ff765b_1501_src.c:25: ./include/linux/mm.h:1267:6: note: expected ‘struct page **’ but argument is of type ‘int’ long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm, ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/share/systemtap/runtime/linux/runtime.h:209:0, from /usr/share/systemtap/runtime/runtime.h:24, from /tmp/stapJQUBQF/stap_8ef46d39a073456b4762098be7ff765b_1501_src.c:25: /usr/share/systemtap/runtime/linux/access_process_vm.h:36:64: error: passing argument 7 of ‘get_user_pages_remote’ from incompatible pointer type [- Werror=incompatible-pointer-types] ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma); ^ In file included from ./include/linux/pid_namespace.h:6:0, from ./include/linux/ptrace.h:8, from ./include/linux/ftrace.h:13, from ./include/linux/kprobes.h:42, from /usr/share/systemtap/runtime/linux/runtime.h:21, from /usr/share/systemtap/runtime/runtime.h:24, from /tmp/stapJQUBQF/stap_8ef46d39a073456b4762098be7ff765b_1501_src.c:25: ./include/linux/mm.h:1267:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’ long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm, ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/share/systemtap/runtime/linux/runtime.h:209:0, from /usr/share/systemtap/runtime/runtime.h:24, from /tmp/stapJQUBQF/stap_8ef46d39a073456b4762098be7ff765b_1501_src.c:25: /usr/share/systemtap/runtime/linux/access_process_vm.h:36:71: error: passing argument 8 of ‘get_user_pages_remote’ from incompatible pointer type [- Werror=incompatible-pointer-types] ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page, &vma); ^ In file included from ./include/linux/pid_namespace.h:6:0, from ./include/linux/ptrace.h:8, from ./include/linux/ftrace.h:13, from ./include/linux/kprobes.h:42, from /usr/share/systemtap/runtime/linux/runtime.h:21, from /usr/share/systemtap/runtime/runtime.h:24, from /tmp/stapJQUBQF/stap_8ef46d39a073456b4762098be7ff765b_1501_src.c:25: ./include/linux/mm.h:1267:6: note: expected ‘int *’ but argument is of type ‘struct vm_area_struct **’ long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm, ^~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors scripts/Makefile.build:294: recipe for target '/tmp/stapJQUBQF/stap_8ef46d39a073456b4762098be7ff765b_1501_src.o' failed make[1]: *** [/tmp/stapJQUBQF/stap_8ef46d39a073456b4762098be7ff765b_1501_src.o] Error 1 Makefile:1490: recipe for target '_module_/tmp/stapJQUBQF' failed make: *** [_module_/tmp/stapJQUBQF] Error 2 WARNING: kbuild exited with status: 2 Pass 4: compiled C into "stap_8ef46d39a073456b4762098be7ff765b_1501.ko" in 13140usr/1330sys/15462real ms. Pass 4: compilation failed. [man error::pass4] Tip: /usr/share/doc/systemtap/README.Debian should help you get started. 2017-03-01 / 18:52:38 ♒♒♒ ☹ => 1 ``` - -- Ritesh Raj Sarraf | http://people.debian.org/~rrs Debian - The Universal Operating System -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEQCVDstmIVAB/Yn02pjpYo/LhdWkFAli2zMMACgkQpjpYo/Lh dWk/Ng/7BQas1KV5g0w6WaxiwuLhWwWkgOsQ/h4EtWUSj9bLW3kHR7NTLZlWp3cn HP9Q7lBdogh8PEYmLsARiWdj8IS7xuIIX5Wfg9D4CKyEWWFrnfJdl+UtepuwYg36 bz6IWCUTgZCEBTfOWCNhyWg0t/PSheybYhJRMWYk7AYDcZUHQNYRW8oN5oncoulQ o61/fCby52ZHq/CZSXkXZUTV6mWkOePQeRxn3kYSinBfAkGcYc9HCZICgzptwj8D Pp84QTCSpg0jyFMEzPbTnpJ18YCBPh6EW+7+O2qqQizd02mTc3Hnec29nKYMef7j xnF4gUkvaJponKPTtK34s51xx2Xk8RnHx0s14N/N79MlGKYoM0AmiQSkVhgX6to9 exWYIiw4eI1ZnXENB4suVmgSUrQ6Sx2HaDYCe1xHGbnwUQcU6bIVaUSq1p85Tx7G FN2FNnXLSO6wKBmPty3ZfczsUsJg1uZwCYGgYXHy/OdScVQSvva4rqooh+ZZeyVD sEStkoJcLe+sUphMF57xXmJCvIfYS/pgb5KMddIm9ANVMMOMj0cS+aByPRTiXbsR I45b5fGxXxGleFKWQC8wXETC6W+sfkyaG7AzAh0feBKhpquwKqd2bWuIsD2mfeAf LD5O744A18STaE/qPLEsiP445cPbFgxAmgBEw9Te3M3T8bz7Ck4= =JZa3 -----END PGP SIGNATURE-----