RTEMS 6.1-rc2
Loading...
Searching...
No Matches
cpuuse.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/*
12 * Copyright (C) 2021 embedded brains GmbH & Co. KG
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
16 * are met:
17 * 1. Redistributions of source code must retain the above copyright
18 * notice, this list of conditions and the following disclaimer.
19 * 2. Redistributions in binary form must reproduce the above copyright
20 * notice, this list of conditions and the following disclaimer in the
21 * documentation and/or other materials provided with the distribution.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 */
35
36/*
37 * This file is part of the RTEMS quality process and was automatically
38 * generated. If you find something that needs to be fixed or
39 * worded better please post a report or patch to an RTEMS mailing list
40 * or raise a bug report:
41 *
42 * https://www.rtems.org/bugs.html
43 *
44 * For information on updating and regenerating please refer to the How-To
45 * section in the Software Requirements Engineering chapter of the
46 * RTEMS Software Engineering manual. The manual is provided as a part of
47 * a release. For development sources please refer to the online
48 * documentation at:
49 *
50 * https://docs.rtems.org
51 */
52
53/* Generated from spec:/rtems/cpuuse/if/header */
54
55#ifndef _RTEMS_CPUUSE_H
56#define _RTEMS_CPUUSE_H
57
58#ifdef __cplusplus
59extern "C" {
60#endif
61
62/* Generated from spec:/rtems/cpuuse/if/group */
63
73/* Generated from spec:/rtems/cpuuse/if/printer */
74
75/* Forward declaration */
76struct rtems_printer;
77
78/* Generated from spec:/rtems/cpuuse/if/cpu-info-report */
79
98int rtems_cpu_info_report( const struct rtems_printer *printer );
99
100/* Generated from spec:/rtems/cpuuse/if/report */
101
123void rtems_cpu_usage_report( void );
124
125/* Generated from spec:/rtems/cpuuse/if/report-with-plugin */
126
148
149/* Generated from spec:/rtems/cpuuse/if/reset */
150
169void rtems_cpu_usage_reset( void );
170
171/* Generated from spec:/rtems/cpuuse/if/top */
172
194void rtems_cpu_usage_top( void );
195
196/* Generated from spec:/rtems/cpuuse/if/top-with-plugin */
197
222void rtems_cpu_usage_top_with_plugin( const struct rtems_printer *printer );
223
224#ifdef __cplusplus
225}
226#endif
227
228#endif /* _RTEMS_CPUUSE_H */
void rtems_cpu_usage_top(void)
Starts an interactive CPU usage reporting using the printk() printer.
Definition: cpuusagetop.c:660
void rtems_cpu_usage_report_with_plugin(const struct rtems_printer *printer)
Reports the CPU usage of each thread using the printer plugin.
void rtems_cpu_usage_reset(void)
Resets the CPU usage of each thread.
Definition: cpuusagereset.c:75
void rtems_cpu_usage_report(void)
Reports the CPU usage of each thread using the printk() printer.
Definition: cpuusagereport.c:140
int rtems_cpu_info_report(const struct rtems_printer *printer)
Reports the CPU information using the printer plugin.
void rtems_cpu_usage_top_with_plugin(const struct rtems_printer *printer)
Starts an interactive CPU usage reporting using the printer plugin.
Definition: printer.h:76