diff options
| author | hunt <hunt> | 2005-05-31 20:14:03 +0000 |
|---|---|---|
| committer | hunt <hunt> | 2005-05-31 20:14:03 +0000 |
| commit | a7b49c5a613f185067ed07f7bfcbb02d14a5ed1f (patch) | |
| tree | ba94a055804a57c4e1a6d3a629e1a88026933147 /runtime/probes/scf/Makefile | |
| parent | 9c5d496e200d5476b126bc5ff9806365a77a2c7e (diff) | |
| download | systemtap-steved-a7b49c5a613f185067ed07f7bfcbb02d14a5ed1f.tar.gz systemtap-steved-a7b49c5a613f185067ed07f7bfcbb02d14a5ed1f.tar.xz systemtap-steved-a7b49c5a613f185067ed07f7bfcbb02d14a5ed1f.zip | |
New probe.
Diffstat (limited to 'runtime/probes/scf/Makefile')
| -rw-r--r-- | runtime/probes/scf/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/runtime/probes/scf/Makefile b/runtime/probes/scf/Makefile new file mode 100644 index 00000000..0a456a00 --- /dev/null +++ b/runtime/probes/scf/Makefile @@ -0,0 +1,22 @@ +# Makefile + +PWD := $(shell pwd) +KVERSION := $(shell uname -r) +KDIR := /lib/modules/$(KVERSION)/build include + +KALLSYMS_LOOKUP_NAME := $(firstword $(shell grep " kallsyms_lookup_name" /boot/System.map-$(KVERSION))) +KALLSYMS_LOOKUP := $(firstword $(shell grep " kallsyms_lookup$$" /boot/System.map-$(KVERSION))) +KTA := $(firstword $(shell grep "__kernel_text_address" /boot/System.map-$(KVERSION))) + +CFLAGS += -I $(STP_RUNTIME) -I $(STP_RUNTIME)/relayfs -D KALLSYMS_LOOKUP_NAME=$(KALLSYMS_LOOKUP_NAME) -D KALLSYMS_LOOKUP=$(KALLSYMS_LOOKUP) -D KTA=$(KTA) + +obj-m := scf.o + +default: + $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules \ + KALLSYMS_LOOKUP_NAME=0x$(KALLSYMS_LOOKUP_NAME) \ + KALLSYMS_LOOKUP=0x$(KALLSYMS_LOOKUP) KTA=0x$(KTA) \ + STP_RUNTIME=$(PWD)/../.. + +clean: + /bin/rm -rf *.o *.ko *~ *.mod.c .*.cmd .tmp_versions |
