[PATCH] gprofng: a new GNU profiler

Vladimir Mezentsev vladimir.mezentsev@oracle.com
Wed Aug 11 22:27:30 GMT 2021



On 8/11/21 2:48 PM, Joseph Myers wrote:
> On Wed, 11 Aug 2021, Vladimir Mezentsev via Binutils wrote:
>
>> - Currently gprofng supports profiling programs in GNU/Linux systems
>> running on x86_64 and aarch64 hardware. It is possible to add support
>> for additional architectures.
> Have you made sure that if binutils is built for a host or target not
> supported by gprofng, or lacking any build dependencies of gprofng that
> are not build dependencies of the rest of binutils, it disables building
> that subdirectory rather than failing the build?
  Joseph, thank you for your questions.

gprofng can be built for the  x86_64, i686 or aarch64 platforms.
For the other platforms, the gprofng build is turned off.
gprofng depends on libbfd and libopcodes.
If they are not built the gprofng build failed.



>
> Suppose you build cross binutils.  What functionality is present for
> gprofng?  Does it build a cross gprofng that can read profile data that
> was collected natively (by a native gprofng) on a system of the configured
> --target, while not itself being able to collect profile data, for
> example?  That's what seems logical for cross gprofng to be able to do -
> everything related to processing profile data for the configured target
> (regardless of what the host architecture or OS are) other than natively
> collecting it - but I don't know if it's designed that way, or whether you
> e.g. depend on structures describing the profile data that may not be so
> readily available in such a configuration.

  You can collect data only natively.
But you can see the  profile data on the other hardware.
For example, you can collect data on aarch64 and see this data on x86_64.
Or you can collect data on x86_64 and see this data on aarch64.

Thank you,
-Vladimir


>



More information about the Binutils mailing list