1
2
3
7
8
9
10
11
12
13
14
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* ... */
#ifndef OPENOCD_TARGET_ESP32_SYSVIEW_H
#define OPENOCD_TARGET_ESP32_SYSVIEW_H
#include <stdint.h>
#include "esp32_apptrace.h"
struct esp32_sysview_cmd_data {
struct esp32_apptrace_cmd_data apptrace;
struct esp32_apptrace_dest data_dests[ESP32_APPTRACE_MAX_CORES_NUM];
bool mcore_format;
uint32_t sv_acc_time_delta;
unsigned int sv_last_core_id;
int sv_trace_running;
...};
struct esp32_apptrace_cmd_ctx;
int esp32_sysview_cmd_init(struct esp32_apptrace_cmd_ctx *cmd_ctx,
struct command_invocation *cmd,
int mode,
bool mcore_format,
const char **argv,
int argc);
int esp32_sysview_cmd_cleanup(struct esp32_apptrace_cmd_ctx *cmd_ctx);
int esp32_sysview_process_data(struct esp32_apptrace_cmd_ctx *ctx,
unsigned int core_id,
uint8_t *data,
uint32_t data_len);
/* ... */
#endif