Changeset 80bfb601 in mainline for kernel/generic/include/sysinfo/abi.h
- Timestamp:
- 2010-04-18T09:57:19Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d869398
- Parents:
- fce3536
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/sysinfo/abi.h
rfce3536 r80bfb601 31 31 */ 32 32 /** @file 33 * Data structures passed between kernel sysinfo and user space. 33 34 */ 34 35 … … 36 37 #define KERN_ABI_H_ 37 38 39 /** Number of load components */ 38 40 #define LOAD_STEPS 3 41 42 /** Maximum task name size */ 39 43 #define TASK_NAME_BUFLEN 20 40 44 45 /** Statistics about a single CPU 46 * 47 */ 41 48 typedef struct { 42 unsigned int id; 43 uint16_t frequency_mhz; 44 uint64_t idle_ticks; 45 uint64_t busy_ticks; 49 unsigned int id; /**< CPU ID as stored by kernel */ 50 uint16_t frequency_mhz; /**< Frequency in MHz */ 51 uint64_t idle_ticks; /**< Number of idle kernel quanta */ 52 uint64_t busy_ticks; /**< Number of busy kernel quanta */ 46 53 } stats_cpu_t; 47 54 55 /** Physical memory statistics 56 * 57 */ 48 58 typedef struct { 49 uint64_t total; 50 uint64_t unavail; 51 uint64_t used; 52 uint64_t free; 59 uint64_t total; /**< Total physical memory (bytes) */ 60 uint64_t unavail; /**< Unavailable (reserved, firmware) bytes */ 61 uint64_t used; /**< Allocated physical memory (bytes) */ 62 uint64_t free; /**< Free physical memory (bytes) */ 53 63 } stats_physmem_t; 54 64 65 /** IPC statistics 66 * 67 * Associated with a task. 68 * 69 */ 55 70 typedef struct { 56 uint64_t call_sent; 57 uint64_t call_recieved; 58 uint64_t answer_sent; 59 uint64_t answer_recieved; 60 uint64_t irq_notif_recieved; 61 uint64_t forwarded; 71 uint64_t call_sent; /**< IPC calls sent */ 72 uint64_t call_recieved; /**< IPC calls received */ 73 uint64_t answer_sent; /**< IPC answers sent */ 74 uint64_t answer_recieved; /**< IPC answers received */ 75 uint64_t irq_notif_recieved; /**< IPC IRQ notifications */ 76 uint64_t forwarded; /**< IPC messages forwarded */ 62 77 } stats_ipc_t; 63 78 79 /** Statistics about a single task 80 * 81 */ 64 82 typedef struct { 65 char name[TASK_NAME_BUFLEN]; 66 size_t virtmem; 67 size_t threads; 68 uint64_t ucycles; 69 uint64_t kcycles; 70 stats_ipc_t ipc_info; 83 char name[TASK_NAME_BUFLEN]; /**< Task name (in kernel) */ 84 size_t virtmem; /**< Size of VAS (bytes) */ 85 size_t threads; /**< Number of threads */ 86 uint64_t ucycles; /**< Number of CPU cycles in user space */ 87 uint64_t kcycles; /**< Number of CPU cycles in kernel */ 88 stats_ipc_t ipc_info; /**< IPC statistics */ 71 89 } stats_task_t; 72 90 91 /** Load fixed-point value */ 73 92 typedef uint32_t load_t; 74 93
Note:
See TracChangeset
for help on using the changeset viewer.