summaryrefslogtreecommitdiff
path: root/usr.bin/gprof
Commit message (Collapse)AuthorAgeFilesLines
* Use NULL instead of 0 for pointers.Marcelo Araujo2016-05-163-6/+6
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=299877
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge head from 7/28Simon J. Gerraty2014-08-192-43/+0
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=270164
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * sync from headSimon J. Gerraty2013-04-1210-165/+115
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | Remove ia64.Marcel Moolenaar2014-07-072-43/+0
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes: o All directories named *ia64* o All files named *ia64* o All ia64-specific code guarded by __ia64__ o All ia64-specific makefile logic o Mention of ia64 in comments and documentation This excludes: o Everything under contrib/ o Everything under crypto/ o sys/xen/interface o sys/sys/elf_common.h Discussed at: BSDcan Notes: svn path=/head/; revision=268351
* | rework old-style functions prototypesPhilippe Charnier2013-02-1410-165/+115
|/ | | | | | | reduce WARNS=6 output Notes: svn path=/head/; revision=246783
* Fix resolving symbol names on ARM.Grzegorz Bernacki2012-05-251-0/+6
| | | | | | | | | | | | | | On ARM, binutils are adding '$a' symbols in the symbol table for every function (in addition to normal symbol). When gprof(1) looks up symbol name, it often reads '$a' instead of proper function name, because it find it first. With this fix, when read symbol name begins with '$' and previous symbol has the same address, it will use previous symbol name (which is proper function name). Obtained from: Semihalf Notes: svn path=/head/; revision=235975
* General mdoc(7) and typo fixes.Glen Barber2012-05-101-1/+1
| | | | | | | | | PR: 167696 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days Notes: svn path=/head/; revision=235211
* More fixes for correct printf length modifiers usr.bin/gprof.Dimitry Andric2011-12-172-4/+4
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=228629
* In usr.bin/gprof/aout.c, use the correct printf length modifier for aDimitry Andric2011-12-171-1/+1
| | | | | | | | | uint32_t. MFC after: 1 week Notes: svn path=/head/; revision=228628
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-1118-72/+0
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* Move most of the remaining USD/PSD/SMM papers into share/docUlrich Spörlein2010-12-0413-1359/+0
| | | | Notes: svn path=/head/; revision=216178
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Add missing #include for string routines.Ed Schouten2010-01-021-0/+1
| | | | Notes: svn path=/head/; revision=201383
* If running with "-K" really do not information about symbols from the a.outDavid E. O'Brien2009-01-121-1/+1
| | | | | | | | | | | | argument. Before this fix, after searching the currently-running kernel, we would still search the a.out argument - completely override the in-kernel list, essentially defeating the K flag's purpose. PR: 47387 Submitted by: Ryan Beasley <ryanb@goddamnbastard.org> Notes: svn path=/head/; revision=187116
* Remove reference to unimplemented "-c" option.Tom Rhodes2008-12-251-4/+1
| | | | | | | PR: 119338 Notes: svn path=/head/; revision=186487
* Add gprof MIPS MD header and enable building gprof.David E. O'Brien2008-09-021-0/+46
| | | | | | | Obtained from: Juniper Networks Notes: svn path=/head/; revision=182681
* Add mips support.Warner Losh2008-04-041-0/+3
| | | | Notes: svn path=/head/; revision=177926
* Remove alpha-specific stuff.Ruslan Ermilov2006-08-232-47/+0
| | | | Notes: svn path=/head/; revision=161547
* clone i386.h for powerpcPeter Grehan2005-12-291-0/+44
| | | | Notes: svn path=/head/; revision=153819
* Catch up with increasing the resolution suitable for high-res kernelBruce Evans2005-10-071-3/+13
| | | | | | | | | | profiling from microseconds to nanoseconds in 1996. Picoseconds are already needed. Describe the choice of units for the per-call times in detail. Notes: svn path=/head/; revision=151057
* Improve printing of self times in the flat profile for functions thatBruce Evans2005-10-071-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | appear to be never called: (1) If a function is never called according to its call count but it must have been called because its child time is nonzero, then print it in the flat profile. Previously, if its call count was zero then we only printed it in the flat profile if its self time was nonzero. (2) If a function has a zero call count but has a nonzero self or child time, then print its total self time in the self time per call column as a percentage of the total (self + child) time. It is not possible to print the times per call in this case because the call count is zero. Previously, this was handled by leaving both per-call columns blank. The self time is printed in another column but there was no way to recover the total time. (1) partially fixes the case of the "never called" function main() and prepares for (2) to apply to main() and other functions. Profiling of main() was lost in the conversion from a.out to ELF, so main()'s call count has always been zero for many years; then in the common case where main() is a tiny function, it gets no profiling ticks, so main() was completely lost in the flat profile. (2) improves mainly cases like kernel threads. Most kernel threads appear to be never called because they are always started before userland can run to turn on profiling. As for main(), the fact that they are called is not very interesting and their callers are uninteresting, but their relative self time is interesting since they are long-running. Almost always printing percentages in the per-call columns would be more useful than almost always printing 0.0ms. 0.1ms is now a long time, so only very large functions take that long per call. The accuracy per call can approach 1-10 nsec provided programs are run for about 100000 times as long as is necessary to get this accuracy with high resolution kernel profiling. Notes: svn path=/head/; revision=151055
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Make sure to return 0 from kernel_getnfile() since if there were anBrian Feldman2004-10-051-0/+1
| | | | | | | error, it would exit() (and it needs to return a value). Notes: svn path=/head/; revision=136175
* Use a proper prototype for hertz().Stefan Farfeleder2004-10-032-1/+3
| | | | Notes: svn path=/head/; revision=136099
* Fix a few cases that relied on 'implicit int' (constraint violation in C99).Stefan Farfeleder2004-07-111-1/+1
| | | | Notes: svn path=/head/; revision=131990
* Deal with double whitespace.Ruslan Ermilov2004-07-031-3/+3
| | | | Notes: svn path=/head/; revision=131507
* Fix after rev. 1.24 changes: bump document date, and remove -cRuslan Ermilov2004-07-021-2/+2
| | | | | | | from SYNOPSIS. Notes: svn path=/head/; revision=131493
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-3/+5
| | | | Notes: svn path=/head/; revision=131491
* Retire support for gprof's -c option. All our currently supportedStefan Farfeleder2004-06-2012-111/+1
| | | | | | | | | architectures only provide a dummy implementation. Silence on: current@ Notes: svn path=/head/; revision=130776
* Include <string.h> for prototypes of various string functions.Stefan Farfeleder2004-05-244-0/+7
| | | | | | | Approved by: das (mentor) Notes: svn path=/head/; revision=129657
* Include <netinet/in.h> for ntoh*() and hton*() prototypes.Stefan Farfeleder2004-05-241-0/+2
| | | | | | | Approved by: das (mentor) Notes: svn path=/head/; revision=129652
* Build/install gprof on amd64 as well, after repocopying the MD bits.Peter Wemm2004-05-181-0/+3
| | | | | | | Not that it has anything to process yet, but that comes next. Notes: svn path=/head/; revision=129398
* Fixed total disorder of MD includes.Bruce Evans2004-05-141-10/+10
| | | | | | | Disorder buffer overflowed by: arm commit Notes: svn path=/head/; revision=129243
* Some arm bits for gprof.Olivier Houchard2004-05-143-0/+62
| | | | Notes: svn path=/head/; revision=129222
* Remove MD bits for unsupported architectures.Tim J. Robbins2003-10-3012-1238/+1
| | | | Notes: svn path=/head/; revision=121735
* Remove 2 more unused doc Makefiles.Tom Rhodes2003-02-041-12/+0
| | | | Notes: svn path=/head/; revision=110343
* Add powerpc.h. Still missing powerpc.[ch] in gprof, but this getsPeter Grehan2002-12-101-0/+3
| | | | | | | | | the MI stuff out of the way. Approved: re (rwatson) Notes: svn path=/head/; revision=107718
* mdoc(7) police: back out unproved changes in previous revision;Ruslan Ermilov2002-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 Notes: svn path=/head/; revision=107264
* Remove done() which was just exit() so use of warn()/err() can be made. AbortPhilippe Charnier2002-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. Notes: svn path=/head/; revision=105243
* Consistently use FBSDIDDavid E. O'Brien2002-06-309-13/+20
| | | | Notes: svn path=/head/; revision=99112
* Fix preprocessor directive syntax (text after #endif).Garrett Wollman2002-05-306-53/+61
| | | | | | | The style of this program is still atrocious (not fixed). Notes: svn path=/head/; revision=97631
* 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
* Use `The .Nm utility'Philippe Charnier2002-04-201-6/+7
| | | | Notes: svn path=/head/; revision=95124