Created
May 1, 2016 22:53
-
-
Save anonymous/ad6e4d30eec9fa4f7fe31b6dc01d0f93 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> sudo ./stap -gv -a arm -B CROSS_COMPILE=arm-linux-gnueabi- -r <path/to/kernel> -R /data/systemtap-$SYSTEMTAP_VERSION-macharm/share/systemtap/runtime -m helloworld ./helloworld.stp -vp 0004 | |
Systemtap translator/driver (version 1.7/0.164 commit release-1.7-0-g83bd269 + changes) | |
Copyright (C) 2005-2012 Red Hat, Inc. and others | |
This is free software; see the source for copying conditions. | |
enabled features: TR1_UNORDERED_MAP NLS | |
Created temporary directory "/tmp/stapgMWVUE" | |
Session arch: arm release: 3.4.0-g1824a6b | |
Searched: " /data/systemtap-3.0-ubuntu/share/systemtap/tapset/arm/*.stp ", found: 2, processed: 2 | |
Searched: " /data/systemtap-3.0-ubuntu/share/systemtap/tapset/*.stp ", found: 77, processed: 77 | |
Pass 1: parsed user script and 79 library script(s) using 58224virt/21500res/2400shr kb, in 100usr/10sys/111real ms. | |
Attempting to extract kernel debuginfo build ID from <path/to/kernel>/vmlinux.id | |
probe vfs_read@fs/read_write.c:364 kernel reloc=.dynamic pc=0xc026b7c0 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_1 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_2 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_3 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_4 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_5 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_6 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_7 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_8 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_9 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_10 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_11 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_12 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_13 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE/typequery_kmod_14 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Pass 2: analyzed script: 3 probe(s), 1 function(s), 5 embed(s), 1 global(s) using 323384virt/141076res/3560shr kb, in 13030usr/7840sys/20527real ms. | |
function recursion-analysis: max-nesting 0 non-recursive | |
probe kernel.function("vfs_read@fs/read_write.c:364") locks reads[rw] | |
probe timer.s(3) locks nothing | |
Attempting to extract kernel debuginfo build ID from <path/to/kernel>/vmlinux.id | |
dump_unwindsyms kernel index=0 base=0xc0008000 | |
Found build-id in kernel, length 20, start at 0xc11fc62c | |
Pass 3: translated to C into "/tmp/stapgMWVUE/helloworld_src.c" using 323384virt/145600res/8084shr kb, in 20usr/10sys/26real ms. | |
Running make -C <path/to/kernel> M=/tmp/stapgMWVUE modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- --no-print-directory -j49 | |
CC [M] /tmp/stapgMWVUE/helloworld_src.o | |
In file included from /data/systemtap-3.0-macharm/share/systemtap/runtime/linux/runtime.h:212:0, | |
from /data/systemtap-3.0-macharm/share/systemtap/runtime/runtime.h:24, | |
from /tmp/stapgMWVUE/helloworld_src.c:20: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/linux/alloc.c:345:14: error: static declaration of ‘vzalloc’ follows non-static declaration | |
In file included from /data/systemtap-3.0-macharm/share/systemtap/runtime/linux/runtime.h:23:0, | |
from /data/systemtap-3.0-macharm/share/systemtap/runtime/runtime.h:24, | |
from /tmp/stapgMWVUE/helloworld_src.c:20: | |
include/linux/vmalloc.h:55:14: note: previous declaration of ‘vzalloc’ was here | |
In file included from /data/systemtap-3.0-macharm/share/systemtap/runtime/linux/runtime.h:212:0, | |
from /data/systemtap-3.0-macharm/share/systemtap/runtime/runtime.h:24, | |
from /tmp/stapgMWVUE/helloworld_src.c:20: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/linux/alloc.c:380:14: error: static declaration of ‘vmalloc_node’ follows non-static declaration | |
In file included from /data/systemtap-3.0-macharm/share/systemtap/runtime/linux/runtime.h:23:0, | |
from /data/systemtap-3.0-macharm/share/systemtap/runtime/runtime.h:24, | |
from /tmp/stapgMWVUE/helloworld_src.c:20: | |
include/linux/vmalloc.h:57:14: note: previous declaration of ‘vmalloc_node’ was here | |
In file included from /data/systemtap-3.0-macharm/share/systemtap/runtime/linux/runtime.h:212:0, | |
from /data/systemtap-3.0-macharm/share/systemtap/runtime/runtime.h:24, | |
from /tmp/stapgMWVUE/helloworld_src.c:20: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/linux/alloc.c:387:14: error: static declaration of ‘vzalloc_node’ follows non-static declaration | |
In file included from /data/systemtap-3.0-macharm/share/systemtap/runtime/linux/runtime.h:23:0, | |
from /data/systemtap-3.0-macharm/share/systemtap/runtime/runtime.h:24, | |
from /tmp/stapgMWVUE/helloworld_src.c:20: | |
include/linux/vmalloc.h:58:14: note: previous declaration of ‘vzalloc_node’ was here | |
In file included from /data/systemtap-3.0-macharm/share/systemtap/runtime/linux/runtime.h:212:0, | |
from /data/systemtap-3.0-macharm/share/systemtap/runtime/runtime.h:24, | |
from /tmp/stapgMWVUE/helloworld_src.c:20: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/linux/alloc.c: In function ‘_stp_alloc_percpu’: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/linux/alloc.c:446:2: error: too few arguments to function ‘__alloc_percpu’ | |
In file included from include/linux/topology.h:34:0, | |
from include/linux/gfp.h:7, | |
from /data/systemtap-3.0-macharm/share/systemtap/runtime/linux/runtime_defines.h:20, | |
from /data/systemtap-3.0-macharm/share/systemtap/runtime/runtime_defines.h:8, | |
from /tmp/stapgMWVUE/helloworld_src.c:10: | |
include/linux/percpu.h:161:23: note: declared here | |
In file included from /data/systemtap-3.0-macharm/share/systemtap/runtime/vma.c:18:0, | |
from /data/systemtap-3.0-macharm/share/systemtap/runtime/sym.c:16, | |
from /data/systemtap-3.0-macharm/share/systemtap/runtime/linux/runtime.h:228, | |
from /data/systemtap-3.0-macharm/share/systemtap/runtime/runtime.h:24, | |
from /tmp/stapgMWVUE/helloworld_src.c:20: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c: In function ‘stap_destroy_vma_map’: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:107:69: error: macro "hlist_for_each_entry_safe" requires 5 arguments, but only 4 given | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:107:11: error: ‘hlist_for_each_entry_safe’ undeclared (first use in this function) | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:107:11: note: each undeclared identifier is reported only once for each function it appears in | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:107:71: error: expected ‘;’ before ‘{’ token | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c: In function ‘__stp_tf_get_vma_map_entry_internal’: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:136:52: error: macro "hlist_for_each_entry" requires 4 arguments, but only 3 given | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:136:2: error: ‘hlist_for_each_entry’ undeclared (first use in this function) | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:136:54: error: expected ‘;’ before ‘{’ token | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:143:1: error: no return statement in function returning non-void [-Werror=return-type] | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c: In function ‘__stp_tf_get_vma_map_entry_end_internal’: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:157:52: error: macro "hlist_for_each_entry" requires 4 arguments, but only 3 given | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:157:2: error: ‘hlist_for_each_entry’ undeclared (first use in this function) | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:157:54: error: expected ‘;’ before ‘{’ token | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:164:1: error: no return statement in function returning non-void [-Werror=return-type] | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c: In function ‘stap_find_vma_map_info’: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:295:52: error: macro "hlist_for_each_entry" requires 4 arguments, but only 3 given | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:295:2: error: ‘hlist_for_each_entry’ undeclared (first use in this function) | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:295:54: error: expected ‘;’ before ‘{’ token | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c: In function ‘stap_find_vma_map_info_user’: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:339:52: error: macro "hlist_for_each_entry" requires 4 arguments, but only 3 given | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:339:2: error: ‘hlist_for_each_entry’ undeclared (first use in this function) | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:339:54: error: expected ‘;’ before ‘{’ token | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c: In function ‘stap_drop_vma_maps’: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:370:67: error: macro "hlist_for_each_entry_safe" requires 5 arguments, but only 4 given | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:370:9: error: ‘hlist_for_each_entry_safe’ undeclared (first use in this function) | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/task_finder_vma.c:370:69: error: expected ‘;’ before ‘{’ token | |
In file included from /data/systemtap-3.0-macharm/share/systemtap/runtime/linux/runtime.h:228:0, | |
from /data/systemtap-3.0-macharm/share/systemtap/runtime/runtime.h:24, | |
from /tmp/stapgMWVUE/helloworld_src.c:20: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/sym.c: In function ‘_stp_snprint_addr’: | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/sym.c:980:19: error: dereferencing pointer to incomplete type | |
/data/systemtap-3.0-macharm/share/systemtap/runtime/sym.c:984:28: error: dereferencing pointer to incomplete type | |
/tmp/stapgMWVUE/helloworld_src.c: At top level: | |
/tmp/stapgMWVUE/helloworld_src.c:35:32: fatal error: access_process_vm.h: No such file or directory | |
cc1: all warnings being treated as errors | |
compilation terminated. | |
make[1]: *** [/tmp/stapgMWVUE/helloworld_src.o] Error 1 | |
make: *** [_module_/tmp/stapgMWVUE] Error 2 | |
Spawn waitpid result (0x200): 2 | |
WARNING: make exited with status: 2 | |
Pass 4: compiled C into "helloworld.ko" in 1700usr/1050sys/2704real ms. | |
Pass 4: compilation failed. Try again with another '--vp 0001' option. | |
Running rm -rf /tmp/stapgMWVUE | |
Spawn waitpid result (0x0): 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment