7#ifndef ZEPHYR_INCLUDE_DEBUG_COREDUMP_H_
8#define ZEPHYR_INCLUDE_DEBUG_COREDUMP_H_
61#ifdef CONFIG_DEBUG_COREDUMP
67#define COREDUMP_HDR_VER 1
69#define COREDUMP_ARCH_HDR_ID 'A'
71#define COREDUMP_MEM_HDR_ID 'M'
72#define COREDUMP_MEM_HDR_VER 1
75enum coredump_tgt_code {
76 COREDUMP_TGT_UNKNOWN = 0,
79 COREDUMP_TGT_ARM_CORTEX_M,
83struct coredump_hdr_t {
103struct coredump_arch_hdr_t {
115struct coredump_mem_hdr_t {
129void coredump(
unsigned int reason,
const z_arch_esf_t *esf,
139void coredump(
unsigned int reason,
const z_arch_esf_t *esf,
static struct k_thread thread[2]
Definition: atomic.c:22
coredump_query_id
Definition: coredump.h:11
@ COREDUMP_QUERY_HAS_STORED_DUMP
Definition: coredump.h:25
@ COREDUMP_QUERY_MAX
Definition: coredump.h:27
@ COREDUMP_QUERY_GET_ERROR
Definition: coredump.h:15
coredump_cmd_id
Definition: coredump.h:31
@ COREDUMP_CMD_MAX
Definition: coredump.h:58
@ COREDUMP_CMD_ERASE_STORED_DUMP
Definition: coredump.h:56
@ COREDUMP_CMD_VERIFY_STORED_DUMP
Definition: coredump.h:47
@ COREDUMP_CMD_CLEAR_ERROR
Definition: coredump.h:37
void coredump_buffer_output(uint8_t *buf, size_t buflen)
Output the buffer via coredump.
Definition: coredump.h:148
void coredump_memory_dump(uintptr_t start_addr, uintptr_t end_addr)
Dump memory region.
Definition: coredump.h:144
int coredump_cmd(enum coredump_cmd_id query_id, void *arg)
Perform command on coredump subsystem.
Definition: coredump.h:157
void coredump(unsigned int reason, const z_arch_esf_t *esf, struct k_thread *thread)
Perform coredump.
Definition: coredump.h:139
int coredump_query(enum coredump_query_id query_id, void *arg)
Perform query on coredump subsystem.
Definition: coredump.h:152
#define ENOTSUP
Definition: errno.h:115
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__UINTPTR_TYPE__ uintptr_t
Definition: stdint.h:75
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
static uint32_t flag[3]
Definition: thread_competition.c:23