[3.13] gh-132553: Build the perf tool without buildid cache (GH-132663) (GH-132681)

(cherry picked from commit e01e582902)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-04-18 14:51:02 +02:00 committed by GitHub
parent b78728210c
commit b3d4980c56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -252,6 +252,8 @@ def perf_command_works():
cmd = (
"perf",
"record",
"--no-buildid",
"--no-buildid-cache",
"-g",
"--call-graph=fp",
"-o",
@ -281,11 +283,22 @@ def run_perf(cwd, *args, use_jit=False, **env_vars):
env = None
output_file = cwd + "/perf_output.perf"
if not use_jit:
base_cmd = ("perf", "record", "-g", "--call-graph=fp", "-o", output_file, "--")
base_cmd = (
"perf",
"record",
"--no-buildid",
"--no-buildid-cache",
"-g",
"--call-graph=fp",
"-o", output_file,
"--"
)
else:
base_cmd = (
"perf",
"record",
"--no-buildid",
"--no-buildid-cache",
"-g",
"--call-graph=dwarf,65528",
"-F99",