Skip to content
Open
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
640e15d
tools: update nixpkgs-unstable to f4b794aaffc0e3d45da81088d492b118224b
aduh95 Oct 26, 2026
f9f18bf
tools: cross-compile Perfetto tools for Jenkins CI
aduh95 Oct 25, 2026
8f06cc5
test: skip trace-events tests inside unusual char dirs
aduh95 Oct 13, 2026
18711f5
test: improve debug output for trace processor tests
aduh95 Oct 26, 2026
a8739bd
build: enable Perfetto by default
aduh95 Sep 4, 2026
758e81a
fixup! build: enable Perfetto by default
aduh95 Sep 10, 2026
c34bc26
fixup! build: enable Perfetto by default
aduh95 Sep 23, 2026
101bb31
fixup! build: enable Perfetto by default
aduh95 Oct 3, 2026
d5be467
fixup! build: enable Perfetto by default
aduh95 Oct 3, 2026
a74b02e
fixup! fixup! build: enable Perfetto by default
aduh95 Oct 24, 2026
5c81702
drop! switch to the s390x compatible fork
aduh95 Oct 29, 2026
47dd9cd
cross-compile for musl x64
aduh95 Oct 29, 2026
888e35c
fixup! build: enable Perfetto by default
aduh95 Oct 29, 2026
ac51468
fixup! cross-compile for musl x64
aduh95 Oct 29, 2026
a368c79
fixup! fixup! build: enable Perfetto by default
aduh95 Oct 29, 2026
393c9ee
fixup! fixup! fixup! build: enable Perfetto by default
aduh95 Oct 29, 2026
93b3acf
fixup! build: enable Perfetto by default
aduh95 Oct 30, 2026
2001607
fixup! fixup! cross-compile for musl x64
aduh95 Oct 30, 2026
3b086d9
fixup! fixup! cross-compile for musl x64
aduh95 Oct 30, 2026
1aee68a
fixup! fixup! fixup! cross-compile for musl x64
aduh95 Oct 30, 2026
cec2d95
print and check glibc version, as well as CPU opt support
aduh95 Oct 30, 2026
8fd28b4
fixup! print and check glibc version, as well as CPU opt support
aduh95 Oct 30, 2026
ff04d89
switch to ubuntu-latest, disable cpu_opt
aduh95 Oct 30, 2026
24453ea
fix CPU opt detection
aduh95 Oct 30, 2026
335389d
fix x64 build
aduh95 Oct 30, 2026
fb9a6e8
fix required CPU features detection?
aduh95 Oct 30, 2026
b03785b
fixup! fix required CPU features detection?
aduh95 Oct 30, 2026
8ec00bd
fixup! fix required CPU features detection?
aduh95 Oct 30, 2026
3aa4ab0
fixup! fix x64 build
aduh95 Oct 30, 2026
831d963
add aarch64 version
aduh95 Oct 31, 2026
33029a3
add ppc patch
aduh95 Nov 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix required CPU features detection?
  • Loading branch information
aduh95 committed Oct 30, 2026
commit fb9a6e83d5fa3f46836add3d03b4218e99ba1c43
17 changes: 13 additions & 4 deletions tools/perfetto/get_trace_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,19 @@ def cpu_supports_perfetto_prebuilt(arch):
except Exception:
return False

has_flags = {"avx2", "bmi2", "sse4_2"}.issubset(flags) and ("abm" in flags or "lzcnt" in flags)
if not has_flags:
print(f'get_trace_processor: Pre-built binaries for x64 require a cpu that supports SSE4.2, BMI2, AVX2 and LZCNT. Got ${flags}')
return has_flags
# Complete feature list matching Perfetto's CheckCpuOptimizations()
required_flags = {"sse4_2", "popcnt", "avx2", "bmi1", "bmi2"}
missing = required_flags - flags

# Check LZCNT (kernel flag 'abm' or synthesized 'lzcnt')
if not ("abm" in flags or "lzcnt" in flags):
missing.add("lzcnt (abm)")

if missing:
print(f"CPU is missing required Perfetto features: {sorted(missing)}")
return False

return True

def release_name():
# Perfetto releases only an x64 build for Windows. Windows on arm64 runs it
Expand Down
Loading