Fix gprof timing

* sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
	frequency instead of tick length in us.
This commit is contained in:
Samuel Thibault 2016-04-19 23:27:27 +02:00
parent 593285ac15
commit 6f8222a1c5
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@
* sysdeps/mach/hurd/profil.c (update_waiter): Initialize
profil_reply_port.
(profile_waiter): Do not initialize profil_reply_port.
* sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
frequency instead of tick length in us.
2016-04-18 Wilco Dijkstra <wdijkstr@arm.com>

View File

@ -102,7 +102,7 @@ update_waiter (u_short *sample_buffer, size_t size, size_t offset, u_int scale)
int
__profile_frequency (void)
{
return profile_tick;
return 1000000 / profile_tick;
}
libc_hidden_def (__profile_frequency)