%global debug_package %{nil} Name: uke-mthp-probe Version: 1.0.0 Release: 1%{?dist} Summary: Measure 64 KiB anonymous page allocation on Uke License: MIT Source0: uke-mthp-probe.tar.xz ExclusiveArch: aarch64 BuildRequires: gcc-c++ make binutils %description A manual, bounded measurement of anonymous page allocation using guarded 64 KiB mappings and explicit per-VMA memory advice. %prep tar -xJf "%{SOURCE0}" sha256sum -c --strict SHA256SUMS %build g++ %{optflags} -std=c++17 -Wall -Wextra -Werror mthp-probe.cpp -o uke-mthp-probe readelf -h uke-mthp-probe | grep 'Machine:.*AArch64' %check ! ./uke-mthp-probe invalid if [ "$(getconf PAGESIZE)" = 4096 ]; then ./uke-mthp-probe base | grep -E '^mode=base touched_kib=8192 anon_huge_kib=0 minflt=[0-9]+ p95_ns_per_64k=[0-9]+$' fi %install install -D -m 0755 uke-mthp-probe "%{buildroot}%{_libexecdir}/uke-mthp-probe" %files %{_libexecdir}/uke-mthp-probe %changelog * Wed Dec 02 2026 Uke Linux Maintainers - 1.0.0-1 - Measure exact 64 KiB anonymous mappings under per-VMA advice.