gettimeofday() in hping
Kris Kennaway
kris at FreeBSD.org
Tue Jan 22 10:42:28 PST 2008
Stefan Lambrev wrote:
>> You should use hwpmc to verify where the application is really
>> spending time, since gettimeofday doesn't seem to account for it all.
> pmc: Unknown Intel CPU.
> module_register_init: MOD_LOAD (hwpmc, 0xffffffff8029906d,
> 0xffffffff8054c500) error 78
OK, this is the famous problem with modern CPUs that jkoshy has declined
to work around :( There are patches for this in perforce, see
http://perforce.freebsd.org/changeView.cgi?CH=126189
> What was the other way to do this profiling?
No other that I have found to be useful.
> Can ktrace help?
Not really, it only tells you what syscalls were made.
Kris
More information about the freebsd-hackers
mailing list