Changeset 1449d83
- Timestamp:
- Jan 31, 2018, 11:33:01 AM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 0394c31
- Parents:
- 633a642
- Location:
- src/tests/preempt_longrun
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/Makefile.am
r633a642 r1449d83 19 19 preempt=1_000ul 20 20 21 REPEAT = ${abs_top_srcdir}/tools/repeat -s21 REPEAT = ${abs_top_srcdir}/tools/repeat 22 22 23 23 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -debug -O2 -DPREEMPTION_RATE=${preempt} … … 37 37 ${AM_V_GEN}${CC} ${CFLAGS} ${<} -o ${@} 38 38 39 %.run : % 40 @ time ${REPEAT} $(repeats) timeout ${max_time} ./${<}39 %.run : % ${REPEAT} 40 @ time ${REPEAT} -r out.log -i -s $(repeats) timeout ${max_time} ./${<} 41 41 @ rm ${<} 42 42 @ echo -e "${<}: SUCCESS\n" 43 44 ${REPEAT}: 45 @+make -C ${abs_top_srcdir}/tools/ -
src/tests/preempt_longrun/Makefile.in
r633a642 r1449d83 451 451 max_time = 600 452 452 preempt = 1_000ul 453 REPEAT = ${abs_top_srcdir}/tools/repeat -s453 REPEAT = ${abs_top_srcdir}/tools/repeat 454 454 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -debug -O2 -DPREEMPTION_RATE=${preempt} 455 455 TESTS = block create disjoint enter enter3 processor stack wait yield … … 874 874 ${AM_V_GEN}${CC} ${CFLAGS} ${<} -o ${@} 875 875 876 %.run : % 877 @ time ${REPEAT} $(repeats) timeout ${max_time} ./${<}876 %.run : % ${REPEAT} 877 @ time ${REPEAT} -r out.log -i -s $(repeats) timeout ${max_time} ./${<} 878 878 @ rm ${<} 879 879 @ echo -e "${<}: SUCCESS\n" 880 881 ${REPEAT}: 882 @+make -C ${abs_top_srcdir}/tools/ 880 883 881 884 # Tell versions [3.59,3.63) of GNU make to not export all variables. -
src/tests/preempt_longrun/block.c
r633a642 r1449d83 1 ../ sched-int-block.c1 ../concurrent/signal/block.c -
src/tests/preempt_longrun/create.c
r633a642 r1449d83 14 14 thread worker_t {}; 15 15 16 void main(worker_t *this) {}16 void main(worker_t & this) {} 17 17 18 18 int main(int argc, char* argv[]) { -
src/tests/preempt_longrun/disjoint.c
r633a642 r1449d83 1 ../ sched-int-disjoint.c1 ../concurrent/signal/disjoint.c -
src/tests/preempt_longrun/enter.c
r633a642 r1449d83 17 17 mon_t mon; 18 18 19 void foo( mon_t *mutex this ) {}19 void foo( mon_t & mutex this ) {} 20 20 21 21 thread worker_t {}; 22 22 23 void main( worker_t *this ) {23 void main( worker_t & this ) { 24 24 for( unsigned long i = 0; i < N; i++ ) { 25 foo( &mon );25 foo( mon ); 26 26 } 27 27 } -
src/tests/preempt_longrun/enter3.c
r633a642 r1449d83 17 17 mon_t mon1, mon2, mon3; 18 18 19 void foo( mon_t * mutex a, mon_t * mutex b, mon_t *mutex c ) {}19 void foo( mon_t & mutex a, mon_t & mutex b, mon_t & mutex c ) {} 20 20 21 21 thread worker_t {}; 22 22 23 void main( worker_t *this ) {23 void main( worker_t & this ) { 24 24 for( unsigned long i = 0; i < N; i++ ) { 25 foo( &mon1, &mon2, &mon3 );25 foo( mon1, mon2, mon3 ); 26 26 } 27 27 } -
src/tests/preempt_longrun/processor.c
r633a642 r1449d83 14 14 thread worker_t {}; 15 15 16 void main(worker_t *this) {}16 void main(worker_t & this) {} 17 17 18 18 int main(int argc, char* argv[]) { -
src/tests/preempt_longrun/stack.c
r633a642 r1449d83 14 14 thread worker_t {}; 15 15 16 void main(worker_t *this) {16 void main(worker_t & this) { 17 17 volatile long long p = 5_021_609ul; 18 18 volatile long long a = 326_417ul; -
src/tests/preempt_longrun/wait.c
r633a642 r1449d83 1 ../ sched-int-wait.c1 ../concurrent/signal/wait.c -
src/tests/preempt_longrun/yield.c
r633a642 r1449d83 14 14 thread worker_t {}; 15 15 16 void main(worker_t *this) {16 void main(worker_t & this) { 17 17 for(int i = 0; i < N; i++) { 18 18 yield();
Note: See TracChangeset
for help on using the changeset viewer.