]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-132553: Build the perf tool without buildid cache (GH-132663) (#132718)
authorVictor Stinner <vstinner@python.org>
Fri, 25 Apr 2025 01:26:30 +0000 (03:26 +0200)
committerGitHub <noreply@github.com>
Fri, 25 Apr 2025 01:26:30 +0000 (02:26 +0100)
gh-132553: Build the perf tool without buildid cache (GH-132663)

(cherry picked from commit e01e5829020e517eb68a47da4dd65926a9d144de)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Lib/test/test_perf_profiler.py

index fe8707a156e9dc1df6bc59be4f1ea4b822ddbe66..b380e496a2d3cbb276237f4127ca37402c33c713 100644 (file)
@@ -238,6 +238,8 @@ def perf_command_works():
             cmd = (
                 "perf",
                 "record",
+                "--no-buildid",
+                "--no-buildid-cache",
                 "-g",
                 "--call-graph=fp",
                 "-o",
@@ -266,7 +268,16 @@ def run_perf(cwd, *args, **env_vars):
     else:
         env = None
     output_file = cwd + "/perf_output.perf"
-    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,
+        "--"
+    )
     proc = subprocess.run(
         base_cmd + args,
         stdout=subprocess.PIPE,