From 262f08301a5609769dd746c8703befc0f376c72f Mon Sep 17 00:00:00 2001 From: Tony Printezis Date: Mon, 20 Jul 2026 13:25:51 -0700 Subject: [PATCH] change tests to set --enable-prof-libunwind instead of --enable-prof-frameptr --- .github/workflows/linux-ci.yml | 38 +++++++++++++++++++++------------ .travis.yml | 28 ++++++++++++------------ scripts/gen_gh_actions.py | 10 ++++++++- scripts/gen_travis.py | 5 ++++- scripts/linux/before_install.sh | 3 ++- 5 files changed, 53 insertions(+), 31 deletions(-) diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index 106f9600..2fc43c75 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -63,7 +63,7 @@ jobs: - env: CC: gcc CXX: g++ - CONFIGURE_FLAGS: "--enable-prof --enable-prof-frameptr" + CONFIGURE_FLAGS: "--enable-prof --enable-prof-libunwind" EXTRA_CFLAGS: "-Werror -Wno-array-bounds" - env: CC: gcc @@ -124,7 +124,7 @@ jobs: - env: CC: clang CXX: clang++ - CONFIGURE_FLAGS: "--enable-prof --enable-prof-frameptr" + CONFIGURE_FLAGS: "--enable-prof --enable-prof-libunwind" EXTRA_CFLAGS: "-Werror -Wno-array-bounds -Wno-unknown-warning-option -Wno-ignored-attributes" - env: CC: clang @@ -193,7 +193,7 @@ jobs: CXX: g++ CROSS_COMPILE_32BIT: yes COMPILER_FLAGS: -m32 - CONFIGURE_FLAGS: "--enable-prof --enable-prof-frameptr" + CONFIGURE_FLAGS: "--enable-prof --enable-prof-libunwind" EXTRA_CFLAGS: "-Werror -Wno-array-bounds" - env: CC: gcc @@ -251,7 +251,7 @@ jobs: - env: CC: gcc CXX: g++ - CONFIGURE_FLAGS: "--enable-debug --enable-prof --enable-prof-frameptr" + CONFIGURE_FLAGS: "--enable-debug --enable-prof --enable-prof-libunwind" EXTRA_CFLAGS: "-Werror -Wno-array-bounds" - env: CC: gcc @@ -296,7 +296,7 @@ jobs: - env: CC: gcc CXX: g++ - CONFIGURE_FLAGS: "--enable-prof --enable-prof --enable-prof-frameptr" + CONFIGURE_FLAGS: "--enable-prof --enable-prof --enable-prof-libunwind" EXTRA_CFLAGS: "-Werror -Wno-array-bounds" - env: CC: gcc @@ -336,7 +336,7 @@ jobs: - env: CC: gcc CXX: g++ - CONFIGURE_FLAGS: "--disable-stats --enable-prof --enable-prof-frameptr" + CONFIGURE_FLAGS: "--disable-stats --enable-prof --enable-prof-libunwind" EXTRA_CFLAGS: "-Werror -Wno-array-bounds" - env: CC: gcc @@ -371,7 +371,7 @@ jobs: - env: CC: gcc CXX: g++ - CONFIGURE_FLAGS: "--disable-libdl --enable-prof --enable-prof-frameptr" + CONFIGURE_FLAGS: "--disable-libdl --enable-prof --enable-prof-libunwind" EXTRA_CFLAGS: "-Werror -Wno-array-bounds" - env: CC: gcc @@ -401,7 +401,7 @@ jobs: - env: CC: gcc CXX: g++ - CONFIGURE_FLAGS: "--enable-opt-safety-checks --enable-prof --enable-prof-frameptr" + CONFIGURE_FLAGS: "--enable-opt-safety-checks --enable-prof --enable-prof-libunwind" EXTRA_CFLAGS: "-Werror -Wno-array-bounds" - env: CC: gcc @@ -426,7 +426,7 @@ jobs: - env: CC: gcc CXX: g++ - CONFIGURE_FLAGS: "--with-lg-page=16 --enable-prof --enable-prof-frameptr" + CONFIGURE_FLAGS: "--with-lg-page=16 --enable-prof --enable-prof-libunwind" EXTRA_CFLAGS: "-Werror -Wno-array-bounds" - env: CC: gcc @@ -451,22 +451,22 @@ jobs: - env: CC: gcc CXX: g++ - CONFIGURE_FLAGS: "--enable-prof --enable-prof-frameptr --with-malloc-conf=tcache:false" + CONFIGURE_FLAGS: "--enable-prof --enable-prof-libunwind --with-malloc-conf=tcache:false" EXTRA_CFLAGS: "-Werror -Wno-array-bounds" - env: CC: gcc CXX: g++ - CONFIGURE_FLAGS: "--enable-prof --enable-prof-frameptr --with-malloc-conf=dss:primary" + CONFIGURE_FLAGS: "--enable-prof --enable-prof-libunwind --with-malloc-conf=dss:primary" EXTRA_CFLAGS: "-Werror -Wno-array-bounds" - env: CC: gcc CXX: g++ - CONFIGURE_FLAGS: "--enable-prof --enable-prof-frameptr --with-malloc-conf=percpu_arena:percpu" + CONFIGURE_FLAGS: "--enable-prof --enable-prof-libunwind --with-malloc-conf=percpu_arena:percpu" EXTRA_CFLAGS: "-Werror -Wno-array-bounds" - env: CC: gcc CXX: g++ - CONFIGURE_FLAGS: "--enable-prof --enable-prof-frameptr --with-malloc-conf=background_thread:true" + CONFIGURE_FLAGS: "--enable-prof --enable-prof-libunwind --with-malloc-conf=background_thread:true" EXTRA_CFLAGS: "-Werror -Wno-array-bounds" - env: CC: gcc @@ -547,6 +547,11 @@ jobs: echo "=== CPU Info ===" lscpu | grep -E "Architecture|CPU op-mode|Byte Order|CPU\(s\):" || true + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y libunwind-dev + - name: Install dependencies (32-bit) if: matrix.env.CROSS_COMPILE_32BIT == 'yes' run: | @@ -635,7 +640,7 @@ jobs: - env: CC: gcc CXX: g++ - CONFIGURE_FLAGS: "--enable-prof --enable-prof-frameptr" + CONFIGURE_FLAGS: "--enable-prof --enable-prof-libunwind" EXTRA_CFLAGS: "-Werror -Wno-array-bounds" - env: CC: gcc @@ -681,6 +686,11 @@ jobs: echo "=== CPU Info ===" lscpu | grep -E "Architecture|CPU op-mode|Byte Order|CPU\(s\):" || true + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y libunwind-dev + - name: Install dependencies (32-bit) if: matrix.env.CROSS_COMPILE_32BIT == 'yes' run: | diff --git a/.travis.yml b/.travis.yml index 643da4f1..dbf2e260 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,7 +39,7 @@ jobs: env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--with-lg-page=16" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 - env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof-frameptr" EXTRA_CFLAGS="-Werror -Wno-array-bounds" + env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof-libunwind" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--with-malloc-conf=tcache:false" EXTRA_CFLAGS="-Werror -Wno-array-bounds" @@ -75,7 +75,7 @@ jobs: env: CC=clang CXX=clang++ CONFIGURE_FLAGS="--with-lg-page=16" EXTRA_CFLAGS="-Werror -Wno-array-bounds -Wno-unknown-warning-option -Wno-ignored-attributes" - os: linux arch: amd64 - env: CC=clang CXX=clang++ CONFIGURE_FLAGS="--enable-prof --enable-prof-frameptr" EXTRA_CFLAGS="-Werror -Wno-array-bounds -Wno-unknown-warning-option -Wno-ignored-attributes" + env: CC=clang CXX=clang++ CONFIGURE_FLAGS="--enable-prof --enable-prof-libunwind" EXTRA_CFLAGS="-Werror -Wno-array-bounds -Wno-unknown-warning-option -Wno-ignored-attributes" - os: linux arch: amd64 env: CC=clang CXX=clang++ CONFIGURE_FLAGS="--with-malloc-conf=tcache:false" EXTRA_CFLAGS="-Werror -Wno-array-bounds -Wno-unknown-warning-option -Wno-ignored-attributes" @@ -108,7 +108,7 @@ jobs: env: CC=gcc CXX=g++ CROSS_COMPILE_32BIT=yes COMPILER_FLAGS="-m32" CONFIGURE_FLAGS="--with-lg-page=16" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 - env: CC=gcc CXX=g++ CROSS_COMPILE_32BIT=yes COMPILER_FLAGS="-m32" CONFIGURE_FLAGS="--enable-prof --enable-prof-frameptr" EXTRA_CFLAGS="-Werror -Wno-array-bounds" + env: CC=gcc CXX=g++ CROSS_COMPILE_32BIT=yes COMPILER_FLAGS="-m32" CONFIGURE_FLAGS="--enable-prof --enable-prof-libunwind" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 env: CC=gcc CXX=g++ CROSS_COMPILE_32BIT=yes COMPILER_FLAGS="-m32" CONFIGURE_FLAGS="--with-malloc-conf=tcache:false" EXTRA_CFLAGS="-Werror -Wno-array-bounds" @@ -138,7 +138,7 @@ jobs: env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-debug --with-lg-page=16" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 - env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-debug --enable-prof --enable-prof-frameptr" EXTRA_CFLAGS="-Werror -Wno-array-bounds" + env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-debug --enable-prof --enable-prof-libunwind" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-debug --with-malloc-conf=tcache:false" EXTRA_CFLAGS="-Werror -Wno-array-bounds" @@ -165,7 +165,7 @@ jobs: env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --with-lg-page=16" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 - env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof --enable-prof-frameptr" EXTRA_CFLAGS="-Werror -Wno-array-bounds" + env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof --enable-prof-libunwind" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --with-malloc-conf=tcache:false" EXTRA_CFLAGS="-Werror -Wno-array-bounds" @@ -189,7 +189,7 @@ jobs: env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--disable-stats --with-lg-page=16" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 - env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--disable-stats --enable-prof --enable-prof-frameptr" EXTRA_CFLAGS="-Werror -Wno-array-bounds" + env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--disable-stats --enable-prof --enable-prof-libunwind" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--disable-stats --with-malloc-conf=tcache:false" EXTRA_CFLAGS="-Werror -Wno-array-bounds" @@ -210,7 +210,7 @@ jobs: env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--disable-libdl --with-lg-page=16" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 - env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--disable-libdl --enable-prof --enable-prof-frameptr" EXTRA_CFLAGS="-Werror -Wno-array-bounds" + env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--disable-libdl --enable-prof --enable-prof-libunwind" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--disable-libdl --with-malloc-conf=tcache:false" EXTRA_CFLAGS="-Werror -Wno-array-bounds" @@ -228,7 +228,7 @@ jobs: env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-opt-safety-checks --with-lg-page=16" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 - env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-opt-safety-checks --enable-prof --enable-prof-frameptr" EXTRA_CFLAGS="-Werror -Wno-array-bounds" + env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-opt-safety-checks --enable-prof --enable-prof-libunwind" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-opt-safety-checks --with-malloc-conf=tcache:false" EXTRA_CFLAGS="-Werror -Wno-array-bounds" @@ -243,7 +243,7 @@ jobs: env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-opt-safety-checks --with-malloc-conf=background_thread:true" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 - env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--with-lg-page=16 --enable-prof --enable-prof-frameptr" EXTRA_CFLAGS="-Werror -Wno-array-bounds" + env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--with-lg-page=16 --enable-prof --enable-prof-libunwind" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--with-lg-page=16 --with-malloc-conf=tcache:false" EXTRA_CFLAGS="-Werror -Wno-array-bounds" @@ -258,16 +258,16 @@ jobs: env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--with-lg-page=16 --with-malloc-conf=background_thread:true" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 - env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof-frameptr --with-malloc-conf=tcache:false" EXTRA_CFLAGS="-Werror -Wno-array-bounds" + env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof-libunwind --with-malloc-conf=tcache:false" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 - env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof-frameptr --with-malloc-conf=dss:primary" EXTRA_CFLAGS="-Werror -Wno-array-bounds" + env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof-libunwind --with-malloc-conf=dss:primary" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 - env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof-frameptr --with-malloc-conf=percpu_arena:percpu" EXTRA_CFLAGS="-Werror -Wno-array-bounds" + env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof-libunwind --with-malloc-conf=percpu_arena:percpu" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 - env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof-frameptr --with-malloc-conf=background_thread:true" EXTRA_CFLAGS="-Werror -Wno-array-bounds" + env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof-libunwind --with-malloc-conf=background_thread:true" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: amd64 env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--with-malloc-conf=tcache:false,dss:primary" EXTRA_CFLAGS="-Werror -Wno-array-bounds" @@ -315,7 +315,7 @@ jobs: env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--with-lg-page=16 --with-lg-hugepage=29" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: arm64 - env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof-frameptr" EXTRA_CFLAGS="-Werror -Wno-array-bounds" + env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--enable-prof --enable-prof-libunwind" EXTRA_CFLAGS="-Werror -Wno-array-bounds" - os: linux arch: arm64 env: CC=gcc CXX=g++ CONFIGURE_FLAGS="--with-malloc-conf=tcache:false" EXTRA_CFLAGS="-Werror -Wno-array-bounds" diff --git a/scripts/gen_gh_actions.py b/scripts/gen_gh_actions.py index 1dac79e3..e6a0ac6c 100755 --- a/scripts/gen_gh_actions.py +++ b/scripts/gen_gh_actions.py @@ -224,8 +224,11 @@ def generate_linux_job(arch): if arch != ARM64: exclude += [LARGE_HUGEPAGE] + linux_configure_flags = list(configure_flag_unusuals) + linux_configure_flags.append(Option.as_configure_flag("--enable-prof --enable-prof-libunwind")) + linux_unusuals = (compilers_unusual + feature_unusuals - + configure_flag_unusuals + malloc_conf_unusuals) + + linux_configure_flags + malloc_conf_unusuals) matrix_entries = generate_job_matrix_entries(os, arch, exclude, max_unusual_opts, linux_unusuals) @@ -339,6 +342,11 @@ def generate_linux_job(arch): echo "=== CPU Info ===" lscpu | grep -E "Architecture|CPU op-mode|Byte Order|CPU\\(s\\):" || true + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y libunwind-dev + - name: Install dependencies (32-bit) if: matrix.env.CROSS_COMPILE_32BIT == 'yes' run: | diff --git a/scripts/gen_travis.py b/scripts/gen_travis.py index 4fe4b7a3..cc94871f 100755 --- a/scripts/gen_travis.py +++ b/scripts/gen_travis.py @@ -264,8 +264,11 @@ def generate_linux(arch): if arch != ARM64: exclude += [LARGE_HUGEPAGE] + linux_configure_flags = list(configure_flag_unusuals) + linux_configure_flags.append(Option.as_configure_flag("--enable-prof --enable-prof-libunwind")) + linux_unusuals = (compilers_unusual + feature_unusuals - + configure_flag_unusuals + malloc_conf_unusuals) + + linux_configure_flags + malloc_conf_unusuals) return generate_jobs(os, arch, exclude, max_unusual_opts, linux_unusuals) diff --git a/scripts/linux/before_install.sh b/scripts/linux/before_install.sh index 67417463..6798744d 100644 --- a/scripts/linux/before_install.sh +++ b/scripts/linux/before_install.sh @@ -7,7 +7,8 @@ if [[ "$TRAVIS_OS_NAME" != "linux" ]]; then exit 1 fi +sudo apt-get update +sudo apt-get install -y libunwind-dev if [[ "$CROSS_COMPILE_32BIT" == "yes" ]]; then - sudo apt-get update sudo apt-get -y install gcc-multilib g++-multilib fi