Changes in / [281806b:cc344be]
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r281806b rcc344be 678 678 CFA_INCDIR 679 679 CFA_PREFIX 680 DOendif 681 DOifskipcompile 680 682 BUILD_CONCURRENCY_FALSE 681 683 BUILD_CONCURRENCY_TRUE … … 3342 3344 3343 3345 3346 DOifskipcompile='ifeq ($(skipcompile),yes) 3347 else' 3348 3349 3350 3351 DOendif='endif' 3352 3353 3354 3344 3355 if test "x$prefix" = "xNONE"; then 3345 3356 cfa_prefix=${ac_default_prefix} -
configure.ac
r281806b rcc344be 130 130 AM_CONDITIONAL([BUILD_NO_LIB], [test "x$build_release$build_debug" = "xnono"]) 131 131 AM_CONDITIONAL([BUILD_CONCURRENCY], [test "x$build_threading" = "xyes"]) 132 133 DOifskipcompile='ifeq ($(skipcompile),yes) 134 else' 135 AC_SUBST([DOifskipcompile]) 136 AM_SUBST_NOTMAKE([DOifskipcompile]) 137 138 DOendif='endif' 139 AC_SUBST([DOendif]) 140 AM_SUBST_NOTMAKE([DOendif]) 132 141 133 142 if test "x$prefix" = "xNONE"; then -
src/benchmark/Makefile.am
r281806b rcc344be 23 23 STATS = ${TOOLSDIR}stat.py 24 24 repeats = 30 25 skipcompile = no 25 26 TIME_FORMAT = "%E" 26 27 PRINT_FORMAT = %20s: #Comments needed for spacing … … 43 44 %.runquiet : 44 45 @+make $(basename $@) 45 @ ./a.out46 @taskset -c 1 ./a.out 46 47 @rm -f a.out 47 48 … … 59 60 @echo -e '\t"githash": "'${githash}'",' 60 61 @echo -e '\t"arch": "' ${arch} '",' 62 @DOifskipcompile@ 61 63 @echo -e '\t"compile": {' 62 64 @+make compile TIME_FORMAT='%e,' PRINT_FORMAT='\t\t\"%s\" :' 63 65 @echo -e '\t\t"dummy" : {}' 64 66 @echo -e '\t},' 67 @DOendif@ 65 68 @echo -e '\t"ctxswitch": {' 66 69 @echo -en '\t\t"coroutine":' -
src/benchmark/Makefile.in
r281806b rcc344be 253 253 STATS = ${TOOLSDIR}stat.py 254 254 repeats = 30 255 skipcompile = no 255 256 TIME_FORMAT = "%E" 256 257 PRINT_FORMAT = %20s: #Comments needed for spacing … … 459 460 %.runquiet : 460 461 @+make $(basename $@) 461 @ ./a.out462 @taskset -c 1 ./a.out 462 463 @rm -f a.out 463 464 … … 473 474 @echo -e '\t"githash": "'${githash}'",' 474 475 @echo -e '\t"arch": "' ${arch} '",' 476 @DOifskipcompile@ 475 477 @echo -e '\t"compile": {' 476 478 @+make compile TIME_FORMAT='%e,' PRINT_FORMAT='\t\t\"%s\" :' 477 479 @echo -e '\t\t"dummy" : {}' 478 480 @echo -e '\t},' 481 @DOendif@ 479 482 @echo -e '\t"ctxswitch": {' 480 483 @echo -en '\t\t"coroutine":' -
src/libcfa/concurrency/preemption.c
r281806b rcc344be 49 49 // Machine specific register name 50 50 #if defined(__x86_64__) 51 #define CFA_REG_IP REG_RIP51 #define CFA_REG_IP gregs[REG_RIP] 52 52 #elif defined(__i386__) 53 #define CFA_REG_IP REG_EIP53 #define CFA_REG_IP gregs[REG_EIP] 54 54 #elif defined(__ARM_ARCH__) 55 #define CFA_REG_IP REG_R1555 #define CFA_REG_IP arm_pc 56 56 #endif 57 57 … … 284 284 // Receives SIGUSR1 signal and causes the current thread to yield 285 285 void sigHandler_ctxSwitch( __CFA_SIGPARMS__ ) { 286 #if defined( __ARM_ARCH ) 287 __cfaabi_dbg_debug_do( last_interrupt = (void *)(cxt->uc_mcontext.arm_pc); ) 288 #else 289 __cfaabi_dbg_debug_do( last_interrupt = (void *)(cxt->uc_mcontext.gregs[CFA_REG_IP]); ) 290 #endif 291 292 // Check if it is safe to preempt here 286 __cfaabi_dbg_debug_do( last_interrupt = (void *)(cxt->uc_mcontext.CFA_REG_IP); ) 287 288 // Check if it is safe to preempt here 293 289 if( !preemption_ready() ) { return; } 294 290
Note: See TracChangeset
for help on using the changeset viewer.