aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gmon
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* libc: don't try to export mexitcountBrooks Davis2024-04-161-1/+0
| | | | | | | This requires that mcount.c be compiled with -DGUPROF and we provide no mechanism to do so. Differential Revision: https://reviews.freebsd.org/D44186
* lib: Remove ancient SCCS tags.Warner Losh2023-11-274-9/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* libc: Remove empty comments in Symbol.mapBrooks Davis2023-11-151-3/+0
| | | | | | | These were left over from $FreeBSD$ removal. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D42612
* libc: Purge unneeded cdefs.hWarner Losh2023-11-012-2/+0
| | | | | | | | | These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-162-4/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: one-line .h patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
* mcount: tidy up ANSIficationEd Maste2018-10-201-2/+1
| | | | | | | | | | | | libc/gmon's mcount was ANSIfied in r124180, with libkern following over a decade later, in r325988, but some minor discrepancies remained. Update libc/gmon's mexitcount to an ANSI C function definition, and use (void) for libkern-only functions that take no arguments. Reported by: bde Notes: svn path=/head/; revision=339505
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-202-0/+4
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-283-3/+3
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Replace the last non-optional use of sbrk() in the tree with mmap().Brooks Davis2016-01-211-11/+4
| | | | | | | | | | | | | All gmon want's is a region of memory without the overhead of malloc(). Just mapping some pages with mmap is an easy way to accomplish this. Approved by: jhb, cem, emaste Obtained from: CheriBSD (bf33e1e70b368ababde74aa3ac70d108c8a52c69) Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D5005 Notes: svn path=/head/; revision=294523
* Add declaration to eliminate -Wmissing-prototypes warningCraig Rodrigues2015-09-201-0/+1
| | | | Notes: svn path=/head/; revision=288009
* Use ANSI C prototypes.Craig Rodrigues2015-09-141-6/+3
| | | | | | | Eliminates gcc 4.9 warnings. Notes: svn path=/head/; revision=287793
* Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}Marcel Moolenaar2014-03-041-2/+2
| | | | | | | | | | | | | | if not already defined. This allows building libc from outside of lib/libc using a reach-over makefile. A typical use-case is to build a standard ILP32 version and a COMPAT32 version in a single iteration by building the COMPAT32 version using a reach-over makefile. Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=262722
* libc: Use O_CLOEXEC when writing gmon files (cc -pg).Jilles Tjoelker2013-08-131-2/+2
| | | | Notes: svn path=/head/; revision=254301
* mdoc: end list context with El.Joel Dahl2012-05-121-0/+1
| | | | Notes: svn path=/head/; revision=235327
* Allow users of gprof to get per run output files (using the pid)Eitan Adler2012-04-292-1/+12
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=234819
* Provide 64-bit PowerPC support in libc.Nathan Whitehorn2010-07-101-1/+3
| | | | | | | Obtained from: projects/ppc64 Notes: svn path=/head/; revision=209878
* Simplify the calculation of s_scale by rewriting the FP expression toMarcel Moolenaar2010-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 Notes: svn path=/head/; revision=209620
* On powerpc, calculate s_scale using the non-FP version previouslyMarcel Moolenaar2010-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. Notes: svn path=/head/; revision=209604
* Fix many "function declaration isn't a prototype" warnings in libc.Ed Schouten2009-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/. Notes: svn path=/head/; revision=200150
* Remove .mcount from gmon's Symbol map and add it to the appropriateDaniel Eischen2007-05-131-1/+0
| | | | | | | | | | arch. It can be named differently depending on the arch (.mcount, _mcount). Submitted by: marius Notes: svn path=/head/; revision=169525
* Use C comments since we now preprocess these files with CPP.Daniel Eischen2007-04-291-4/+6
| | | | Notes: svn path=/head/; revision=169092
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-093-12/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Backed out rev.1.10 (a special case for amd64). The amd64 mcount codeBruce Evans2006-10-281-6/+0
| | | | | | | never needed any frame pointers for itself. Notes: svn path=/head/; revision=163739
* Add each directory's symbol map file to SYM_MAPS.Daniel Eischen2006-03-131-0/+2
| | | | Notes: svn path=/head/; revision=156613
* Add symbol maps and initial symbol version definitions to libc.Daniel Eischen2006-03-131-0/+13
| | | | | | | Reviewed by: davidxu Notes: svn path=/head/; revision=156608
* The minbrk symbol is hidden the same on powerpc as other FreeBSD platforms.Peter Grehan2005-12-291-1/+1
| | | | Notes: svn path=/head/; revision=153814
* Make SYNOPSIS compile.Ruslan Ermilov2005-11-231-3/+3
| | | | Notes: svn path=/head/; revision=152716
* Fix race by using atomic operation, with this change, both libpthreadDavid Xu2005-05-061-3/+5
| | | | | | | and libthr now can run profiling on SMP. Notes: svn path=/head/; revision=145959
* Enable building with LIBC_SCCS defined.David E. O'Brien2004-10-162-2/+2
| | | | | | | Bug submitted by: Andrea Campi <andrea+freebsd_current@webcom.it> Notes: svn path=/head/; revision=136582
* Fix format strings to unbreak with -DDEBUG option.Jun Kuriyama2004-09-101-2/+2
| | | | Notes: svn path=/head/; revision=135024
* Document the location of the header file which declares the functionBruce M Simpson2004-06-141-1/+2
| | | | | | | | | prototypes documented in this manual page. PR: bin/4459 Notes: svn path=/head/; revision=130485
* For amd64, explicitly compile mcount.po, rather than copying mcount.o. WePeter Wemm2004-05-181-0/+6
| | | | | | | | need to compile it with -fno-omit-frame-pointers since the mcount code depends on that, and by default it omits them without -pg. Notes: svn path=/head/; revision=129407
* Use ANSI C function definition for `_mcount' and remove `static'Jacques Vidrine2004-01-061-2/+2
| | | | | | | | | prototype from header file. Discussed with: bde, maybe one year ago Notes: svn path=/head/; revision=124180
* Use C99 compatible ASM statements.David E. O'Brien2003-06-021-2/+2
| | | | Notes: svn path=/head/; revision=115665
* Add __amd64__ to the list of things that use HIDENAME() to hide minbrkPeter Wemm2003-04-301-1/+1
| | | | Notes: svn path=/head/; revision=114320
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-0/+2
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Fixed abuses of the .Ar and .Em macros.Ruslan Ermilov2002-12-181-1/+1
| | | | Notes: svn path=/head/; revision=108040
* mdoc(7) police: "The .Fn function".Ruslan Ermilov2002-12-181-0/+2
| | | | Notes: svn path=/head/; revision=108037
* libc_r wasn't so tied to libc for 22 months.Ruslan Ermilov2002-11-181-3/+1
| | | | Notes: svn path=/head/; revision=107052
* Initiate deorbit burn for the i386-only a.out related support. Moves arePeter Wemm2002-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 Notes: svn path=/head/; revision=103436
* Check for defined(__i386__) instead of just defined(i386) since the compilerAlfred Perlstein2002-05-301-1/+1
| | | | | | | will be updated to only define(__i386__) for ANSI cleanliness. Notes: svn path=/head/; revision=97551
* Do not use __progname directly (except in [gs]etprogname(3)).Mark Murray2002-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. Notes: svn path=/head/; revision=93399
* Don't leave stack garbage in the reserved fields of the header.Bruce Evans2002-02-151-0/+1
| | | | Notes: svn path=/head/; revision=90668
* Fixed style bugs in rev.1.5:Bruce Evans2002-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(). Notes: svn path=/head/; revision=90667
* * Remove __P and convert to ANSI prototypes.David E. O'Brien2002-02-012-19/+17
| | | | | | | | * Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's. Notes: svn path=/head/; revision=90046
* We use HIDENAME(minbrk) on sparc64 too.Jake Burkholder2001-12-291-1/+1
| | | | Notes: svn path=/head/; revision=88607