Changeset f2b18d01


Ignore:
Timestamp:
Jun 26, 2020, 1:08:36 PM (15 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
359d12d
Parents:
ec21f13
Message:

First version of tools to view halts

Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel.cfa

    rec21f13 rf2b18d01  
    323323        if(this != mainProcessor) {
    324324                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
    325331                // Lock the RWlock so no-one pushes/pops while we are changing the queue
    326332                uint_fast32_t last_size = ready_mutate_lock();
     
    10191025        #if !defined(__CFA_NO_STATISTICS__)
    10201026                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());
    10221028                }
    10231029        #endif
     
    10271033        #if !defined(__CFA_NO_STATISTICS__)
    10281034                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());
    10301036                }
    10311037        #endif
     
    12211227        void print_halts( processor & this ) {
    12221228                this.print_halts = true;
    1223                 printf("Processor : %d - %s (%p)\n", this.id, this.name, (void*)&this);
    12241229        }
    12251230#endif
Note: See TracChangeset for help on using the changeset viewer.