mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 20:44:26 +01:00
proc_events.c: comment out aarch64
This commit is contained in:
22
README.adoc
22
README.adoc
@@ -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://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
|
* 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
|
==== ftrace
|
||||||
|
|
||||||
Trace a single function:
|
Trace a single function:
|
||||||
|
|||||||
@@ -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
|
https://stackoverflow.com/questions/6075013/detect-launching-of-programs-on-linux-platform/8255487#8255487
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(__aarch64__)
|
||||||
|
|
||||||
|
int main() {}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
#define _XOPEN_SOURCE 700
|
#define _XOPEN_SOURCE 700
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <linux/netlink.h>
|
#include <linux/netlink.h>
|
||||||
@@ -178,3 +184,5 @@ out:
|
|||||||
close(nl_sock);
|
close(nl_sock);
|
||||||
exit(rc);
|
exit(rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
2
run
2
run
@@ -293,7 +293,7 @@ if "$tmux"; then
|
|||||||
if "$debug"; then
|
if "$debug"; then
|
||||||
eval "./tmu ./rungdb -a "${arch}" ${tmux_args}"
|
eval "./tmu ./rungdb -a "${arch}" ${tmux_args}"
|
||||||
elif "$gem5"; then
|
elif "$gem5"; then
|
||||||
eval "./tmu 'sleep 1;./gem5-shell'"
|
eval "./tmu 'sleep 2;./gem5-shell'"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "$cmd" | tee "${out_arch_dir}/run.sh"
|
echo "$cmd" | tee "${out_arch_dir}/run.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user