[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#767756: glibc: Consider providing a libc build compiled with -fno-omit-frame-pointer to help with profiling



Hi,

On 2016-03-30 06:37:11 +0000, Alex Reece wrote:
> I would love to bump this bug; I think it would be wonderful to have an
> alternative version of libc with frame pointers.

Yea, I'm hitting this more and more often. Especially with the new eBPF
backed profiling tools like bcc, which, for the forseeable future, only
support frame pointer based unwinding. Also fp based unwinding is a lot
more efficient.


> What would it take for such an alternative to exist (can the Debian
> alternatives system work for libc)?

I was thinking of adding a libc6-frame-pointers which would replace (and
conflict with) libc6. But that's just because it was what I could think
of.

Maybe it'd be better to let those be co-installed by using a different
triplet and allow to chose which to use via /etc/ld.so.conf/something?
Not pretty either :(


> If other people want this, I'm interested in investing some time into
> helping with it.

Same here. I'd primarily like some guidance about what approach is more
likely to be accepted.


Greetings,

Andres Freund


Reply to: