diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-10-11 22:37:53 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-10-11 22:37:53 +0530 |
commit | 10e1cf6b73f1598e57d24933a0949dbeffa2c8a0 (patch) | |
tree | 2dd2ce2fe7144de439047f6dddbeb2f660746d94 /sysdeps/ieee754/dbl-64/e_atan2.c | |
parent | 3d110c7c6e6549bd4124fce49cdc672f9e449799 (diff) | |
download | glibc-10e1cf6b73f1598e57d24933a0949dbeffa2c8a0.tar.gz glibc-10e1cf6b73f1598e57d24933a0949dbeffa2c8a0.tar.xz glibc-10e1cf6b73f1598e57d24933a0949dbeffa2c8a0.zip |
Add systemtap markers to math function slow paths
Add systemtap probes to various slow paths in libm so that application developers may use systemtap to find out if their applications are hitting these slow paths. We have added probes for pow, exp, log, tan, atan and atan2.
Diffstat (limited to 'sysdeps/ieee754/dbl-64/e_atan2.c')
-rw-r--r-- | sysdeps/ieee754/dbl-64/e_atan2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/ieee754/dbl-64/e_atan2.c b/sysdeps/ieee754/dbl-64/e_atan2.c index 4ebe9c01f9..40756223ce 100644 --- a/sysdeps/ieee754/dbl-64/e_atan2.c +++ b/sysdeps/ieee754/dbl-64/e_atan2.c @@ -42,6 +42,7 @@ #include "uatan.tbl" #include "atnat2.h" #include <math_private.h> +#include <stap-probe.h> #ifndef SECTION # define SECTION @@ -597,7 +598,11 @@ atan2Mp (double x, double y, const int pr[]) __mp_dbl (&mpz1, &z1, p); __mp_dbl (&mpz2, &z2, p); if (z1 == z2) - return z1; + { + LIBC_PROBE (slowatan2, 4, &p, &x, &y, &z1); + return z1; + } } + LIBC_PROBE (slowatan2_inexact, 4, &p, &x, &y, &z1); return z1; /*if impossible to do exact computing */ } |