aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-04-19 23:27:27 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-04-19 23:27:27 +0200
commit6f8222a1c52a9e577925b90d16b95be10ef50596 (patch)
tree45b53fc1fea77d6e8c7c1829145f67c4a7baab6f /sysdeps/mach/hurd/profil.c
parenthurd: fix profiling short-living processes (diff)
downloadglibc-6f8222a1c52a9e577925b90d16b95be10ef50596.tar.gz
glibc-6f8222a1c52a9e577925b90d16b95be10ef50596.tar.bz2
glibc-6f8222a1c52a9e577925b90d16b95be10ef50596.zip
Fix gprof timing
* sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick frequency instead of tick length in us.
Diffstat (limited to 'sysdeps/mach/hurd/profil.c')
-rw-r--r--sysdeps/mach/hurd/profil.c2
1 files changed, 1 insertions, 1 deletions
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)