about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-11-20 07:46:48 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-11-20 07:46:48 +0530
commitf3fd2628d8e86343f2add6de5be602cfc2cb8e00 (patch)
tree340ba983d4bbca3e2eaa24c0c5657c071da039db /sysdeps
parentb2f386c18f1e8c832c673bd813d56a07391c666d (diff)
downloadglibc-f3fd2628d8e86343f2add6de5be602cfc2cb8e00.tar.gz
glibc-f3fd2628d8e86343f2add6de5be602cfc2cb8e00.tar.xz
glibc-f3fd2628d8e86343f2add6de5be602cfc2cb8e00.zip
Add systemtap probe markers for sin, cos, asin and acos
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/ieee754/dbl-64/sincos32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/ieee754/dbl-64/sincos32.c b/sysdeps/ieee754/dbl-64/sincos32.c
index 49aa148953..e42fd27250 100644
--- a/sysdeps/ieee754/dbl-64/sincos32.c
+++ b/sysdeps/ieee754/dbl-64/sincos32.c
@@ -43,6 +43,7 @@
 #include "mpa.h"
 #include "sincos32.h"
 #include <math_private.h>
+#include <stap-probe.h>
 
 #ifndef SECTION
 # define SECTION
@@ -149,6 +150,7 @@ __sin32 (double x, double res, double res1)
   /* if a > 0 return min (res, res1), otherwise return max (res, res1).  */
   if ((a.d[0] > 0 && res >= res1) || (a.d[0] <= 0 && res <= res1))
     res = res1;
+  LIBC_PROBE (slowasin, 2, &res, &x);
   return res;
 }
 
@@ -182,6 +184,7 @@ __cos32 (double x, double res, double res1)
   /* if a > 0 return max (res, res1), otherwise return min (res, res1).  */
   if ((a.d[0] > 0 && res <= res1) || (a.d[0] <= 0 && res >= res1))
     res = res1;
+  LIBC_PROBE (slowacos, 2, &res, &x);
   return res;
 }
 
@@ -240,6 +243,7 @@ __mpsin (double x, double dx, bool reduce_range)
     default:
       __mp_dbl (&s, &y, p);
     }
+  LIBC_PROBE (slowsin, 3, &x, &dx, &y);
   return y;
 }
 
@@ -298,6 +302,7 @@ __mpcos (double x, double dx, bool reduce_range)
     default:
       __mp_dbl (&c, &y, p);
     }
+  LIBC_PROBE (slowcos, 3, &x, &dx, &y);
   return y;
 }