update
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 8 Apr 2008 03:58:43 +0000 (03:58 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 8 Apr 2008 03:58:43 +0000 (03:58 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2866 04897980-b3bd-0310-b5e0-8ef037075253

markers-test/test-mark-speed-edit.c
markers-test/test-mark-speed-empty.c
markers-test/test-mark-speed-local.c
markers-test/test-mark-speed-opt.c
markers-test/test-mark-speed.c

index 3c763e582b34195bf24ba0edd63cf6e0fb69a460..d7c70feb5d0cfc3c48f16c84817d7c88a424b35d 100644 (file)
@@ -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();
index 296ba88cef482925d94f9a23452fa218810981b7..eecef2178e840ff8f432836cf625cba988dbebbd 100644 (file)
@@ -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();
index de219ccbf2dc2879161d0c21ed30c6af4a79690f..295a4abe00e9f76490ccf11e40242821615e0883 100644 (file)
@@ -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();
index 884d5554af497bce4d3d1427a6f8a7bf9e55b2dd..0850b04c428dff13689c90cb35c4819a3552740b 100644 (file)
@@ -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();
index dcea38e0f5fd1b9f8dc396db79d4ae33f37da659..00ca62c177877a9de8fb5f42cf7c5336a769be51 100644 (file)
@@ -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);
This page took 0.026126 seconds and 4 git commands to generate.