Ignore:
Timestamp:
May 16, 2018, 4:15:22 PM (4 years ago)
Author:
alain
Message:

Fix few bugs whike debugging the sort multi-thread application.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/mini-libc/stdio.h

    r439 r443  
    402402/***************************************************************************************
    403403 * This debug function displays on the kernel terminal TXT0
    404  * the state of the process VMM identified by the <pid> argument.
     404 * the state of the VMM forthe process <pid>, in cluster <cxy>.
    405405 * It can be called by any thread running in any cluster.
    406406 ***************************************************************************************
     
    408408 * @ return 0 if success / return -1 if illegal argument.
    409409 **************************************************************************************/
    410 int display_vmm( unsigned int  pid );
     410int display_vmm( unsigned int  cxy,
     411                 unsigned int  pid );
    411412
    412413/***************************************************************************************
     
    460461
    461462/*****************************************************************************************
    462  * This debug function is used to activate / desactivate the trace for a thread
    463  * identified by the <trdid> and <pid> arguments.
    464  * It can be called by any other thread in the same process.
    465  *****************************************************************************************
    466  * @ operation  : operation type.
    467  * @ pid        : process identifier.
    468  * @ trdid      : thread identifier.
     463 * This debug function is used to activate / desactivate the context switches trace
     464 * for a core identified by the <cxy> and <lid> arguments.
     465 * It can be called by any thread running in any cluster.
     466 *****************************************************************************************
     467 * @ active     : activate trace if non zero / desactivate if zero.
     468 * @ cxy        : cluster identifier.
     469 * @ lid        : core local index.
    469470 * @ returns O if success / returns -1 if illegal arguments.
    470471 ****************************************************************************************/
    471 int trace( unsigned int operation,
    472            unsigned int pid,
    473            unsigned int trdid );
     472int trace( unsigned int active,
     473           unsigned int cxy,
     474           unsigned int lid );
    474475
    475476
Note: See TracChangeset for help on using the changeset viewer.