diff options
author | Karl Palsson <karlp@tweak.au> | 2023-11-22 09:57:06 +0000 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2023-12-10 13:33:51 +0000 |
commit | 2bd40b0bf930459f0fc3dbcbde3ac2f40ff56e4e (patch) | |
tree | cc9f7ace098136336cd3e84094d412202601dcaa | |
parent | 0ce08ec858add3e26ba04536b87fad680561fe50 (diff) | |
download | riscv-openocd-2bd40b0bf930459f0fc3dbcbde3ac2f40ff56e4e.zip riscv-openocd-2bd40b0bf930459f0fc3dbcbde3ac2f40ff56e4e.tar.gz riscv-openocd-2bd40b0bf930459f0fc3dbcbde3ac2f40ff56e4e.tar.bz2 |
target: Increase maximum profile sample count to 1000000
Change-Id: I38276dd1af011ce5781b0264b7cbb08c31a0a2ad
Signed-off-by: Paul Reimer <paul@zaber.com>
Signed-off-by: Karl Palsson <karlp@tweak.au>
Reviewed-on: https://review.openocd.org/c/openocd/+/6099
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
-rw-r--r-- | doc/openocd.texi | 2 | ||||
-rw-r--r-- | src/target/target.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi index db7315f..6c6519d 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -9492,7 +9492,7 @@ TCP/IP port 9090. @deffn {Command} {profile} seconds filename [start end] Profiling samples the CPU's program counter as quickly as possible, which is useful for non-intrusive stochastic profiling. -Saves up to 10000 samples in @file{filename} using ``gmon.out'' +Saves up to 1000000 samples in @file{filename} using ``gmon.out'' format. Optional @option{start} and @option{end} parameters allow to limit the address range. @end deffn diff --git a/src/target/target.c b/src/target/target.c index 2703f7b..d728332 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -4298,7 +4298,7 @@ COMMAND_HANDLER(handle_profile_command) if ((CMD_ARGC != 2) && (CMD_ARGC != 4)) return ERROR_COMMAND_SYNTAX_ERROR; - const uint32_t MAX_PROFILE_SAMPLE_NUM = 10000; + const uint32_t MAX_PROFILE_SAMPLE_NUM = 1000000; uint32_t offset; uint32_t num_of_samples; int retval = ERROR_OK; |