Ignore:
Timestamp:
2010-07-02T15:42:19Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bbfdf62
Parents:
e3ee9b9
Message:

improve kernel function tracing

  • add support for more generic kernel sources
  • replace attribute((no_instrument_function)) with NO_TRACE macro (shorter and for future compatibility with different compilers)
  • to be on the safe side, do not instrument most of the inline and static functions (plus some specific non-static functions)

collateral code cleanup (no change in functionality)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/sun4v/cpu.h

    re3ee9b9 r7a0359b  
    3737
    3838/** Maximum number of virtual processors. */
    39 #define MAX_NUM_STRANDS         64
     39#define MAX_NUM_STRANDS  64
    4040
    4141/** Maximum number of logical processors in a processor core */
    42 #define MAX_CORE_STRANDS        8
     42#define MAX_CORE_STRANDS  8
    4343
    4444#ifndef __ASM__
     
    5959
    6060typedef struct cpu_arch {
    61         uint64_t id;                    /**< virtual processor ID */
    62         uint32_t clock_frequency;       /**< Processor frequency in Hz. */
    63         uint64_t next_tick_cmpr;        /**< Next clock interrupt should be
    64                                              generated when the TICK register
    65                                              matches this value. */
    66         exec_unit_t *exec_unit;         /**< Physical core. */
    67         unsigned long proposed_nrdy;    /**< Proposed No. of ready threads
    68                                              so that cores are equally balanced. */
     61        uint64_t id;                  /**< virtual processor ID */
     62        uint32_t clock_frequency;     /**< Processor frequency in Hz. */
     63        uint64_t next_tick_cmpr;      /**< Next clock interrupt should be
     64                                           generated when the TICK register
     65                                           matches this value. */
     66        exec_unit_t *exec_unit;       /**< Physical core. */
     67        unsigned long proposed_nrdy;  /**< Proposed No. of ready threads
     68                                           so that cores are equally balanced. */
    6969} cpu_arch_t;
    70 
    71 #endif 
    72 
    73 #ifdef __ASM__
    7470
    7571#endif
Note: See TracChangeset for help on using the changeset viewer.