OpenOCD
esp32_sysview.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * ESP32 sysview tracing module *
5  * Copyright (C) 2020 Espressif Systems Ltd. *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_TARGET_ESP32_SYSVIEW_H
9 #define OPENOCD_TARGET_ESP32_SYSVIEW_H
10 
11 #include <stdint.h>
12 #include "esp32_apptrace.h"
13 
15  /* Should be the first field. Generic apptrace command handling code accesses it */
20  unsigned int sv_last_core_id;
22 };
23 
25 
27  struct command_invocation *cmd,
28  int mode,
29  bool mcore_format,
30  const char **argv,
31  int argc);
34  unsigned int core_id,
35  uint8_t *data,
36  uint32_t data_len);
37 
38 #endif /* OPENOCD_TARGET_ESP32_SYSVIEW_H */
enum arm_mode mode
Definition: armv4_5.c:277
#define ESP32_APPTRACE_MAX_CORES_NUM
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)
Definition: esp32_sysview.c:33
int esp32_sysview_process_data(struct esp32_apptrace_cmd_ctx *ctx, unsigned int core_id, uint8_t *data, uint32_t data_len)
int esp32_sysview_cmd_cleanup(struct esp32_apptrace_cmd_ctx *cmd_ctx)
When run_command is called, a new instance will be created on the stack, filled with the proper value...
Definition: command.h:76
unsigned int sv_last_core_id
Definition: esp32_sysview.h:20
struct esp32_apptrace_cmd_data apptrace
Definition: esp32_sysview.h:16
struct esp32_apptrace_dest data_dests[ESP32_APPTRACE_MAX_CORES_NUM]
Definition: esp32_sysview.h:17
uint8_t cmd
Definition: vdebug.c:1