summaryrefslogtreecommitdiffstats
path: root/runtime/probes/test4
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/probes/test4')
-rw-r--r--runtime/probes/test4/Makefile2
-rwxr-xr-xruntime/probes/test4/build3
2 files changed, 3 insertions, 2 deletions
diff --git a/runtime/probes/test4/Makefile b/runtime/probes/test4/Makefile
index 8fff0dc4..7afe0c0f 100644
--- a/runtime/probes/test4/Makefile
+++ b/runtime/probes/test4/Makefile
@@ -4,7 +4,7 @@
# make -C path/to/kernel/src M=`pwd` modules STP_RUNTIME=path_to_systemtap_rt
CFLAGS += -I $(STP_RUNTIME) -D KALLSYMS_LOOKUP_NAME=$(KALLSYMS_LOOKUP_NAME) \
- -D KALLSYMS_LOOKUP=$(KALLSYMS_LOOKUP)
+ -D KALLSYMS_LOOKUP=$(KALLSYMS_LOOKUP) -D KTA=$(KTA)
obj-m := dtr.o
clean:
diff --git a/runtime/probes/test4/build b/runtime/probes/test4/build
index 3713f08a..fb344b37 100755
--- a/runtime/probes/test4/build
+++ b/runtime/probes/test4/build
@@ -4,10 +4,11 @@ KVERSION=`uname -r`
echo $KVERSION
KALLSYMS_LOOKUP_NAME=`grep " kallsyms_lookup_name" /boot/System.map-$KVERSION |awk '{print $1}'`
KALLSYMS_LOOKUP=`grep " kallsyms_lookup$" /boot/System.map-$KVERSION |awk '{print $1}'`
+KTA=`grep "__kernel_text_address" /boot/System.map-$KVERSION |awk '{print $1}'`
make V=1 -C /lib/modules/`uname -r`/build M=`pwd` modules \
KALLSYMS_LOOKUP_NAME=0x$KALLSYMS_LOOKUP_NAME \
- KALLSYMS_LOOKUP=0x$KALLSYMS_LOOKUP \
+ KALLSYMS_LOOKUP=0x$KALLSYMS_LOOKUP KTA=0x$KTA\
STP_RUNTIME=`pwd`/../..