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

Re: Bug#207063: hppa profiling; debian-hppa please advise



On Sat, Mar 06, 2004 at 10:15:53AM -0800, Randolph Chung wrote:
> > debian-hppa, can you please advise? Has hppa profiling support? If so,
> > how can we detect that? Are there other compile modes that we could and
> > should check for?
> 
> yes, hppa has profiling support. we fixed it recently...
> 
> how about if you compile a small test program with -g -pg, run it and 
> see if it generates a gmon.out file?

I don't have a hppa.
 
> or if you don't want to have to run a test program (e.g. if you support
> cross compiling) maybe you can try to build a program that has at least
> one function call, do a disassembly on it (objdump -d foo) and see if
> get calls to _mcount, which will indicate to profiling is enabled.

The goal is to have lintian test that automatically tests hppa binaries
whether they are accidentally compiled with profiling enabled (which
shouldn't be the case).

The test already runs 'objdump --headers --private-headers -T', and this
is not easy to change (all other archs use that objdump).

Can you show us a dump like that with and without profiling, and
indicate which line is definitely the sign for profiling?

Thanks a lot,
--Jeroen

-- 
Jeroen van Wolffelaar
Jeroen@wolffelaar.nl (also for Jabber & MSN; ICQ: 33944357)
http://Jeroen.A-Eskwadraat.nl



Reply to: