| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
Coredump APIs. More...
Functions | |
| void | coredump (unsigned int reason, const z_arch_esf_t *esf, struct k_thread *thread) | 
| Perform coredump.  More... | |
| void | coredump_memory_dump (uintptr_t start_addr, uintptr_t end_addr) | 
| Dump memory region.  More... | |
| void | coredump_buffer_output (uint8_t *buf, size_t buflen) | 
| Output the buffer via coredump.  More... | |
| int | coredump_query (enum coredump_query_id query_id, void *arg) | 
| Perform query on coredump subsystem.  More... | |
| int | coredump_cmd (enum coredump_cmd_id query_id, void *arg) | 
| Perform command on coredump subsystem.  More... | |
Coredump APIs.
#include <include/zephyr/debug/coredump.h>
Perform coredump.
Normally, this is called inside z_fatal_error() to generate coredump when a fatal error is encountered. This can also be called on demand whenever a coredump is desired.
| reason | Reason for the fatal error | 
| esf | Exception context | 
| thread | Thread information to dump | 
#include <include/zephyr/debug/coredump.h>
Output the buffer via coredump.
This outputs the buffer of byte array to the coredump backend. For example, this can be called to output the coredump section containing registers, or a section for memory dump.
| buf | Buffer to be send to coredump output | 
| buflen | Buffer length | 
| int coredump_cmd | ( | enum coredump_cmd_id | cmd_id, | 
| void * | arg | ||
| ) | 
#include <include/zephyr/debug/coredump.h>
Perform command on coredump subsystem.
Perform certain on coredump subsystem, for example, output the stored coredump via logging.
| [in] | cmd_id | Command ID | 
| [in,out] | arg | Pointer to argument for exchanging information | 
#include <include/zephyr/debug/coredump.h>
Dump memory region.
| start_addr | Start address of memory region to be dumped | 
| end_addr | End address of memory region to be dumped | 
| int coredump_query | ( | enum coredump_query_id | query_id, | 
| void * | arg | ||
| ) | 
#include <include/zephyr/debug/coredump.h>
Perform query on coredump subsystem.
Query the coredump subsystem for information, for example, if there is an error.
| [in] | query_id | Query ID | 
| [in,out] | arg | Pointer to argument for exchanging information |