Re: Sample based profiling

2018-07-29 Thread Alexander Nasonov
Joerg Sonnenberger wrote: > On Sun, Jul 29, 2018 at 02:45:51PM +0100, Alexander Nasonov wrote: > > I wanted to vote for option 3 if we have better tools but devel/gperftools > > didn't build on my amd64 boxes (-current and -8): > > Works for me? PKGSRC_COMPILER=clang and mine builds too ;-) --

Re: Sample based profiling

2018-07-29 Thread Joerg Sonnenberger
On Sun, Jul 29, 2018 at 02:45:51PM +0100, Alexander Nasonov wrote: > I wanted to vote for option 3 if we have better tools but devel/gperftools > didn't build on my amd64 boxes (-current and -8): Works for me? Joerg

Re: Sample based profiling

2018-07-29 Thread Alexander Nasonov
Joerg Sonnenberger wrote: > ... > (1) Introduce a dynamic version of libc_pg. > (2) Stop pretending that -pg means dynamic linking and implicitly add > -static. > (3) Stop pretending that -pg makes sense on modern hardware. > > Fundamentally, I think the third option is the correct way forward. >

Re: Sample based profiling

2018-07-29 Thread Kamil Rytarowski
On 25.07.2018 14:48, Joerg Sonnenberger wrote: > Hello all, > the recent work on static PIE support have exposed some fundamental > issues in the way profiling support is currently implemented. When -pg > is used for linking, the binary will essentially get a copy of libc > linked in, but without a