Skip to content

Instantly share code, notes, and snippets.

@hassan113
Last active June 15, 2020 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hassan113/67f8383e5c314e1b2ab7727e30db0b97 to your computer and use it in GitHub Desktop.
Save hassan113/67f8383e5c314e1b2ab7727e30db0b97 to your computer and use it in GitHub Desktop.
sudo stap -gv -a arm64 -p4 -r /home/hassan/Desktop/sandbox_design/aarch/output/build/linux-4.19.91/ -B CROSS_COMPILE=/home/hassan/Desktop/sandbox_design/aarch/output/host/bin/aarch64-linux- -m strace.ko strace.stp
Truncating module name to 'strace'
Pass 1: parsed user script and 458 library scripts using 125016virt/67812res/7012shr/61108data kb, in 140usr/20sys/155real ms.
Pass 2: analyzed script: 962 probes, 203 functions, 100 embeds, 63 globals using 145392virt/89620res/8320shr/81484data kb, in 1740usr/300sys/2034real ms.
Pass 3: translated to C into "/tmp/stapcoQ6t0/strace_src.c" using 145392virt/89620res/8320shr/81484data kb, in 330usr/10sys/353real ms.
/tmp/stapcoQ6t0/strace_src.c: In function ‘function___global__struct_compat_timex_u__overload_0’:
/tmp/stapcoQ6t0/strace_src.c:206438:22: error: storage size of ‘ts’ isn’t known
struct compat_timex ts;
^~
/tmp/stapcoQ6t0/strace_src.c:206446:14: error: invalid application of ‘sizeof’ to incomplete type ‘struct old_timex32’
sizeof(struct compat_timex)) == 0)
^~~~~~
scripts/Makefile.build:303: recipe for target '/tmp/stapcoQ6t0/strace_src.o' failed
make[1]: *** [/tmp/stapcoQ6t0/strace_src.o] Error 1
Makefile:1522: recipe for target '_module_/tmp/stapcoQ6t0' failed
make: *** [_module_/tmp/stapcoQ6t0] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "strace.ko" in 33950usr/2120sys/23116real ms.
Pass 4: compilation failed. [man error::pass4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment