aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-09-27 06:49:48 +0000
committerRoland McGrath <roland@gnu.org>1995-09-27 06:49:48 +0000
commitea03559a9d4730f89105b6f5e674a0aaefc74b3b (patch)
tree103d2993e5d4eb971c2eec94c4c77a45abc8e2dc /posix
parentc709e372e8940b3f374b690d7eb7521e69ab4228 (diff)
downloadglibc-ea03559a9d4730f89105b6f5e674a0aaefc74b3b.tar
glibc-ea03559a9d4730f89105b6f5e674a0aaefc74b3b.tar.gz
glibc-ea03559a9d4730f89105b6f5e674a0aaefc74b3b.tar.bz2
glibc-ea03559a9d4730f89105b6f5e674a0aaefc74b3b.zip
Wed Sep 27 00:27:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* config.make.in (AS): New variable; set to `$(CC) -c'. * posix/unistd.h [__USE_BSD]: Declare profil. * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out of _dl_map_object. (_dl_map_object): Call it. * elf/link.h (_dl_map_object_from_fd): Declare it.
Diffstat (limited to 'posix')
-rw-r--r--posix/unistd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/posix/unistd.h b/posix/unistd.h
index eda44c96be..846653c75c 100644
--- a/posix/unistd.h
+++ b/posix/unistd.h
@@ -568,6 +568,15 @@ extern int vhangup __P ((void));
extern int revoke __P ((const char *__file));
+/* Enable statistical profiling, writing samples of the PC into at most
+ SIZE bytes of SAMPLE_BUFFER; every processor clock tick while profiling
+ is enabled, the system examines the user PC and increments
+ SAMPLE_BUFFER[((PC - OFFSET) / 2) * SCALE / 65536]. If SCALE is zero,
+ disable profiling. Returns zero on success, -1 on error. */
+extern int profil __P ((unsigned short int *__sample_buffer, size_t __size,
+ size_t __offset, unsigned int __scale));
+
+
/* Turn accounting on if NAME is an existing file. The system will then write
a record for each process as it terminates, to this file. If NAME is NULL,
turn accounting off. This call is restricted to the super-user. */