target/cortex_m: reduce duplication in profiling
[fw/openocd] / src / target / target.h
index c69aa934a60898dd2e7c0a393824bb1bf5d4163f..9589b535ad2a9d6500090917e830600c9baf9c79 100644 (file)
@@ -748,6 +748,9 @@ void target_handle_md_output(struct command_invocation *cmd,
        struct target *target, target_addr_t address, unsigned size,
        unsigned count, const uint8_t *buffer);
 
+int target_profiling_default(struct target *target, uint32_t *samples, uint32_t
+               max_num_samples, uint32_t *num_samples, uint32_t seconds);
+
 #define ERROR_TARGET_INVALID   (-300)
 #define ERROR_TARGET_INIT_FAILED (-301)
 #define ERROR_TARGET_TIMEOUT   (-302)