|
Last change
on this file since cd1e3fc0 was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago |
|
Replace some license headers with SPDX identifier
Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.
|
-
Property mode
set to
100644
|
|
File size:
895 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * SPDX-FileCopyrightText: 2010 Stanislav Kozina
|
|---|
| 3 | *
|
|---|
| 4 | * SPDX-License-Identifier: BSD-3-Clause
|
|---|
| 5 | */
|
|---|
| 6 |
|
|---|
| 7 | /** @addtogroup libc
|
|---|
| 8 | * @{
|
|---|
| 9 | */
|
|---|
| 10 | /** @file
|
|---|
| 11 | */
|
|---|
| 12 |
|
|---|
| 13 | #ifndef _LIBC_STATS_H_
|
|---|
| 14 | #define _LIBC_STATS_H_
|
|---|
| 15 |
|
|---|
| 16 | #include <task.h>
|
|---|
| 17 | #include <stdint.h>
|
|---|
| 18 | #include <stdbool.h>
|
|---|
| 19 | #include <stddef.h>
|
|---|
| 20 | #include <abi/sysinfo.h>
|
|---|
| 21 |
|
|---|
| 22 | #define LOAD_UNIT 65536
|
|---|
| 23 |
|
|---|
| 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 *);
|
|---|
| 27 |
|
|---|
| 28 | extern stats_task_t *stats_get_tasks(size_t *);
|
|---|
| 29 | extern stats_task_t *stats_get_task(task_id_t);
|
|---|
| 30 |
|
|---|
| 31 | extern stats_thread_t *stats_get_threads(size_t *);
|
|---|
| 32 | extern stats_ipcc_t *stats_get_ipccs(size_t *);
|
|---|
| 33 |
|
|---|
| 34 | extern stats_exc_t *stats_get_exceptions(size_t *);
|
|---|
| 35 | extern stats_exc_t *stats_get_exception(unsigned int);
|
|---|
| 36 |
|
|---|
| 37 | extern void stats_print_load_fragment(load_t, unsigned int);
|
|---|
| 38 | extern const char *thread_get_state(state_t);
|
|---|
| 39 |
|
|---|
| 40 | #endif
|
|---|
| 41 |
|
|---|
| 42 | /** @}
|
|---|
| 43 | */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.