target: add profiling interface
[fw/openocd] / src / target / target_type.h
index cf81708b8b2ff0eed1c9eb2b1e987f17594b2f90..cf3c864c80f072c326682c898b79466c4110c485 100644 (file)
@@ -265,6 +265,10 @@ struct target_type {
         */
        int (*gdb_fileio_end)(struct target *target, int retcode, int fileio_errno, bool ctrl_c);
 
+       /* do target profiling
+        */
+       int (*profiling)(struct target *target, uint32_t *samples,
+                       uint32_t max_num_samples, uint32_t *num_samples, uint32_t seconds);
 };
 
 #endif /* TARGET_TYPE_H */