[compiler-rt] [llvm] [MemProf] Change histogram storage from uint64_t to uint16_t (PR #147854)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 30 14:48:54 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu-no-asserts` running on `doug-worker-6` while building `compiler-rt,llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/202/builds/2585

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'MemProfiler-x86_64-linux-dynamic :: TestCases/memprof_histogram_uint8.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/buildbot/buildbot-root/gcc-no-asserts/build/./bin/clang  --driver-mode=g++ -fmemory-profile -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  -m64  -shared-libsan -O0 -mllvm -memprof-histogram -mllvm -memprof-use-callbacks=true /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/compiler-rt/test/memprof/TestCases/memprof_histogram_uint8.cpp -o /home/buildbot/buildbot-root/gcc-no-asserts/build/runtimes/runtimes-bins/compiler-rt/test/memprof/X86_64LinuxDynamicConfig/TestCases/Output/memprof_histogram_uint8.cpp.tmp && env MEMPROF_OPTIONS=print_text=1:histogram=1:log_path=stdout  /home/buildbot/buildbot-root/gcc-no-asserts/build/runtimes/runtimes-bins/compiler-rt/test/memprof/X86_64LinuxDynamicConfig/TestCases/Output/memprof_histogram_uint8.cpp.tmp 2>&1 | FileCheck /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/compiler-rt/test/memprof/TestCases/memprof_histogram_uint8.cpp # RUN: at line 5
+ /home/buildbot/buildbot-root/gcc-no-asserts/build/./bin/clang --driver-mode=g++ -fmemory-profile -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -shared-libsan -O0 -mllvm -memprof-histogram -mllvm -memprof-use-callbacks=true /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/compiler-rt/test/memprof/TestCases/memprof_histogram_uint8.cpp -o /home/buildbot/buildbot-root/gcc-no-asserts/build/runtimes/runtimes-bins/compiler-rt/test/memprof/X86_64LinuxDynamicConfig/TestCases/Output/memprof_histogram_uint8.cpp.tmp
+ env MEMPROF_OPTIONS=print_text=1:histogram=1:log_path=stdout /home/buildbot/buildbot-root/gcc-no-asserts/build/runtimes/runtimes-bins/compiler-rt/test/memprof/X86_64LinuxDynamicConfig/TestCases/Output/memprof_histogram_uint8.cpp.tmp
+ FileCheck /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/compiler-rt/test/memprof/TestCases/memprof_histogram_uint8.cpp
/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/compiler-rt/test/memprof/TestCases/memprof_histogram_uint8.cpp:36:11: error: CHECK: expected string not found in input
// CHECK: AccessCountHistogram[128]: 1 201 255 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
          ^
<stdin>:1:1: note: scanning from here
Recorded MIBs (incl. live on exit):
^

Input file: <stdin>
Check file: /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/compiler-rt/test/memprof/TestCases/memprof_histogram_uint8.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
          1: Recorded MIBs (incl. live on exit): 
check:36     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
          2: Memory allocation stack id = 1 
check:36     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          3:  alloc_count 1, size (ave/min/max) 72704.00 / 72704 / 72704 
check:36     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          4:  access_count (ave/min/max): 0.00 / 0 / 0 
check:36     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          5:  lifetime (ave/min/max): 841.00 / 841 / 841 
check:36     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          6:  num migrated: 0, num lifetime overlaps: 0, num same alloc cpu: 0, num same dealloc_cpu: 0 
check:36     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          7: AccessCountHistogram[0]:  
check:36     ~~~~~~~~~~~~~~~~~~~~~~~~~~
          8: Memory allocation stack id = 2 
check:36     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          9:  alloc_count 1, size (ave/min/max) 1024.00 / 1024 / 1024 
check:36     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         10:  access_count (ave/min/max): 144055823054733569.00 / 144055823054733569 / 144055823054733569 
check:36     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         11:  lifetime (ave/min/max): 1.00 / 1 / 1 
check:36     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         12:  num migrated: 0, num lifetime overlaps: 0, num same alloc cpu: 0, num same dealloc_cpu: 0 
check:36     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         13: AccessCountHistogram[0]:  
check:36     ~~~~~~~~~~~~~~~~~~~~~~~~~~
         14: Memory allocation stack id = 3 
...

```

</details>

https://github.com/llvm/llvm-project/pull/147854


More information about the llvm-commits mailing list