File: telemetry.h

package info (click to toggle)
linux 6.19.5-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,759,704 kB
  • sloc: ansic: 27,007,363; asm: 273,421; sh: 151,330; python: 81,278; makefile: 58,557; perl: 34,311; xml: 21,064; cpp: 5,986; yacc: 4,841; lex: 2,901; awk: 1,707; sed: 30; ruby: 25
file content (35 lines) | stat: -rw-r--r-- 789 bytes parent folder | download | duplicates (29)
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
34
35
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
/*
 * This file is provided under a dual BSD/GPLv2 license.  When using or
 * redistributing this file, you may do so under either license.
 *
 * Copyright(c) 2023 Intel Corporation
 *
 * telemetry data in debug windows
 */

#ifndef _SOF_INTEL_TELEMETRY_H
#define _SOF_INTEL_TELEMETRY_H

#include "../ipc4-telemetry.h"

struct xtensa_arch_block {
	u8	soc; /* should be equal to XTENSA_SOC_INTEL_ADSP */
	u16	version;
	u8	toolchain; /* ZEPHYR or XCC */

	u32	pc;
	u32	exccause;
	u32	excvaddr;
	u32	sar;
	u32	ps;
	u32	scompare1;
	u32	ar[XTENSA_CORE_AR_REGS_COUNT];
	u32	lbeg;
	u32	lend;
	u32	lcount;
} __packed;

void sof_ipc4_intel_dump_telemetry_state(struct snd_sof_dev *sdev, u32 flags);

#endif /* _SOF_INTEL_TELEMETRY_H */