summaryrefslogtreecommitdiffstats
path: root/lib/libc/gmon/mcount.c
Commit message (Collapse)AuthorAgeFilesLines
* Use ANSI C function definition for `_mcount' and remove `static'nectar2004-01-061-2/+2
| | | | | | prototype from header file. Discussed with: bde, maybe one year ago
* * Remove __P and convert to ANSI prototypes.obrien2002-02-011-14/+12
| | | | | * Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's.
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-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.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Enable gmon/mcount on alpha.simokawa1999-07-161-5/+1
|
* Change a test for NETBSD_SYSCALLS to __alpha__. We're not ready tojb1998-09-051-2/+2
| | | | do profiling on alpha yet.
* Changed to the C9x draft spelling of the (unsigned) integral typebde1998-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>.
* Oops, fptrint_t still needs to be declared in <machine/profile.h> in thebde1998-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>.
* Added a kernel-only typedef (ptrint_t) giving an integral type that isbde1998-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.
* These files are very specific to FreeBSD kernels, so silently compilejb1998-03-091-1/+4
| | | | no code when building a library with __NETBSD_SYSCALLS defined.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Cleaned up interrupt masking by declaring the state variable in abde1996-08-281-6/+5
| | | | | | | machine-dependent macro and passing it to all machine-dependent macros. Eliminated the state variable for the GUPROF case.
* Use PAGE_SIZE instead of NBPGphk1996-05-021-2/+2
|
* Added $Id$.bde1995-12-301-0/+4
|
* Implemented non-statistical kernel profiling. This is based onbde1995-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.
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Added support for kernel profiling to mcount.cpaul1994-09-151-0/+4
|
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+178
OpenPOWER on IntegriCloud