Changeset f2b18d01
- Timestamp:
 - Jun 26, 2020, 1:08:36 PM (5 years ago)
 - Branches:
 - ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
 - Children:
 - 359d12d
 - Parents:
 - ec21f13
 - Files:
 - 
      
- 2 added
 - 1 edited
 
- 
          
  libcfa/src/concurrency/kernel.cfa (modified) (4 diffs)
 - 
          
  tools/perf/process_halts.sh (added)
 - 
          
  tools/perf/view_halts.py (added)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
libcfa/src/concurrency/kernel.cfa
rec21f13 rf2b18d01 323 323 if(this != mainProcessor) { 324 324 this->id = doregister((__processor_id_t*)this); 325 #if !defined(__CFA_NO_STATISTICS__) 326 if( this->print_halts ) { 327 __cfaabi_bits_print_safe( STDOUT_FILENO, "Processor : %d - %s (%p)\n", this->id, this->name, (void*)this); 328 } 329 #endif 330 325 331 // Lock the RWlock so no-one pushes/pops while we are changing the queue 326 332 uint_fast32_t last_size = ready_mutate_lock(); … … 1019 1025 #if !defined(__CFA_NO_STATISTICS__) 1020 1026 if(this->print_halts) { 1021 printf("%d - %lld 0\n", this->id, rdtscl());1027 __cfaabi_bits_print_safe( STDOUT_FILENO, "PH:%d - %lld 0\n", this->id, rdtscl()); 1022 1028 } 1023 1029 #endif … … 1027 1033 #if !defined(__CFA_NO_STATISTICS__) 1028 1034 if(this->print_halts) { 1029 printf("%d - %lld 1\n", this->id, rdtscl());1035 __cfaabi_bits_print_safe( STDOUT_FILENO, "PH:%d - %lld 1\n", this->id, rdtscl()); 1030 1036 } 1031 1037 #endif … … 1221 1227 void print_halts( processor & this ) { 1222 1228 this.print_halts = true; 1223 printf("Processor : %d - %s (%p)\n", this.id, this.name, (void*)&this);1224 1229 } 1225 1230 #endif  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.