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/s_tan.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/s_tan.c')
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_tan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/ieee754/dbl-64/s_tan.c b/sysdeps/ieee754/dbl-64/s_tan.c index 54f863e544..cc0dbbbc9f 100644 --- a/sysdeps/ieee754/dbl-64/s_tan.c +++ b/sysdeps/ieee754/dbl-64/s_tan.c @@ -41,6 +41,7 @@ #include <math.h> #include <math_private.h> #include <fenv.h> +#include <stap-probe.h> #ifndef SECTION # define SECTION @@ -838,6 +839,7 @@ tanMp (double x) p = 32; __mptan (x, &mpy, p); __mp_dbl (&mpy, &y, p); + LIBC_PROBE (slowtan, 2, &x, &y); return y; } |