diff options
author | Hsiangkai Wang <hsiangkai@gmail.com> | 2013-06-26 17:09:40 +0800 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2013-09-13 19:37:07 +0000 |
commit | 2803fa3822d4aaa4803b103a035fe98782a8adc9 (patch) | |
tree | d8e69ad55506ef667353e9c1f964aa00685a7eec /src/target/target_type.h | |
parent | cf39210725cff5db40c992fb753588b2d3e47109 (diff) | |
download | riscv-openocd-2803fa3822d4aaa4803b103a035fe98782a8adc9.zip riscv-openocd-2803fa3822d4aaa4803b103a035fe98782a8adc9.tar.gz riscv-openocd-2803fa3822d4aaa4803b103a035fe98782a8adc9.tar.bz2 |
target: add profiling interface
Profiling could be target-specific. Add .profiling interface
to target_type.
Change-Id: Ic0eea9db742971db1350a474fbbb5ed24565922b
Signed-off-by: Hsiangkai Wang <hsiangkai@gmail.com>
Reviewed-on: http://openocd.zylin.com/1571
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/target_type.h')
-rw-r--r-- | src/target/target_type.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/target/target_type.h b/src/target/target_type.h index cf81708..cf3c864 100644 --- a/src/target/target_type.h +++ b/src/target/target_type.h @@ -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 */ |