Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/sysinfo/abi.h

    rbd01a4e rd0c82c5  
    3838
    3939/** Number of load components */
    40 #define LOAD_STEPS        3
     40#define LOAD_STEPS  3
    4141
    42 /** Maximum task name size */
     42/** Maximum name sizes */
    4343#define TASK_NAME_BUFLEN  20
     44#define EXC_NAME_BUFLEN   20
    4445
    4546/** Thread states */
     
    6566 */
    6667typedef struct {
    67         unsigned int id;         /**< CPU ID as stored by kernel */
     68        size_t id;               /**< CPU ID as stored by kernel */
    6869        bool active;             /**< CPU is activate */
    6970        uint16_t frequency_mhz;  /**< Frequency in MHz */
    70         uint64_t idle_ticks;     /**< Number of idle kernel quanta */
    71         uint64_t busy_ticks;     /**< Number of busy kernel quanta */
     71        uint64_t idle_cycles;    /**< Number of idle cycles */
     72        uint64_t busy_cycles;    /**< Number of busy cycles */
    7273} stats_cpu_t;
    7374
     
    8990typedef struct {
    9091        uint64_t call_sent;           /**< IPC calls sent */
    91         uint64_t call_recieved;       /**< IPC calls received */
     92        uint64_t call_received;       /**< IPC calls received */
    9293        uint64_t answer_sent;         /**< IPC answers sent */
    93         uint64_t answer_recieved;     /**< IPC answers received */
    94         uint64_t irq_notif_recieved;  /**< IPC IRQ notifications */
     94        uint64_t answer_received;     /**< IPC answers received */
     95        uint64_t irq_notif_received;  /**< IPC IRQ notifications */
    9596        uint64_t forwarded;           /**< IPC messages forwarded */
    9697} stats_ipc_t;
     
    123124} stats_thread_t;
    124125
     126/** Statistics about a single exception
     127 *
     128 */
     129typedef struct {
     130        unsigned int id;             /**< Exception ID */
     131        char desc[EXC_NAME_BUFLEN];  /**< Description */
     132        bool hot;                    /**< Active or inactive exception */
     133        uint64_t cycles;             /**< Number of CPU cycles in the handler */
     134        uint64_t count;              /**< Number of handled exceptions */
     135} stats_exc_t;
     136
    125137/** Load fixed-point value */
    126138typedef uint32_t load_t;
Note: See TracChangeset for help on using the changeset viewer.