X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fetm.h;h=bfa1252b761ca4284da449754785a326c1d0b73e;hb=55f2fe830a541a297d6bf3906c6a28df81acbf05;hp=f5a48c31fe980c798b6e7c245c1a8ed5801a862f;hpb=1429d2c659ab9b84dee673e7697da7eab44a8f90;p=openocd.git diff --git a/src/target/etm.h b/src/target/etm.h index f5a48c31fe..bfa1252b76 100644 --- a/src/target/etm.h +++ b/src/target/etm.h @@ -145,6 +145,7 @@ typedef struct etm_context_s reg_cache_t *reg_cache; /* ETM register cache */ etm_capture_driver_t *capture_driver; /* driver used to access ETM data */ void *capture_driver_priv; /* capture driver private data */ + u32 trigger_percent; /* percent of trace buffer to be filled after the trigger */ trace_status_t capture_status; /* current state of capture run */ etmv1_trace_data_t *trace_data; /* trace data */ u32 trace_depth; /* number of trace cycles to be analyzed, 0 if no trace data available */ @@ -162,6 +163,7 @@ typedef struct etm_context_s u32 last_ptr; /* address of the last data access */ u32 ptr_ok; /* whether last_ptr is valid */ u32 context_id; /* context ID of the code being traced */ + u32 last_instruction; /* index of last instruction executed (to calculate cycle timings) */ } etm_context_t; /* PIPESTAT values */ @@ -207,5 +209,6 @@ extern etm_context_t* etm_create_context(etm_portmode_t portmode, char *capture_ #define ERROR_ETM_INVALID_DRIVER (-1300) #define ERROR_ETM_PORTMODE_NOT_SUPPORTED (-1301) #define ERROR_ETM_CAPTURE_INIT_FAILED (-1302) +#define ERROR_ETM_ANALYSIS_FAILED (-1303) #endif /* ETM_H */