aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNamhoon Kim <namhoonk@cs.unc.edu>2016-04-30 18:15:07 -0400
committerNamhoon Kim <namhoonk@cs.unc.edu>2016-04-30 18:15:07 -0400
commitf0e07f0e5cba027377c57e1aa25101023640c62b (patch)
treef84ae3f7fc2241ef812b4f518ba3091f118a903f
parentafb6fe59fe08b221d1b0372655f7825fdb07559d (diff)
fix benchmark syscall
-rw-r--r--litmus/cache_proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/litmus/cache_proc.c b/litmus/cache_proc.c
index 4de9d3a79e99..db65c0f7c3c8 100644
--- a/litmus/cache_proc.c
+++ b/litmus/cache_proc.c
@@ -1007,7 +1007,7 @@ asmlinkage long sys_run_test(int type, int size, cacheline_t *src, cacheline_t *
1007 t1 = litmus_clock(); 1007 t1 = litmus_clock();
1008 for (i = 0; i < numlines; i++) { 1008 for (i = 0; i < numlines; i++) {
1009 next = src[next].line[0]; 1009 next = src[next].line[0];
1010 for (j = 0; j < INTS_IN_CACHELINE; j++) { 1010 for (j = 1; j < INTS_IN_CACHELINE; j++) {
1011 dst[next].line[j] = src[next].line[j]; // read 1011 dst[next].line[j] = src[next].line[j]; // read
1012 //src[next].line[j] = dst[next].line[j]; // write 1012 //src[next].line[j] = dst[next].line[j]; // write
1013 } 1013 }
@@ -1025,7 +1025,7 @@ asmlinkage long sys_run_test(int type, int size, cacheline_t *src, cacheline_t *
1025 t1 = litmus_clock(); 1025 t1 = litmus_clock();
1026 for (i = 0; i < numlines; i++) { 1026 for (i = 0; i < numlines; i++) {
1027 next = src[next].line[0]; 1027 next = src[next].line[0];
1028 for (j = 0; j < INTS_IN_CACHELINE; j++) { 1028 for (j = 1; j < INTS_IN_CACHELINE; j++) {
1029 dst[next].line[j] = src[next].line[j]; //read 1029 dst[next].line[j] = src[next].line[j]; //read
1030 //src[next].line[j] = dst[next].line[j]; //write 1030 //src[next].line[j] = dst[next].line[j]; //write
1031 } 1031 }