diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-04-19 23:27:27 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-04-19 23:27:27 +0200 |
commit | 6f8222a1c52a9e577925b90d16b95be10ef50596 (patch) | |
tree | 45b53fc1fea77d6e8c7c1829145f67c4a7baab6f | |
parent | 593285ac1520e54467573c3a73cdda26a6a5acea (diff) | |
download | glibc-6f8222a1c52a9e577925b90d16b95be10ef50596.tar.gz glibc-6f8222a1c52a9e577925b90d16b95be10ef50596.tar.xz glibc-6f8222a1c52a9e577925b90d16b95be10ef50596.zip |
Fix gprof timing
* sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick frequency instead of tick length in us.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/profil.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 04f5693376..faa1e6396a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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> diff --git a/sysdeps/mach/hurd/profil.c b/sysdeps/mach/hurd/profil.c index be249bbbe3..a2c4e55bf5 100644 --- a/sysdeps/mach/hurd/profil.c +++ b/sysdeps/mach/hurd/profil.c @@ -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) |