On Wed, Mar 11, 2026 at 09:41:31AM +0530, [email protected] wrote:
> From: Dhruv Chawla <[email protected]>
> 
> This patch adds support for ARM SPE as a profiler to gcc-auto-profile
> and the corresponding detection required for passing the
> --profiler=perf_spe option to create_gcov when creating the GCOV files.
> 
> The patch also modifies the create_gcov invocation to make sure that the
> corresponding component's profile is actually included in the perf.data
> file. This is because some of the profiles end up not including invocations of
> one of cc1, cc1plus or lto1 and trying to use them to generate the GCOV with 
> the
> missing binary ends up failing the create_gcov command. This is expected and 
> is
> not an error condition.
> 
> For example:
> 
> >> perf buildid-list -i prev-libbacktrace/perf.data
> aff9c7b2c5c294612904563fa3da88cb054d313d [kernel.kallsyms]
> 962097804b5c10ba831958fbb9609cb6d0c1101f /usr/bin/make
> ...
> 8227253257ca616415b6d90c8b94de71b314997c 
> /local/home/dhruvc/misc-testing/build-afdo-bootstrap-all/prev-gcc/xgcc
> 077d6240baadea4c3288e106b17164d164ea7b31 
> /local/home/dhruvc/misc-testing/build-afdo-bootstrap-all/prev-gcc/cc1
> ...
> 
> There is no instance of cc1plus or lto1 here, so create_gcov cannot be
> run on this.
> 
> Autoprofilebootstrapped and regtested on aarch64-linux-gnu.

Looks good to me.

Thanks,
-Andi

Reply via email to