forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_stream_thread_info.h
More file actions
33 lines (28 loc) · 961 Bytes
/
Copy pathdebug_stream_thread_info.h
File metadata and controls
33 lines (28 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2024 Intel Corporation.
*/
#ifndef __SOC_DEBUG_STREAM_THREAD_INFO_H__
#define __SOC_DEBUG_STREAM_THREAD_INFO_H__
#include <user/debug_stream_slot.h>
/*
* Debug Stream Thread Info record header, including the cpu load for the
* core, and followed by thread_count. Immediately after the header
* follows the thread fields. The thread_count indicates the number of
* thread fields.
*/
struct thread_info_record_hdr {
struct debug_stream_record hdr;
uint8_t load; /* Core's load U(0,8) fixed point value */
uint8_t thread_count;
} __packed;
/*
* Debug Stream Thread Info field for a single thread.
*/
struct thread_info {
uint8_t stack_usage; /* Relative stack usage U(0,8) fixed point value */
uint8_t cpu_usage; /* Relative cpu usage U(0,8) fixed point value */
uint8_t name_len; /* Length of name string */
char name[];
} __packed;
#endif /* __SOC_DEBUG_STREAM_THREAD_INFO_H__ */