Re: RFC: Standalone AutoFDO Profile Tool for GCC

Kugan Vivekanandarajah via Gcc <[email protected]>
Newsgroups gmane.comp.gcc.devel
Message-ID <[email protected]>
>> 
>> 1. Simplicity - One job: turn samples (from file or live) into
>> AutoFDO profiles that can be consumed by the GCC AutoFDO toolchain.
>> 
>> 2. Minimal dependencies -  Dependent only on libraries such as libdwarf
>> for DWARF parsing (no large frameworks).
> 
> Could we reuse libbacktrace's code here? Instead of requiring libdwarf
> and libelf as a dependency?
> Or maybe libiberty/simple-object code?
> 
> libbacktrace/elf.c is copyrighted by the FSF even. I can even see this
> tool being supported on Mac OS (though I don't know if there is a perf
> like tool there).
> 
> LTO used to depend on libelf but that was removed years ago in favor
> of using simple-object.
> libbacktrace will be updated to support the newer dwarf standards as
> they are added to GCC/gas especially when it comes to lines support.
> Depending on the version of libdwarf has one extra issue of needing
> the version that support dwarf5 (and soon 6).

Thanks for the feedback. I tried recreating with libbacktrace.
AFIK, we however would need ibdw to get the discriminater unless we change libbacktrace.
libbacktrace looks to me like a better solution given version issues you mentioned.

Thanks,
Kugan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.