Issue in man page sprof.1

Florian Weimer fweimer@redhat.com
Tue Feb 10 06:09:50 GMT 2026


* Helge Kreutzmann:

> Hello Florian,
> On Mon, Feb 09, 2026 at 07:22:09AM +0100, Florian Weimer wrote:
>> > Am Sun, Nov 17, 2024 at 11:50:18PM +0100 schrieb Florian Weimer:
>> >> * Alejandro Colomar:
>  
>> > I can run all commands of sprof(1), however none produces any content,
>> > i.e. something beyond the header lines. As I'm not a programmer, I
>> > don't know if this is something to worry about.
>> >
>> > helge@twentytwo:/tmp$ sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile
>> > Flat profile:
>> >
>> > Each sample counts as 0,01 seconds.
>> >   %   cumulative   self              self     total
>> >  time   seconds   seconds    calls  us/call  us/call  name
>> 
>> Is it possible that no profiling events have been recorded?
>> How do you call functions in libdemo.so.1?
>  
> I simply copied the instructions in the man page one by one and
> observed the output, without really understanding what I'm doing. So
> yes, the problem may be perfectly on my side, that I should have
> generated some events.

The instructions work for me on Fedora 43.  It's possible that they
depend on compiler/linker default settings not being overriden by the
distribution.  Fedora only changes fewer upstream defaults than other
distributions.

Thanks,
Florian



More information about the Libc-alpha mailing list