From f8a585e7e1a4b81c468d7bfee30c141681b7ab7f Mon Sep 17 00:00:00 2001 From: compudj Date: Tue, 8 Apr 2008 03:58:43 +0000 Subject: [PATCH] update git-svn-id: http://ltt.polymtl.ca/svn@2866 04897980-b3bd-0310-b5e0-8ef037075253 --- markers-test/test-mark-speed-edit.c | 9 ++++++--- markers-test/test-mark-speed-empty.c | 9 ++++++--- markers-test/test-mark-speed-local.c | 9 ++++++--- markers-test/test-mark-speed-opt.c | 9 ++++++--- markers-test/test-mark-speed.c | 9 ++++++--- 5 files changed, 30 insertions(+), 15 deletions(-) diff --git a/markers-test/test-mark-speed-edit.c b/markers-test/test-mark-speed-edit.c index 3c763e58..d7c70feb 100644 --- a/markers-test/test-mark-speed-edit.c +++ b/markers-test/test-mark-speed-edit.c @@ -63,15 +63,18 @@ static void noinline test2(const struct marker *mdata, struct proc_dir_entry *pentry = NULL; char temp0[8192]; -int temp __cacheline_aligned = 10; -char temp2[8192]; +int temp[8192]; +char temp5[8192]; static inline void test(unsigned long arg, unsigned long arg2) { #ifdef CACHEFLUSH wbinvd(); #endif - temp = (temp + 60) << 10; + temp[2] = (temp[0] + 60) << 10; + temp[3] = (temp[2] + 60) << 10; + temp[4] = (temp[3] + 60) << 10; + temp[0] = (temp[4] + 60) << 10; //asm volatile (""); //__my_trace_mark(1, kernel_debug_test, NULL, "%d %d %ld %ld", 2, current->pid, arg, arg2); barrier(); diff --git a/markers-test/test-mark-speed-empty.c b/markers-test/test-mark-speed-empty.c index 296ba88c..eecef217 100644 --- a/markers-test/test-mark-speed-empty.c +++ b/markers-test/test-mark-speed-empty.c @@ -53,15 +53,18 @@ static void noinline test2(const struct marker *mdata, struct proc_dir_entry *pentry = NULL; char temp0[8192]; -int temp __cacheline_aligned = 10; -char temp2[8192]; +int temp[8192]; +char temp5[8192]; static inline void test(unsigned long arg, unsigned long arg2) { #ifdef CACHEFLUSH wbinvd(); #endif - temp = (temp + 60) << 10; + temp[2] = (temp[0] + 60) << 10; + temp[3] = (temp[2] + 60) << 10; + temp[4] = (temp[3] + 60) << 10; + temp[0] = (temp[4] + 60) << 10; barrier(); asm (""); barrier(); diff --git a/markers-test/test-mark-speed-local.c b/markers-test/test-mark-speed-local.c index de219ccb..295a4abe 100644 --- a/markers-test/test-mark-speed-local.c +++ b/markers-test/test-mark-speed-local.c @@ -62,15 +62,18 @@ static void noinline test2(const struct marker *mdata, struct proc_dir_entry *pentry = NULL; char temp0[8192]; -int temp __cacheline_aligned = 10; -char temp2[8192]; +int temp[8192]; +char temp5[8192]; static inline void test(unsigned long arg, unsigned long arg2) { #ifdef CACHEFLUSH wbinvd(); #endif - temp = (temp + 60) << 10; + temp[2] = (temp[0] + 60) << 10; + temp[3] = (temp[2] + 60) << 10; + temp[4] = (temp[3] + 60) << 10; + temp[0] = (temp[4] + 60) << 10; //asm volatile (""); //__my_trace_mark(1, kernel_debug_test, NULL, "%d %d %ld %ld", 2, current->pid, arg, arg2); barrier(); diff --git a/markers-test/test-mark-speed-opt.c b/markers-test/test-mark-speed-opt.c index 884d5554..0850b04c 100644 --- a/markers-test/test-mark-speed-opt.c +++ b/markers-test/test-mark-speed-opt.c @@ -52,15 +52,18 @@ static void noinline test2(const struct marker *mdata, struct proc_dir_entry *pentry = NULL; char temp0[8192]; -int temp __cacheline_aligned = 10; -char temp2[8192]; +int temp[8192]; +char temp5[8192]; static inline void test(unsigned long arg, unsigned long arg2) { #ifdef CACHEFLUSH wbinvd(); #endif - temp = (temp + 60) << 10; + temp[2] = (temp[0] + 60) << 10; + temp[3] = (temp[2] + 60) << 10; + temp[4] = (temp[3] + 60) << 10; + temp[0] = (temp[4] + 60) << 10; //asm volatile (""); //__my_trace_mark(1, kernel_debug_test, NULL, "%d %d %ld %ld", 2, current->pid, arg, arg2); barrier(); diff --git a/markers-test/test-mark-speed.c b/markers-test/test-mark-speed.c index dcea38e0..00ca62c1 100644 --- a/markers-test/test-mark-speed.c +++ b/markers-test/test-mark-speed.c @@ -53,15 +53,18 @@ static void noinline test2(const struct marker *mdata, struct proc_dir_entry *pentry = NULL; char temp0[8192]; -int temp __cacheline_aligned = 10; -char temp2[8192]; +int temp[8192]; +char temp5[8192]; static inline void test(unsigned long arg, unsigned long arg2) { #ifdef CACHEFLUSH wbinvd(); #endif - temp = (temp + 60) << 10; + temp[2] = (temp[0] + 60) << 10; + temp[3] = (temp[2] + 60) << 10; + temp[4] = (temp[3] + 60) << 10; + temp[0] = (temp[4] + 60) << 10; //asm volatile (""); barrier(); __my_trace_mark(1, kernel_debug_test, NULL, "%d %d %ld %ld", 2, current->pid, arg, arg2); -- 2.34.1