diff --git a/examples/01_one_sample/example b/examples/01_one_sample/example index 1217703..bc04f21 100755 Binary files a/examples/01_one_sample/example and b/examples/01_one_sample/example differ diff --git a/examples/01_one_sample/makefile b/examples/01_one_sample/makefile index 963cdac..ef385f7 100644 --- a/examples/01_one_sample/makefile +++ b/examples/01_one_sample/makefile @@ -48,6 +48,6 @@ profile-linux: echo "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar" echo "Must be run as sudo" $(CC) $(SRC) $(MATH) -o $(OUTPUT) - sudo perf record $(OUTPUT) + sudo perf record ./$(OUTPUT) sudo perf report rm perf.data diff --git a/examples/02_many_samples/example b/examples/02_many_samples/example index bf35391..423e787 100755 Binary files a/examples/02_many_samples/example and b/examples/02_many_samples/example differ diff --git a/examples/02_many_samples/makefile b/examples/02_many_samples/makefile index 963cdac..ef385f7 100644 --- a/examples/02_many_samples/makefile +++ b/examples/02_many_samples/makefile @@ -48,6 +48,6 @@ profile-linux: echo "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar" echo "Must be run as sudo" $(CC) $(SRC) $(MATH) -o $(OUTPUT) - sudo perf record $(OUTPUT) + sudo perf record ./$(OUTPUT) sudo perf report rm perf.data diff --git a/examples/03_gcc_nested_function/example b/examples/03_gcc_nested_function/example index f0affde..84e2593 100755 Binary files a/examples/03_gcc_nested_function/example and b/examples/03_gcc_nested_function/example differ diff --git a/examples/03_gcc_nested_function/makefile b/examples/03_gcc_nested_function/makefile index 5fe6a84..6080f89 100644 --- a/examples/03_gcc_nested_function/makefile +++ b/examples/03_gcc_nested_function/makefile @@ -52,6 +52,6 @@ profile-linux: echo "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar" echo "Must be run as sudo" $(CC) $(SRC) $(MATH) -o $(OUTPUT) - sudo perf record $(OUTPUT) + sudo perf record ./$(OUTPUT) sudo perf report rm perf.data diff --git a/examples/04_sample_from_cdf_simple/example b/examples/04_sample_from_cdf_simple/example index 5d1dcb3..61fd198 100755 Binary files a/examples/04_sample_from_cdf_simple/example and b/examples/04_sample_from_cdf_simple/example differ diff --git a/examples/04_sample_from_cdf_simple/makefile b/examples/04_sample_from_cdf_simple/makefile index ac5766b..16b466d 100644 --- a/examples/04_sample_from_cdf_simple/makefile +++ b/examples/04_sample_from_cdf_simple/makefile @@ -52,6 +52,6 @@ profile-linux: echo "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar" echo "Must be run as sudo" $(CC) $(SRC) $(MATH) -o $(OUTPUT) - sudo perf record $(OUTPUT) + sudo perf record ./$(OUTPUT) sudo perf report rm perf.data diff --git a/examples/05_sample_from_cdf_beta/makefile b/examples/05_sample_from_cdf_beta/makefile index 2580b8c..ab7ceae 100644 --- a/examples/05_sample_from_cdf_beta/makefile +++ b/examples/05_sample_from_cdf_beta/makefile @@ -53,6 +53,6 @@ profile-linux: echo "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar" echo "Must be run as sudo" $(CC) $(SRC) $(MATH) -o $(OUTPUT) - sudo perf record $(OUTPUT) + sudo perf record ./$(OUTPUT) sudo perf report rm perf.data diff --git a/makefile b/makefile new file mode 100644 index 0000000..32c51ad --- /dev/null +++ b/makefile @@ -0,0 +1,8 @@ +MAKEFLAGS += --no-print-directory + +all: + cd examples/01_one_sample && make && echo + cd examples/02_many_samples && make && echo + cd examples/03_gcc_nested_function && make && echo + cd examples/04_sample_from_cdf_simple && make && echo + cd examples/05_sample_from_cdf_beta && make && echo