From 52e515222596ee74bcb3fe921ede30c76fb17d9f Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 26 Jun 2011 19:51:14 -0400 Subject: [PATCH] regressions: Additional header files, rename to throughput. --- regressions/ck_brlock/benchmark/throughput.c | 1 + regressions/ck_rwlock/benchmark/Makefile | 5 ++++- regressions/ck_rwlock/{validate => benchmark}/throughput.c | 1 + regressions/ck_rwlock/validate/Makefile | 5 +---- 4 files changed, 7 insertions(+), 5 deletions(-) rename regressions/ck_rwlock/{validate => benchmark}/throughput.c (99%) diff --git a/regressions/ck_brlock/benchmark/throughput.c b/regressions/ck_brlock/benchmark/throughput.c index 954e2ee..22be1d2 100644 --- a/regressions/ck_brlock/benchmark/throughput.c +++ b/regressions/ck_brlock/benchmark/throughput.c @@ -30,6 +30,7 @@ #include #include #include +#include #include "../../common.h" diff --git a/regressions/ck_rwlock/benchmark/Makefile b/regressions/ck_rwlock/benchmark/Makefile index 82140f0..59c0b53 100644 --- a/regressions/ck_rwlock/benchmark/Makefile +++ b/regressions/ck_rwlock/benchmark/Makefile @@ -1,12 +1,15 @@ .PHONY: clean distribution -OBJECTS=latency +OBJECTS=latency throughput all: $(OBJECTS) latency: latency.c ../../../include/ck_rwlock.h $(CC) $(CFLAGS) -o latency latency.c +throughput: throughput.c ../../../include/ck_rwlock.h + $(CC) $(CFLAGS) -o throughput throughput.c + clean: rm -rf *.dSYM *~ *.o $(OBJECTS) diff --git a/regressions/ck_rwlock/validate/throughput.c b/regressions/ck_rwlock/benchmark/throughput.c similarity index 99% rename from regressions/ck_rwlock/validate/throughput.c rename to regressions/ck_rwlock/benchmark/throughput.c index 4ddd80a..9cc09c7 100644 --- a/regressions/ck_rwlock/validate/throughput.c +++ b/regressions/ck_rwlock/benchmark/throughput.c @@ -30,6 +30,7 @@ #include #include #include +#include #include "../../common.h" diff --git a/regressions/ck_rwlock/validate/Makefile b/regressions/ck_rwlock/validate/Makefile index e66fa4a..65105c9 100644 --- a/regressions/ck_rwlock/validate/Makefile +++ b/regressions/ck_rwlock/validate/Makefile @@ -1,15 +1,12 @@ .PHONY: clean distribution -OBJECTS=validate throughput +OBJECTS=validate all: $(OBJECTS) validate: validate.c ../../../include/ck_rwlock.h $(CC) $(CFLAGS) -o validate validate.c -throughput: throughput.c ../../../include/ck_rwlock.h - $(CC) $(CFLAGS) -o throughput throughput.c - clean: rm -rf *.dSYM *~ *.o $(OBJECTS)