source:
mainline/uspace/lib/c/include/stats.h@
9bfa8c8
| Last change on this file since 9bfa8c8 was d7f7a4a, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 895 bytes | |
| Rev | Line | |
|---|---|---|
| [18b5402c] | 1 | /* |
| [d7f7a4a] | 2 | * SPDX-FileCopyrightText: 2010 Stanislav Kozina |
| [18b5402c] | 3 | * |
| [d7f7a4a] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
| [18b5402c] | 5 | */ |
| 6 | ||
| 7 | /** @addtogroup libc | |
| 8 | * @{ | |
| 9 | */ | |
| 10 | /** @file | |
| [9dae191e] | 11 | */ |
| [18b5402c] | 12 | |
| [4805495] | 13 | #ifndef _LIBC_STATS_H_ |
| 14 | #define _LIBC_STATS_H_ | |
| [18b5402c] | 15 | |
| 16 | #include <task.h> | |
| [e1b6742] | 17 | #include <stdint.h> |
| [3e6a98c5] | 18 | #include <stdbool.h> |
| [8d2dd7f2] | 19 | #include <stddef.h> |
| [c0699467] | 20 | #include <abi/sysinfo.h> |
| [9dae191e] | 21 | |
| [9696b01] | 22 | #define LOAD_UNIT 65536 |
| 23 | ||
| [c3d4bb45] | 24 | extern stats_cpu_t *stats_get_cpus(size_t *); |
| 25 | extern stats_physmem_t *stats_get_physmem(void); | |
| 26 | extern load_t *stats_get_load(size_t *); | |
| [18b5402c] | 27 | |
| [dec16a2] | 28 | extern stats_task_t *stats_get_tasks(size_t *); |
| [e1b6742] | 29 | extern stats_task_t *stats_get_task(task_id_t); |
| 30 | ||
| [dec16a2] | 31 | extern stats_thread_t *stats_get_threads(size_t *); |
| [a6302ae] | 32 | extern stats_ipcc_t *stats_get_ipccs(size_t *); |
| [e1b6742] | 33 | |
| [8eec3c8] | 34 | extern stats_exc_t *stats_get_exceptions(size_t *); |
| 35 | extern stats_exc_t *stats_get_exception(unsigned int); | |
| 36 | ||
| [c3d4bb45] | 37 | extern void stats_print_load_fragment(load_t, unsigned int); |
| [e1b6742] | 38 | extern const char *thread_get_state(state_t); |
| [18b5402c] | 39 | |
| 40 | #endif | |
| 41 | ||
| 42 | /** @} | |
| 43 | */ |
Note:
See TracBrowser
for help on using the repository browser.
