This is an automated email from Gerrit.

"Richard Allen <rsa...@gmail.com>" just uploaded a new patch set to Gerrit, 
which you can find at https://review.openocd.org/c/openocd/+/8277

-- gerrit

commit 3a14a0d992b558a0b5650f9d6d2749e25fc3cf4e
Author: Richard Allen <rsa...@gmail.com>
Date:   Wed May 15 12:29:08 2024 -0500

    target: increase max profiler bucket count
    
    This fixes my firmware function names in gprof, and should give
    instruction-accurate results for Arm/Thumb firmware up to 2MB.
    
    Change-Id: I38276dd1be011ce5781b0264b7cbb08c32a1a2a2
    Signed-off-by: Richard Allen <rsa...@gmail.com>

diff --git a/src/target/target.c b/src/target/target.c
index 5168305dee..3120e00225 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -4248,7 +4248,7 @@ static void write_gmon(uint32_t *samples, uint32_t 
sample_num, const char *filen
 
        /* FIXME: What is the reasonable number of buckets?
         * The profiling result will be more accurate if there are enough 
buckets. */
-       static const uint32_t max_buckets = 128 * 1024; /* maximum buckets. */
+       static const uint32_t max_buckets = 1024 * 1024; /* maximum buckets. */
        uint32_t num_buckets = address_space / sizeof(UNIT);
        if (num_buckets > max_buckets)
                num_buckets = max_buckets;

-- 

Reply via email to