summaryrefslogtreecommitdiffstats
path: root/lib/libc/gmon/gmon.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow users of gprof to get per run output files (using the pid)eadler2012-04-291-1/+6
| | | | | | | | | PR: bin/99800 Submitted by: Peter Jeremy <peterjeremy@optushome.com.au> Reviewed by: jilles (code) Reviewed by: dwhite (doc) Approved by: cperciva MFC after: 1 week
* Provide 64-bit PowerPC support in libc.nwhitehorn2010-07-101-1/+3
| | | | Obtained from: projects/ppc64
* Simplify the calculation of s_scale by rewriting the FP expression tomarcel2010-07-011-20/+5
| | | | | | | | | use uintmax_t instead of float and thereby eliminating the need for a non-FP version. Tested on: amd64, ia64 & powerpc (book-E) Suggested by: bde MFC after: 1 month
* On powerpc, calculate s_scale using the non-FP version previouslymarcel2010-06-301-1/+1
| | | | | | | | | | | | specific to hp300. Since FreeBSD does not support hp300, hp300 has been removed from the condition altogether. The FP version broke profiling on powerpc due to invalid results. Casting to double instead of float resolved the issue, but with Book-E not having a FP unit, the non-FP version looked preferrable. Note that even on AIM hardware the FP version yielded an invalid value for s_scale, so the problem is most likely with the compiler or with the expression itself.
* Fix many "function declaration isn't a prototype" warnings in libc.ed2009-12-051-1/+1
| | | | | I've only fixed code that seems to be written by `us'. There are still many warnings like this present in resolv/, rpc/, stdtime/ and yp/.
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-091-4/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* The minbrk symbol is hidden the same on powerpc as other FreeBSD platforms.grehan2005-12-291-1/+1
|
* Enable building with LIBC_SCCS defined.obrien2004-10-161-1/+1
| | | | Bug submitted by: Andrea Campi <andrea+freebsd_current@webcom.it>
* Fix format strings to unbreak with -DDEBUG option.kuriyama2004-09-101-2/+2
|
* Use C99 compatible ASM statements.obrien2003-06-021-2/+2
|
* Add __amd64__ to the list of things that use HIDENAME() to hide minbrkpeter2003-04-301-1/+1
|
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-171-1/+1
| | | | | | | | | | | | | | | under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha
* Check for defined(__i386__) instead of just defined(i386) since the compileralfred2002-05-301-1/+1
| | | | will be updated to only define(__i386__) for ANSI cleanliness.
* Do not use __progname directly (except in [gs]etprogname(3)).markm2002-03-291-6/+5
| | | | | | Also, make an internal _getprogname() that is used only inside libc. For libc, getprogname(3) is a weak symbol in case a function of the same name is defined in userland.
* Don't leave stack garbage in the reserved fields of the header.bde2002-02-151-0/+1
|
* Fixed style bugs in rev.1.5:bde2002-02-151-4/+5
| | | | | | | | | | - missing whitespace - strange version of warn() built out of warnx() + strerror(). Just use warn(). - conversion of just one of the two perror()'s to warn*() Actually use _warn() instead of _warn(), to keep up with namespace- unpollution for warn().
* * Remove __P and convert to ANSI prototypes.obrien2002-02-011-5/+5
| | | | | * Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's.
* We use HIDENAME(minbrk) on sparc64 too.jake2001-12-291-1/+1
|
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-01-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),jasone2000-01-271-9/+9
| | | | | | | | | | | | | | | | | just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen
* Add three-tier symbol naming in support of POSIX thread cancellationjasone2000-01-121-9/+11
| | | | | | points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read().
* Enable gmon/mcount on alpha.simokawa1999-07-161-8/+2
|
* Change the profile data file name from gmon.out to progname.gmonjb1998-09-051-4/+11
| | | | where progname comes from __progname in crt0 or crt1.
* These files are very specific to FreeBSD kernels, so silently compilejb1998-03-091-0/+2
| | | | no code when building a library with __NETBSD_SYSCALLS defined.
* Add support to enable libc to be compiled in ELF format. (#ifdef __ELF__)peter1996-05-051-0/+4
| | | | | | | | | | | In a nutshell, this macroizes the local/global symbol scoping rules that are different in a.out and ELF. It also makes the i386 assembler stubs conform to i386 PIC calling conventions - the a.out ld.so didn't object, but the ELF one needs it as it implements PIC jumps via PLT's as well as calls. The a.out rtld only worked because it was accidently snooping the grandparent calling function's return address off the stack.. This also affects the libc_r code a little, because of cpp macro nesting.
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+254
OpenPOWER on IntegriCloud