Sound Open Firmware
Loading...
Searching...
No Matches
debug_stream_thread_info.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2024 Intel Corporation.
4 */
5
6#ifndef __SOC_DEBUG_STREAM_THREAD_INFO_H__
7#define __SOC_DEBUG_STREAM_THREAD_INFO_H__
8
10
11/*
12 * Debug Stream Thread Info record header, including the cpu load for the
13 * core, and followed by thread_count. Immediately after the header
14 * follows the thread fields. The thread_count indicates the number of
15 * thread fields.
16 */
19 uint8_t load; /* Core's load U(0,8) fixed point value */
20 uint8_t thread_count;
22
23/*
24 * Debug Stream Thread Info field for a single thread.
25 */
27 uint8_t stack_usage; /* Relative stack usage U(0,8) fixed point value */
28 uint8_t cpu_usage; /* Relative cpu usage U(0,8) fixed point value */
29 uint8_t name_len; /* Length of name string */
30 char name[];
31} __packed;
32
33#endif /* __SOC_DEBUG_STREAM_THREAD_INFO_H__ */
#define __packed
Definition ext_manifest.h:43
Definition debug_stream.h:41
Definition debug_stream_thread_info.h:17
uint8_t load
Definition debug_stream_thread_info.h:19
uint8_t thread_count
Definition debug_stream_thread_info.h:20
struct debug_stream_record hdr
Definition debug_stream_thread_info.h:18
Definition debug_stream_thread_info.h:26
uint8_t name_len
Definition debug_stream_thread_info.h:29
uint8_t cpu_usage
Definition debug_stream_thread_info.h:28
uint8_t stack_usage
Definition debug_stream_thread_info.h:27
char name[]
Definition debug_stream_thread_info.h:30