summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--NEWS4
-rw-r--r--runtime/Makefile15
-rw-r--r--runtime/bench2/Makefile7
-rw-r--r--runtime/probes/bench/Makefile10
-rw-r--r--runtime/tests/Makefile3
-rw-r--r--runtime/tests/agg/Makefile5
-rw-r--r--runtime/tests/maps/Makefile5
-rw-r--r--runtime/tests/math/Makefile5
-rw-r--r--runtime/tests/pmaps/Makefile5
-rw-r--r--runtime/tests/string/Makefile5
-rw-r--r--runtime/uprobes/Makefile16
12 files changed, 80 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index ca2522a1..2b253d9a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,7 +4,6 @@
.#*
autom4te.*
cscope*out
-Makefile
config.h
config.log
config.status
diff --git a/NEWS b/NEWS
index d794cd86..00cfb70c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,9 @@
* What's new in version 0.7
+- Stack backtraces for x86 and x86-64 are generated by a dwarf
+ debuginfo-based unwinder based on the code from <jbeulich@novell.com>.
+ This should give more accurate backtraces.
+
- A probe listing mode is available.
% stap -l vm.*
vm.brk
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