From 2cb302a27e87d08f62bc6b4839a513a5d988ff15 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Sat, 4 Apr 2020 14:18:44 -0400 Subject: [PATCH] chore: fix tests to use proper wrapped call --- runtime/tests/work/main.c | 4 ++-- runtime/tests/work100k/main.c | 4 ++-- runtime/tests/work10k/main.c | 4 ++-- runtime/tests/work1k/main.c | 4 ++-- runtime/tests/work1m/main.c | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/runtime/tests/work/main.c b/runtime/tests/work/main.c index 437e9f7..bf42a16 100644 --- a/runtime/tests/work/main.c +++ b/runtime/tests/work/main.c @@ -13,9 +13,9 @@ main(void) char *d = malloc(MAX_BUF + 1); int r = read(0, d, MAX_BUF); - // unsigned long long st = __getcycles(), en = 0; + // unsigned long long st = getcycles(), en = 0; // wrk(); - // en = __getcycles(); + // en = getcycles(); // if (r <= 0) printf("%llu\n", en > st ? (en - st)/CPU_CYCS : -1); if (r < 0) diff --git a/runtime/tests/work100k/main.c b/runtime/tests/work100k/main.c index f2aa26a..dd9cfa7 100644 --- a/runtime/tests/work100k/main.c +++ b/runtime/tests/work100k/main.c @@ -11,9 +11,9 @@ main(void) char *d = malloc(MAX_BUF + 1); int r = read(0, d, MAX_BUF); - // unsigned long long st = __getcycles(), en = 0; + // unsigned long long st = getcycles(), en = 0; // wrk(); - // en = __getcycles(); + // en = getcycles(); // if (r <= 0) printf("%llu\n", en > st ? (en - st)/CPU_CYCS : -1); if (r < 0) diff --git a/runtime/tests/work10k/main.c b/runtime/tests/work10k/main.c index b4d2d15..f456ccc 100644 --- a/runtime/tests/work10k/main.c +++ b/runtime/tests/work10k/main.c @@ -11,9 +11,9 @@ main(void) char *d = malloc(MAX_BUF + 1); int r = read(0, d, MAX_BUF); - // unsigned long long st = __getcycles(), en = 0; + // unsigned long long st = getcycles(), en = 0; // wrk(); - // en = __getcycles(); + // en = getcycles(); // if (r <= 0) printf("%llu\n", en > st ? (en - st)/CPU_CYCS : -1); if (r < 0) diff --git a/runtime/tests/work1k/main.c b/runtime/tests/work1k/main.c index aa6fb7f..1c76d4d 100644 --- a/runtime/tests/work1k/main.c +++ b/runtime/tests/work1k/main.c @@ -11,9 +11,9 @@ main(void) char *d = malloc(MAX_BUF + 1); int r = read(0, d, MAX_BUF); - // unsigned long long st = __getcycles(), en = 0; + // unsigned long long st = getcycles(), en = 0; // wrk(); - // en = __getcycles(); + // en = getcycles(); // if (r <= 0) printf("%llu\n", en > st ? (en - st)/CPU_CYCS : -1); if (r < 0) diff --git a/runtime/tests/work1m/main.c b/runtime/tests/work1m/main.c index 39ba644..0c40471 100644 --- a/runtime/tests/work1m/main.c +++ b/runtime/tests/work1m/main.c @@ -11,9 +11,9 @@ main(void) char *d = malloc(MAX_BUF + 1); int r = read(0, d, MAX_BUF); - // unsigned long long st = __getcycles(), en = 0; + // unsigned long long st = getcycles(), en = 0; // wrk(); - // en = __getcycles(); + // en = getcycles(); // if (r <= 0) printf("%llu\n", en > st ? (en - st)/CPU_CYCS : -1); if (r < 0)