Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux/profile.c')
-rw-r--r--newlib/libc/sys/linux/profile.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/profile.c b/newlib/libc/sys/linux/profile.c
new file mode 100644
index 000000000..f36e2c753
--- /dev/null
+++ b/newlib/libc/sys/linux/profile.c
@@ -0,0 +1,12 @@
+/* libc/sys/linux/profile.c - profiling system call */
+
+#include <errno.h>
+#include <sys/types.h>
+#include <machine/syscall.h>
+
+#define __NR_profil 98
+
+int profil(u_short *buf, size_t bufsiz, size_t offset,
+ u_int scale);
+
+_syscall4(int,profil,unsigned short *,buf,size_t,bufsiz,size_t,offset,unsigned int, scale)