proc_events.c: comment out aarch64

This commit is contained in:
Ciro Santilli
2018-04-17 09:20:41 +01:00
parent 0111ca406b
commit 72e9fcc4b0
3 changed files with 31 additions and 1 deletions

View File

@@ -2440,6 +2440,28 @@ TODO: why does this produce no output?
* https://serverfault.com/questions/199654/does-anyone-know-a-simple-way-to-monitor-root-process-spawn
* https://unix.stackexchange.com/questions/260162/how-to-track-newly-created-processes
==== CONFIG_PROC_EVENTS aarch64
Was failing with:
....
>>> kernel_module 1.0 Building
/usr/bin/make -j8 -C '/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/buildroot/build/kernel_module-1.0/user' BR2_PACKAGE_OPENBLAS="" CC="/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/buildroot/host/bin/aarch64-buildroot-linux-uclibc-gcc" LD="/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/buildroot/host/bin/aarch64-buildroot-linux-uclibc-ld"
/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/buildroot/host/bin/aarch64-buildroot-linux-uclibc-gcc -ggdb3 -fopenmp -O0 -std=c99 -Wall -Werror -Wextra -o 'proc_events.out' 'proc_events.c'
In file included from /home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/buildroot/host/aarch64-buildroot-linux-uclibc/sysroot/usr/include/signal.h:329:0,
from proc_events.c:12:
/home/ciro/bak/git/linux-kernel-module-cheat/out/aarch64/buildroot/host/aarch64-buildroot-linux-uclibc/sysroot/usr/include/sys/ucontext.h:50:16: error: field uc_mcontext has incomplete type
mcontext_t uc_mcontext;
^~~~~~~~~~~
....
so we commented it out.
Related threads:
* https://mailman.uclibc-ng.org/pipermail/devel/2018-January/001624.html lets try to update uclibc, possibly track it as a submodule already :-)
* https://github.com/DynamoRIO/dynamorio/issues/2356
==== ftrace
Trace a single function:

View File

@@ -4,6 +4,12 @@ This file is licensed under the GPL v2 (http://www.gnu.org/licenses/gpl2.txt) (s
https://stackoverflow.com/questions/6075013/detect-launching-of-programs-on-linux-platform/8255487#8255487
*/
#if defined(__aarch64__)
int main() {}
#else
#define _XOPEN_SOURCE 700
#include <sys/socket.h>
#include <linux/netlink.h>
@@ -178,3 +184,5 @@ out:
close(nl_sock);
exit(rc);
}
#endif

2
run
View File

@@ -293,7 +293,7 @@ if "$tmux"; then
if "$debug"; then
eval "./tmu ./rungdb -a "${arch}" ${tmux_args}"
elif "$gem5"; then
eval "./tmu 'sleep 1;./gem5-shell'"
eval "./tmu 'sleep 2;./gem5-shell'"
fi
fi
echo "$cmd" | tee "${out_arch_dir}/run.sh"