diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/Makefile | 15 | ||||
-rw-r--r-- | runtime/bench2/Makefile | 7 | ||||
-rw-r--r-- | runtime/probes/bench/Makefile | 10 | ||||
-rw-r--r-- | runtime/tests/Makefile | 3 | ||||
-rw-r--r-- | runtime/tests/agg/Makefile | 5 | ||||
-rw-r--r-- | runtime/tests/maps/Makefile | 5 | ||||
-rw-r--r-- | runtime/tests/math/Makefile | 5 | ||||
-rw-r--r-- | runtime/tests/pmaps/Makefile | 5 | ||||
-rw-r--r-- | runtime/tests/string/Makefile | 5 | ||||
-rw-r--r-- | runtime/uprobes/Makefile | 16 |
10 files changed, 76 insertions, 0 deletions
diff --git a/runtime/Makefile b/runtime/Makefile new file mode 100644 index 00000000..22d25ff9 --- /dev/null +++ b/runtime/Makefile @@ -0,0 +1,15 @@ +# +# Makefile for SystemTap runtime and example probes +# + +all: + make -w -C stpd + cd probes; ./build + +relayfs: + make -w -C relayfs + +clean: + make -w -C relayfs clean + make -w -C stpd clean + cd probes; ./build clean diff --git a/runtime/bench2/Makefile b/runtime/bench2/Makefile new file mode 100644 index 00000000..ffb2991a --- /dev/null +++ b/runtime/bench2/Makefile @@ -0,0 +1,7 @@ +all: itest + +itest: itest.c + gcc -D_GNU_SOURCE -Wall -Wextra -Wstrict-prototypes -Werror -O3 -o itest itest.c -lpthread + +clean: + /bin/rm -f itest diff --git a/runtime/probes/bench/Makefile b/runtime/probes/bench/Makefile new file mode 100644 index 00000000..9154e3dc --- /dev/null +++ b/runtime/probes/bench/Makefile @@ -0,0 +1,10 @@ +all: ttest itest + +ttest: ttest.c + gcc -Wall -O3 -o ttest ttest.c + +itest: itest.c + gcc -Wall -O3 -o itest itest.c + +clean: + /bin/rm -f itest ttest stpd_cpu* xxx* diff --git a/runtime/tests/Makefile b/runtime/tests/Makefile new file mode 100644 index 00000000..4e744d25 --- /dev/null +++ b/runtime/tests/Makefile @@ -0,0 +1,3 @@ +tests: + tclsh all.tcl + diff --git a/runtime/tests/agg/Makefile b/runtime/tests/agg/Makefile new file mode 100644 index 00000000..c396c132 --- /dev/null +++ b/runtime/tests/agg/Makefile @@ -0,0 +1,5 @@ +default: tests + +tests: + tclsh all.tcl + diff --git a/runtime/tests/maps/Makefile b/runtime/tests/maps/Makefile new file mode 100644 index 00000000..c396c132 --- /dev/null +++ b/runtime/tests/maps/Makefile @@ -0,0 +1,5 @@ +default: tests + +tests: + tclsh all.tcl + diff --git a/runtime/tests/math/Makefile b/runtime/tests/math/Makefile new file mode 100644 index 00000000..c396c132 --- /dev/null +++ b/runtime/tests/math/Makefile @@ -0,0 +1,5 @@ +default: tests + +tests: + tclsh all.tcl + diff --git a/runtime/tests/pmaps/Makefile b/runtime/tests/pmaps/Makefile new file mode 100644 index 00000000..c396c132 --- /dev/null +++ b/runtime/tests/pmaps/Makefile @@ -0,0 +1,5 @@ +default: tests + +tests: + tclsh all.tcl + diff --git a/runtime/tests/string/Makefile b/runtime/tests/string/Makefile new file mode 100644 index 00000000..c396c132 --- /dev/null +++ b/runtime/tests/string/Makefile @@ -0,0 +1,5 @@ +default: tests + +tests: + tclsh all.tcl + diff --git a/runtime/uprobes/Makefile b/runtime/uprobes/Makefile new file mode 100644 index 00000000..40af7aa2 --- /dev/null +++ b/runtime/uprobes/Makefile @@ -0,0 +1,16 @@ +obj-m := uprobes.o +KDIR := /lib/modules/$(shell uname -r)/build +PWD := $(shell pwd) +DEPENDENCIES := $(shell echo uprobes_arch.[ch] uprobes.[ch] uprobes_*.[ch]) +DEPENDENCIES += Makefile $(KDIR)/Module.symvers + +default: + $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules + +# This target is used with "make -q" to see whether a "real" build is needed. +uprobes.ko: $(DEPENDENCIES) + @echo uprobes.ko is not a valid target. See Makefile. + +clean: + rm -f *.mod.c *.ko *.o .*.cmd *~ + rm -rf .tmp_versions |