summaryrefslogtreecommitdiffstats
path: root/lib/libc/gmon/gmon.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* make fixed-sized fixed-value mib[] arrays be constderaadt2020-10-121-4/+2
| | | | ok guenther tb millert
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-4/+4
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* Delete casts to off_t and size_t that are implied by assignmentsguenther2016-09-211-4/+4
| | | | | | | or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
* Declare moncontrol(3) APIs in <sys/gmon.h>guenther2016-05-071-4/+3
| | | | | | | Export _gmonparam again. Make gcrt0.o use an reserved name for _monstartup() ok millert@
* (char *)0 -> NULLmmcc2016-03-141-2/+2
|
* environ and __progname are not declared in a public header; declare themguenther2016-03-131-2/+1
| | | | | | in libc's hidden/stdlib.h instead of in each .c file that needs one ok deraadt@ gsoares@ mpi@
* replace (void *)0 with NULLmmcc2016-01-191-4/+4
|
* Wrap moncontrol() so that internal calls go direct and it's a weak symbolguenther2015-09-141-1/+3
|
* fix a fd leak in an error path in code under #ifdef DEBUGjsg2015-05-061-1/+2
|
* Move to the <limits.h> universe.deraadt2015-01-161-2/+1
| | | | review by millert, binary checking process with doug, concept with guenther
* Back out per-CPU kernel profiling, it shouldn't modify a public headermpi2013-02-121-4/+1
| | | | at this moment.
* Unbreak the tree by adding missing defines. Forgot to sync in previousmpi2013-02-121-1/+4
| | | | spotted by todd@.
* Allocate space for profiling data using mmap instead of sbrk.millert2005-11-201-21/+50
| | | | Tested by myself and pedro@
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* be more careful about snprintf return value; ok beck cloderderaadt2005-04-211-5/+5
|
* deregister & ansify. ok deraad@ marco@ cloder@otto2005-03-231-8/+5
|
* protosderaadt2003-06-251-2/+4
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Zero out the reserved fields of struct gmonhdr rather than leavingcloder2002-11-241-1/+2
| | | | | | stack garbage in them. From FreeBSD. OK deraadt@
* remaining easy snprintf conversionsderaadt2002-05-251-3/+3
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-3/+3
|
* make that 0664 until we find out why umask is not being appliedmillert1998-07-151-2/+2
|
* open gmon.out mode 0644, not 0666millert1998-07-151-2/+2
|
* use STDERR_FILENO; kleinkderaadt1998-07-051-2/+2
|
* tabify + trailing blankskstailey1997-07-231-7/+7
|
* Remove dead codetholo1996-09-151-1/+2
| | | | | | Remove unused variables Silence some warnings lint(1) is your friend
* protect getenv, do not oflow, fix unused debug; bitblt and deraadtderaadt1996-09-051-9/+11
|
* Fix RCS idstholo1996-08-191-7/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* use p->hashfraction when doing non-time-critical calculations, rather thanderaadt1996-06-181-3/+3
| | | | | | | | | | | using HASHFRACTION directly. in time-critical calculations, if HASHFRACTION is a power of two, check that p->hashfraction == HASHFRACTION and if so do the calculation with the compiled-in value so that the compiler can optimize out (potentially) expensive divisions. if p->hashfraction != HASHFRACTION, actually do the division. This has the result that on machines with slow division, the division can be optimized out of the common case, but that if HASHFRACTION changes from the compiled-in value (for whatever reason), profiling will still work. Changes suggested by Chris Torek.
* Protect internal mcount symbol from lint(1)tholo1996-03-251-1/+1
| | | | Use __asm, not asm
* from cgd@netbsd:deraadt1995-12-141-5/+54
| | | | | kill a gratuitous cast of lowpc to an int Add support for PROFDIR environment variable
* initial import of NetBSD treederaadt1995-10-181-0/+260