summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof/gprof.h
Commit message (Collapse)AuthorAgeFilesLines
* Enable gprof on alpha.simokawa1999-07-161-1/+4
| | | | | | * alpha.{c,h} are same as i386.{c,h}. * Force address calculation to be done in long precision(64bit on alpha) rather than double precision(52bit).
* Construct the profile file name from the name of the executable. A programjmz1999-05-231-1/+0
| | | | | | | compiled with -pg and run will generate a file <executable-filename>.gmon, not gmon.out. PR: bin/8426
* Make profiling work for ELF. gprof now autodetects the format ofjdp1998-09-071-10/+6
| | | | | | | | | | | the executable file, so it will work for both a.out and ELF format files. I have split the object format specific code into separate source files. It's cleaner than it was before, but it's still pretty crufty. Don't cheat on your make world for this update. A lot of things have to be rebuilt for it to work, including the compiler and all of the profiled libraries.
* 32-bit counters aren't large enough for 100+MHz clocks. Use 64-bitbde1997-07-131-1/+1
| | | | | counters. `4' in GPROF4 and gprof4 now means 8. gprof4 needs to be recompiled to match the kernel.
* Use err(3).charnier1997-07-101-5/+0
|
* Use a (signed) int32_t counter instead of an `unsigned int' counterbde1996-10-161-1/+1
| | | | | | | | | | for the GPROF4 case. This allows a simpler method to be used for non-statistical profiling (it allows overhead adjustments to be subtracted from one counter without harm if that counter goes negative; otherwise the adjustment would have to be distributed). 32 bit counters were already too small for GPROF4 with a 200MHz clock. int64_t counters should be used.
* Implemented non-statistical kernel profiling. This is based onbde1995-12-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+347
OpenPOWER on IntegriCloud