GCC Newspaper
OCTOBER 6, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
auto-profile

Make gcc-auto-profile scripts use a configurable perf.data filename

gcc-auto-profile scripts now accept a configurable perf.data filename, improving flexibility in profile data handling.

This patch modifies gcc-auto-profile scripts to accept a perf.data filename as a parameter, rather than hardcoding it. Previously, Makefile.tpl and gcc-auto-profile scripts used separate definitions for the perf data file, making it difficult to manage. This change centralizes the filename in Makefile.tpl and passes it to the scripts, simplifying maintenance and future modifications.

In Details

The auto-profile infrastructure in GCC allows for automatic generation of profile data for Profile Guided Optimizations (PGO). This change modifies the scripts that collect and process this profile data, specifically by making the name of the perf.data file configurable. This improves the flexibility of the auto-profiling bootstrapping process, which involves collecting performance data and feeding it back into the build process.

For Context
auto-profile
A GCC infrastructure for automatically collecting performance profile data during compilation and runtime to improve optimizations.
PGO
Profile Guided Optimization is a compiler optimization technique that uses runtime execution data to make better optimization decisions.
perf.data
The default output file name for performance data collected by the Linux perf tool.
Makefile.tpl
A template file used in build systems to generate Makefiles, often containing variables and logic for customisation.
Filed Under: auto-profilePGObuild