summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof
Commit message (Collapse)AuthorAgeFilesLines
* Remove 2 more unused doc Makefiles.trhodes2003-02-041-12/+0
|
* Add powerpc.h. Still missing powerpc.[ch] in gprof, but this getsgrehan2002-12-101-0/+3
| | | | | | the MI stuff out of the way. Approved: re (rwatson)
* mdoc(7) police: back out unproved changes in previous revision;ru2002-11-261-4/+4
| | | | | | | descriptions in the FILES section should be full sentences, as demonstrated in mdoc(7) and /usr/share/examples/mdoc/. Approved by: re
* Remove done() which was just exit() so use of warn()/err() can be made. Abortcharnier2002-10-1620-198/+238
| | | | | | | on allocation failure instead of displaying a warning and deferencing NULL pointer after. Spelling. Add prototypes. Add list of option in synopsis section of man page, -d is not referenced because available as a compile option. It should be made a runtime option btw.
* Consistently use FBSDIDobrien2002-06-309-13/+20
|
* Fix preprocessor directive syntax (text after #endif).wollman2002-05-306-53/+61
| | | | The style of this program is still atrocious (not fixed).
* 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.
* Use `The .Nm utility'charnier2002-04-201-6/+7
|
* Include <stdint.h> for definition of intmax_t and/or uintmax_t.mike2002-03-251-0/+1
|
* Make this build on sparc64.jake2002-03-103-0/+60
|
* Support runtime specification of the history counter type by whateverbde2002-03-062-18/+51
| | | | | | | | | | | | | generated the gmon data. The support is currently limited to what is easy to implement and/or needed: signedess: signed or insigned size: 8, 16, 32 or 64 bits format: a binary integer in gprof's format (gprof is not a cross-tool). High-resolution kernel profiling uses signed 64-bit counters. Normal kernel profiling and user profiling use unsigned 16-bit counters but should use 32-bit ones.
* Fixed some misspellings of 2 as sizeof(UNIT) so that they won't breakbde2002-03-063-13/+19
| | | | | | | | | | | | | | | | | things when sizeof(UNIT) becomes a runtime parameter. The relevant 2 is the one in profil(2)'s scaling of pc's to bucket numbers: bucket = (pc - offset) / 2 * profil_scale / 65536 gprof(1) must duplicate this scaling, bug for bug compatibly, so it must first do an integer division by 2 although this mainly makes scales larger than 65536 useless. sizeof(UNIT) was already wrong in gprof4, but there were no problems because the fake profil scale is a multiple of 2. There are also some rounding bugs in the scaling, but these are only problems if profil(2) is used directly to create unusual (and not useful) scales.
* Fixed printf format errors. In printgprof.c, also convert the scalebde2002-02-214-39/+39
| | | | | | without possibly losing lots of precision, and print the scale using %g instead of %d in case it is non-integral. %g might not be the best format for this.
* Added missing copyright. Obtain one and a vendor id from gprof.c. aout.cbde2002-02-212-2/+83
| | | | | | | was split off from gprof.c in rev.1.7 of the latter. elf.c is mostly new, but the old copyright sort of applies to it and is better than none. Use __FBSDID() for the FreeBSD id.
* Fixed a missing variable declaration so that gprof compiles with -DDEBUG.bde2002-02-211-0/+3
|
* Moved the definition of the machine-independent macro UNITS_TO_CODEbde2002-02-2111-9/+12
| | | | | | | | | | from <number of machines> machine-dependent headers to the one non-header here it is used so that it is easier to fix. This macro just divides the machine-dependent offset OFFSET_OF_CODE by the machine-independent scale factor sizeof(UNIT), as required for bug for bug compatibility with the scaling of pc's in gprof.c. UNIT is the type of a profiling counter, and its size has nothing to do with the correct scale factor except both are usually 2.
* Oops, forgot to remove the `beforeinstall' block.ru2001-12-171-5/+0
|
* Install files via FILES.ru2001-12-171-0/+2
|
* mdoc(7) police: kill whitespace at EOL.ru2001-11-201-1/+1
|
* Add -K support to gprof(1), which enables dynamic symbol resolution fromgreen2001-10-305-3/+87
| | | | | | | | | the currently-running kernel (and supercedes an executable file argument given). With this change, properly-compiled KLD modules are now able to be profiled. Obtained from: NAI Labs CBOSS project Funded by: DARPA
* Add ia64 support (stubs, just like i386, alpha)peter2001-10-233-0/+61
|
* Add hint about how we name profiled libraries (append _p at the right place).schweikh2001-08-141-0/+11
| | | | | | | PR: 8061 Submitted by: Brandon Gillespie <brandon@ice.cold.org> Reviewed by: joerg, ru MFC after: 5 weeks
* Remove whitespace at EOL.dd2001-07-151-7/+7
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* * include/elf.h has been repo copied to include/elf-hints.h, and it noobrien2001-05-021-1/+6
| | | | | | | | longer includes machine/elf.h. * consumers of elf.h now use the minimalist elf header possible. This change is motivated by Binutils 2.11.0 and too much clashing over our base elf headers and the Binutils elf headers.
* Grammar police: "its", not "it's", is the possessive form of "it".dd2001-04-151-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-191-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-4/+4
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* $Id$ -> $FreeBSD$peter1999-08-285-5/+5
|
* Enable gprof on alpha.simokawa1999-07-164-4/+62
| | | | | | * 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).
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Don't ignore weak symbols.dt1999-07-031-1/+0
| | | | | | | | | | EGCS assign weak symbols to inline functions it couldn't inline (e.g. virtual inline functions), template functions, etc. Omitting them result in quite bogus profile. Weak symbols created by __weak_reference are not really problem. Caught by: Ilya Segalovich <iseg@comptek.ru>
* Construct the profile file name from the name of the executable. A programjmz1999-05-233-14/+13
| | | | | | | 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-076-208/+345
| | | | | | | | | | | 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.
* Change MACHINE to MACHINE_ARCH to support MACHINE=pc98.jb1998-09-051-1/+1
|
* Don't ignore symbols containing "$". C++ destructors and otherjdp1998-08-081-4/+3
| | | | | | | | special functions have names containing dollar signs, and ignoring them causes gprof to produce incorrect and sometimes bizarre results. The comment in the original code said that dollar signs were excluded because they are used in Pascal labels. That's not much of an issue these days.
* Revert to original style.charnier1997-07-152-5/+8
|
* 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.
* Fix typo I introduced during last commit.charnier1997-07-111-2/+2
|
* Use err(3).charnier1997-07-105-43/+42
|
* Sort cross references.wosch1997-01-151-3/+3
|
* 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.
* Print times/call in ns if hz >= 10e7. hz will be this large for highbde1996-06-081-3/+8
| | | | | | | resolution profiling on Pentiums. On a 100MHz Pentium, the resolution is at best 10 ns and actually a few hundred ns, but units of 10's or 100's of ns would be inconvenient and the current units of 1 us are a bit too coarse.
* Correct some man page cross references and file location references.mpp1996-04-071-1/+1
|
* Xref clocks(7).joerg1996-04-051-0/+1
|
* Another round of man page cleanups.mpp1996-02-121-3/+3
| | | | Down to only about 100 items left to cleanup! :-)
* 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.
* Change `install' to `${INSTALL}' so that default install flags can bebde1995-07-251-1/+1
| | | | specified in the top level Makefiles.
* Remove trailing whitespace.rgrimes1995-05-3010-29/+29
|
OpenPOWER on IntegriCloud