]> sourceware.org Git - systemtap.git/commitdiff
testing: add new script to generate kernel.function("*") equivalent module
authorFrank Ch. Eigler <fche@elastic.org>
Mon, 22 Nov 2010 16:11:58 +0000 (11:11 -0500)
committerFrank Ch. Eigler <fche@elastic.org>
Mon, 22 Nov 2010 16:11:58 +0000 (11:11 -0500)
scripts/kprobes_test/gen_code_all.sh [new file with mode: 0755]

diff --git a/scripts/kprobes_test/gen_code_all.sh b/scripts/kprobes_test/gen_code_all.sh
new file mode 100755 (executable)
index 0000000..3929312
--- /dev/null
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+set -e
+
+echo "Generating list of all kernel functions from /proc/kallsyms"
+grep ' [tT] ' /proc/kallsyms | fgrep -v '[' | awk '{print $3}' > probes.current
+echo "Found `wc -l < probes.current` of them: see probes.current"
+
+echo "Compiling module"
+python gen_code.py
+
+ls -al kprobe_module.ko
+echo "Run insmod kprobe_module.ko, if you dare."
This page took 0.032281 seconds and 5 git commands to generate.