gprof profiling of dhcpd (solved)

Christian Hammers chammers at
Mon May 31 16:32:28 UTC 2010


Just to have it in the mailing list archive, I was pointed out off-list that
the following does the trick:

 ${PRODPATH}/bin/omshell << END
 server localhost
 port 7912
 key defomapi se32and6txxxxxxxxxxxx==
 new control
 set state=2



On Mon, 31 May 2010 15:12:43 +0200
"Hammers, Christian" <chammers at> wrote:

> Hello
> I'm trying to get a gmon.out from dhcpd but it seems only to get written if the
> daemon terminates itself, e.g. if I start if with --help.
> Has anybody an idea how to get the daemon to exit cleanly with exit() once it
> is running? I've tried killing it with -PROF, -TERM and -HUP but had no success.
> Also LD_PRELOADing obscure gprof_helper.c that I found on the Net did not help.
> bye,
> -christian-

NETCOLOGNE Gesellschaft für Telekommunikation mbH
Am Coloneum 9 | 50829 Köln
Tel: 0221 2222-8711 | Fax: 0221 2222-78711

Werner Hanf
Karl-Heinz Zankel
HRG 25580, AG Köln

More information about the dhcp-users mailing list