summaryrefslogtreecommitdiff
path: root/usr.bin/gprof
Commit message (Collapse)AuthorAgeFilesLines
* Cleanups for gprof:Andrew Turner2020-09-149-322/+9
| | | | | | | | | | | | | * Remove identical or almost identical headers * Only build aout.c on amd64 and i386. None of the the other current architectures ever supported running a.out binaries * Enable on all architectures Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D26369 Notes: svn path=/head/; revision=365727
* mail/gprof/tip: tap with the ugly stickKyle Evans2020-04-062-45/+53
| | | | | | | | | | | | | | | | | | The ugly stick here is this bit in the respective headers: #ifndef EXTERN #define EXTERN extern #endif with a follow-up #define EXTERN in a single .c file to push all of their definitions into one spot. A pass should be made over these three later to push these definitions into the correct files instead, but this will suffice for now and at a more leisurely pace. MFC after: 3 days Notes: svn path=/head/; revision=359680
* gprof: Enable riscvKristof Provost2020-01-133-1/+45
| | | | | | | | | | Add a missing riscv.h header file, and fix the check for riscv (must test MACHINE_CPUARCH, not MACHINE_ARCH, if we want to use 'riscv'). Sponsored by: Axiado Notes: svn path=/head/; revision=356687
* gprof: disable building of a.out componentsBjoern A. Zeeb2019-08-213-3/+14
| | | | | | | | | | | | On arm64, riscv, and s390x disable building of aout components. This allows gprof to build on these architectures which never supported the legacy a.out binary format. Obtained from: s390x branch MFC after: 3 months Notes: svn path=/head/; revision=351329
* .Xr pmcstat(8) from kgmon(8) and gprof(1).Edward Tomasz Napierala2017-11-271-2/+3
| | | | | | | | MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=326248
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-2017-9/+43
| | | | | | | | | | | | | | | | | 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
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Renumber copyright clause 4Warner Losh2017-02-2818-18/+18
| | | | | | | | | | | | 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
* 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