summaryrefslogtreecommitdiff
path: root/lib/libc/gmon/mcount.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-201-0/+2
| | | | | | | | | | | | | | | | | 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-281-1/+1
| | | | | | | | | | | | 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
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* 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-161-1/+1
| | | | | | | Bug submitted by: Andrea Campi <andrea+freebsd_current@webcom.it> Notes: svn path=/head/; revision=136582
* 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
* * Remove __P and convert to ANSI prototypes.David E. O'Brien2002-02-011-14/+12
| | | | | | | | * Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's. Notes: svn path=/head/; revision=90046
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-10/+10
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55206
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Enable gmon/mcount on alpha.Hidetoshi Shimokawa1999-07-161-5/+1
| | | | Notes: svn path=/head/; revision=48838
* Change a test for NETBSD_SYSCALLS to __alpha__. We're not ready toJohn Birrell1998-09-051-2/+2
| | | | | | | do profiling on alpha yet. Notes: svn path=/head/; revision=38846
* Changed to the C9x draft spelling of the (unsigned) integral typeBruce Evans1998-07-141-12/+12
| | | | | | | | | | | suitable for holding object pointers (ptrint_t -> uintptr_t). Added corresponding signed type (intptr_t). Changed/added corresponding non-C9x types for function pointers to match. Don't use nonstandard types to implement these types, and don't comment on them in <machine/types.h>. Notes: svn path=/head/; revision=37629
* Oops, fptrint_t still needs to be declared in <machine/profile.h> in theBruce Evans1998-07-101-9/+1
| | | | | | | | !KERNEL case. The kludge to get it declared in libc/gmon/mcount.c wasn't sufficient because fptrint_t is used in <sys/gmon.h>. Notes: svn path=/head/; revision=37542
* Added a kernel-only typedef (ptrint_t) giving an integral type that isBruce Evans1998-07-101-2/+11
| | | | | | | | | | | | | least unsuitable for holding an object pointer. This should have been used to fix warnings about casts between pointers and ints on alphas. Moved corresponding existing general typedef (fptrint_t) for function pointers from the i386 <machine/profile.h> to a kernel-only typedef in <machine/types.h>. Kludged libc/gmon/mcount.c so that it can still see this typedef. Notes: svn path=/head/; revision=37540
* These files are very specific to FreeBSD kernels, so silently compileJohn Birrell1998-03-091-1/+4
| | | | | | | no code when building a library with __NETBSD_SYSCALLS defined. Notes: svn path=/head/; revision=34361
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Cleaned up interrupt masking by declaring the state variable in aBruce Evans1996-08-281-6/+5
| | | | | | | | | | machine-dependent macro and passing it to all machine-dependent macros. Eliminated the state variable for the GUPROF case. Notes: svn path=/head/; revision=17879
* Use PAGE_SIZE instead of NBPGPoul-Henning Kamp1996-05-021-2/+2
| | | | Notes: svn path=/head/; revision=15529
* Added $Id$.Bruce Evans1995-12-301-0/+4
| | | | Notes: svn path=/head/; revision=13115
* Implemented non-statistical kernel profiling. This is based onBruce Evans1995-12-291-8/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | looking at a high resolution clock for each of the following events: function call, function return, interrupt entry, interrupt exit, and interesting branches. The differences between the times of these events are added at appropriate places in a ordinary histogram (as if very fast statistical profiling sampled the pc at those places) so that ordinary gprof can be used to analyze the times. gmon.h: Histogram counters need to be 4 bytes for microsecond resolutions. They will need to be larger for the 586 clock. The comments were vax-centric and wrong even on vaxes. Does anyone disagree? gprof4.c: The standard gprof should support counters of all integral sizes and the size of the counter should be in the gmon header. This hack will do until then. (Use gprof4 -u to examine the results of non-statistical profiling.) config/*: Non-statistical profiling is configured with `config -pp'. `config -p' still gives ordinary profiling. kgmon/*: Non-statistical profiling is enabled with `kgmon -B'. `kgmon -b' still enables ordinary profiling (and distables non-statistical profiling) if non-statistical profiling is configured. Notes: svn path=/head/; revision=13107
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8870
* Added support for kernel profiling to mcount.cPaul Richards1994-09-151-0/+4
| | | | Notes: svn path=/head/; revision=2800
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+178
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573