Changeset 135e3f6
- Timestamp:
- 10/01/15 17:29:38 (7 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 01619eb
- Parents:
- 2e9df89
- Location:
- test
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
test/test-format-parallel-hasher.c
r8decff7 r135e3f6 164 164 assert(*magic == 0xabcdef); 165 165 166 if (storage->count == 0) 167 usleep(100000); 166 168 storage->count ++; 167 169 count ++; -
test/test-format-parallel-reporter.c
r8decff7 r135e3f6 164 164 assert(*magic == 0xabcdef); 165 165 166 if (storage->count == 0) 167 usleep(100000); 166 168 storage->count ++; 167 169 count ++; -
test/test-format-parallel-singlethreaded-hasher.c
r8decff7 r135e3f6 154 154 uint32_t *magic = (uint32_t *)global; 155 155 static __thread int count = 0; 156 int a,*b,c= 0;156 int a,*b,c=10; 157 157 158 158 assert(storage != NULL); … … 164 164 assert(*magic == 0xabcdef); 165 165 166 if (storage->count == 0) 167 usleep(100000); 166 168 storage->count ++; 167 169 count ++; … … 176 178 // Do some work to even out the load on cores 177 179 b = &c; 178 for (a = 0; a < 10000000; a++) {180 for (a = 0; a < 50000000; a++) { 179 181 c += a**b; 180 182 } -
test/test-format-parallel-singlethreaded.c
r8decff7 r135e3f6 162 162 assert(*magic == 0xabcdef); 163 163 164 if (storage->count == 0) 165 usleep(100000); 164 166 storage->count ++; 165 167 count ++; -
test/test-format-parallel-stressthreads.c
r8decff7 r135e3f6 130 130 threadcounter->threads ++; 131 131 threadcounter->packets += res->value.sint; 132 printf("%d\n", res->value.sint);132 //printf("%d\n", res->value.sint); 133 133 } 134 134 … … 162 162 assert(*magic == 0xabcdef); 163 163 164 if (storage->count == 0) 165 usleep(100000); 164 166 storage->count ++; 165 167 count ++; -
test/test-format-parallel.c
r8decff7 r135e3f6 162 162 assert(*magic == 0xabcdef); 163 163 164 if (storage->count == 0) 165 usleep(100000); 164 166 storage->count ++; 165 167 count ++;
Note: See TracChangeset
for help on using the changeset viewer.