jtag: stop using sharp corner of JTAG API
[fw/openocd] / src / target / etb.h
index e015bad19ee3bf8785ac4ba0818de8494ba17c22..dfffb68a242ccc97efe8eba8d209ebdf38092566 100644 (file)
@@ -36,7 +36,7 @@ enum
 
 struct etb
 {
-       etm_context_t *etm_ctx;
+       struct etm_context *etm_ctx;
        struct jtag_tap *tap;
        uint32_t cur_scan_chain;
        struct reg_cache *reg_cache;
@@ -44,6 +44,9 @@ struct etb
        /* ETB parameters */
        uint32_t ram_depth;
        uint32_t ram_width;
+
+       /** how much trace buffer to fill after trigger */
+       unsigned trigger_percent;
 };
 
 struct etb_reg