Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
coredump.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>

Go to the source code of this file.

Data Structures

struct  coredump_cmd_copy_arg
 Coredump copy command (COREDUMP_CMD_COPY_STORED_DUMP) argument definition. More...
 

Macros

#define COREDUMP_BEGIN_STR   "BEGIN#"
 
#define COREDUMP_END_STR   "END#"
 
#define COREDUMP_ERROR_STR   "ERROR CANNOT DUMP#"
 
#define COREDUMP_PREFIX_STR   "#CD:"
 

Enumerations

enum  coredump_query_id { COREDUMP_QUERY_GET_ERROR , COREDUMP_QUERY_HAS_STORED_DUMP , COREDUMP_QUERY_GET_STORED_DUMP_SIZE , COREDUMP_QUERY_MAX }
 Query ID. More...
 
enum  coredump_cmd_id {
  COREDUMP_CMD_CLEAR_ERROR , COREDUMP_CMD_VERIFY_STORED_DUMP , COREDUMP_CMD_ERASE_STORED_DUMP , COREDUMP_CMD_COPY_STORED_DUMP ,
  COREDUMP_CMD_INVALIDATE_STORED_DUMP , COREDUMP_CMD_MAX
}
 Command ID. More...
 

Functions

static void coredump (unsigned int reason, const struct arch_esf *esf, struct k_thread *thread)
 Perform coredump.
 
static void coredump_memory_dump (uintptr_t start_addr, uintptr_t end_addr)
 Dump memory region.
 
static void coredump_buffer_output (uint8_t *buf, size_t buflen)
 Output the buffer via coredump.
 
static int coredump_query (enum coredump_query_id query_id, void *arg)
 Perform query on coredump subsystem.
 
static int coredump_cmd (enum coredump_cmd_id query_id, void *arg)
 Perform command on coredump subsystem.
 

Macro Definition Documentation

◆ COREDUMP_BEGIN_STR

#define COREDUMP_BEGIN_STR   "BEGIN#"

◆ COREDUMP_END_STR

#define COREDUMP_END_STR   "END#"

◆ COREDUMP_ERROR_STR

#define COREDUMP_ERROR_STR   "ERROR CANNOT DUMP#"

◆ COREDUMP_PREFIX_STR

#define COREDUMP_PREFIX_STR   "#CD:"