Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nickdesaulniers
Created February 2, 2022 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickdesaulniers/1b327b283d19bc7540665c77ad6e4eac to your computer and use it in GitHub Desktop.
Save nickdesaulniers/1b327b283d19bc7540665c77ad6e4eac to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
function pretty_print() {
printf "%b%s\033[0m" "${1}" "${2}"
shift 2
while ((${#})); do
printf "%b" "${1}"
shift
done
printf '\n'
}
function green() {
pretty_print "\033[01;32m" "${@}"
}
function red() {
pretty_print "\033[01;31m" "${@}"
}
rm -f .config
# sanity check llvm defconfig
green "[1/8] sanity check llvm defconfig"
rm -f .config
make LLVM=1 -j72 -s defconfig all
# sanity check gcc defconfig
green "[2/8] sanity check gcc defconfig"
rm -f .config
make -j72 -s defconfig all
# original -march=nocona clang issue
green "[3/8] testing llvm nocona"
rm -f .config
make LLVM=1 -j72 -s defconfig
./scripts/config -e CONFIG_MPSC -d CONFIG_GENERIC_CPU \
-e CONFIG_TRACE_BRANCH_PROFILING -d CONFIG_BRANCH_PROFILE_NONE \
-e CONFIG_PROFILE_ANNOTATED_BRANCHES -d CONFIG_BRANCH_TRACER
make LLVM=1 -j72 -s
# matom https://github.com/ClangBuiltLinux/linux/issues/1483
green "[4/8] testing llvm ATOM"
make LLVM=1 -j72 -s defconfig
./scripts/config -e CONFIG_MATOM -d GENERIC_CPU
make LLVM=1 -j72 -s
# 0 day report with GCC
# https://download.01.org/0day-ci/archive/20220119/202201190702.XNSXrMTK-lkp@intel.com/config
green "[5/8] testing 0day GCC report 1"
rm -f .config
wget -q https://download.01.org/0day-ci/archive/20220119/202201190702.XNSXrMTK-lkp@intel.com/config -O .config
make -j72 -s olddefconfig all
# 0 day report with GCC
# https://lore.kernel.org/lkml/202201190632.lhlaiCBk-lkp@intel.com/
green "[6/8] testing 0day GCC report 2"
rm -f .config
wget -q https://download.01.org/0day-ci/archive/20220119/202201190632.lhlaiCBk-lkp@intel.com/config -O .config
make -j72 -s olddefconfig all
# CONFIG_DEBUG_ENTRY with GCC
green "[7/8] testing CONFIG_DEBUG_ENTRY with GCC"
rm -f .config
make -j72 -s defconfig
./scripts/config -e CONFIG_DEBUG_ENTRY
make -j72 -s
# another 0 day gcc report
green "[8/8] testing 0day GCC report 3"
rm -f .config
wget -q https://download.01.org/0day-ci/archive/20220131/202201310516.HfJRtwoh-lkp@intel.com/config -O .config
make -j72 -s olddefconfig all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment