From: Victor Stinner Date: Fri, 25 Apr 2025 01:26:30 +0000 (+0200) Subject: [3.12] gh-132553: Build the perf tool without buildid cache (GH-132663) (#132718) X-Git-Tag: v3.12.11~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aeb3a6f61af53ed3fbf31f0b3704f49b71ac553c;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-132553: Build the perf tool without buildid cache (GH-132663) (#132718) gh-132553: Build the perf tool without buildid cache (GH-132663) (cherry picked from commit e01e5829020e517eb68a47da4dd65926a9d144de) Co-authored-by: Pablo Galindo Salgado --- diff --git a/Lib/test/test_perf_profiler.py b/Lib/test/test_perf_profiler.py index fe8707a156e9..b380e496a2d3 100644 --- a/Lib/test/test_perf_profiler.py +++ b/Lib/test/test_perf_profiler.py @@ -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,