gettimeofday() in hping
Kris Kennaway
kris at FreeBSD.org
Thu Jan 24 02:58:07 PST 2008
Stefan Lambrev wrote:
>> You also need changes to the userland libpmc and pmcstat. They should
>> also be in that (or related) p4 changeset though.
> Those are the files that I fetched from p4
>
> /usr/src/lib/libpmc/libpmc.c - rev2
> /usr/src/sys/amd64/include/pmc_mdep.h rev2
> /usr/src/sys/dev/hwpmc/hwpmc_x86.c rev2
> /usr/src/sys/modules/hwpmc/Makefile rev3
>
> but I rebuild only kernel - I'll try to rebuild everything :)
> do you think this will help getting hwpmc working?
I can only say that it mostly works for me :)
> Btw I have hwpmc working on other machine (it's with FreeBSD
> 6.3-prerelease).
> Can you tell me what stats exactly you need from running hping?
A gprof trace with the -S instructions counter should be enough to get
oriented.
Kris
More information about the freebsd-hackers
mailing list