summaryrefslogtreecommitdiffstats
path: root/lib/libc/gmon (follow)
Commit message (Collapse)AuthorAgeFilesLines
* make fixed-sized fixed-value mib[] arrays be constderaadt2020-10-121-4/+2
| | | | ok guenther tb millert
* The mcount.po target is special cased here since mcount.c should not betb2019-12-201-2/+3
| | | | | | | | | compiled with pie or profiling enabled. This was missed when the independent depend target was removed. Align this target with the inference rules in bsd.lib.mk. This now creates mcount.d as it should and fixes 'make clean' which previously left mcount.po.d behind. ok guenther
* 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-072-7/+9
| | | | | | | Export _gmonparam again. Make gcrt0.o use an reserved name for _monstartup() ok millert@
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-3/+1
| | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
* (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-162-4/+3
| | | | review by millert, binary checking process with doug, concept with guenther
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-211-4/+5
|
* Fix kernel profiling on MP systems by using per-CPU buffers and teachmpi2013-03-121-8/+14
| | | | | | | | | | | kgmon(8) to deal with them, this time without public header changes. Previously various CPUs were iterating over the same global buffer at the same time to modify it and never ended. This diff includes some ideas submited by Thor Simon to NetBSD via miod@. ok deraadt@, mikeb@, haesbaert@
* Back out per-CPU kernel profiling, it shouldn't modify a public headermpi2013-02-122-19/+9
| | | | at this moment.
* Unbreak the tree by adding missing defines. Forgot to sync in previousmpi2013-02-121-1/+4
| | | | spotted by todd@.
* Sync with libkern's copy. No functional change.mpi2013-02-111-8/+15
|
* We cannot just copy mcount.o to mcount.po, since the former may be PIE andpascal2012-08-221-4/+7
| | | | | | profiling does not work well along with PIE. ok deraadt@ guenther@
* Mark _MCOUNT_DECL as __used to prevent gcc4 from optimizing it away when itkettenis2010-05-091-2/+2
| | | | | | is only referenced from inline asm. ok jsg@
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* 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-082-8/+2
| | | | | | 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-232-16/+13
|
* protosderaadt2003-06-251-2/+4
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-023-18/+6
| | | | 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-162-5/+5
|
* - remove all trailing whitespaceaaron1999-07-091-3/+3
| | | | | | | | | | * except when it is escaped with a `\' at the end of the line - fix remaining .Nm usage as well - this is from a patch I received from kwesterback@home.com, who has been working on some scripts for fixing formatting errors in mdoc'd man pages Ok, so there could be a cost/benefit debate with this commit, but since I have the patch we might as well commit it...
* remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonaaron1999-05-231-2/+2
| | | | is used instead; kwesterback@home.com
* Add thread-safety to libc, so that libc_r will build (on i386 at least).d1998-11-201-2/+2
| | | | | | | | | | | | | All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO
* man page repairs; aaron@ug.cs.dal.caderaadt1998-08-291-1/+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-232-10/+9
|
* proto; felix@mamba.pond.sub.orgderaadt1997-01-301-1/+2
|
* 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-194-19/+4
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* use p->hashfraction when doing non-time-critical calculations, rather thanderaadt1996-06-182-11/+18
| | | | | | | | | | | 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-252-1/+3
| | | | 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-184-0/+559