summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcstat
Commit message (Collapse)AuthorAgeFilesLines
* KNFobrien2011-11-151-16/+17
|
* Improve the chances of matching an outputted string with the line of code.obrien2011-11-154-122/+151
|
* - fix duplicate "a a" in some commentseadler2011-11-131-1/+1
| | | | | | Submitted by: eadler Approved by: simon MFC after: 3 days
* Two bugs fixed:fabient2011-11-011-2/+4
| | | | | | | - Do not close stdout or stderr when redirecting to file. - Correctly handle error code to detect when no buffer available. MFC after: 1 month
* Add a flush of the current PMC log buffer before displaying the next top.fabient2011-10-182-9/+11
| | | | | | | | As the underlying block is 4KB if the PMC throughput is low the measurement will be reported on the next tick. pmcstat(8) use the modified flush API to reclaim current buffer before displaying next top. MFC after: 1 month
* Convert pmcstat about using cpuset_t rather than relying on plain 32 bitattilio2011-08-073-74/+81
| | | | | | | | | | | | | | | | ints. That fixes a first bug where pmcstat wasn't using the old cpumask_t interface and now also brings the full support for more than 32 cpus. While here, make the functions pmcstat_clone_event_descriptor() and pmcstat_get_cpumask() private to pmcstat. The problem of assuming cpu dense masks still persists and should be eventually fixed, as reported by avg. Tested by: pluknet Reviewed by: gnn Approved by: re (kib)
* pmcstat, pmccontrol: catch up with removal of machdep.hlt_cpus sysctlavg2011-07-151-10/+2
| | | | | | Reported by: Pan Tsu <inyaoo@gmail.com> Reviewed by: attilio No objections: gnn
* Remove duplicated header fileskevlo2011-06-241-1/+0
|
* When an asm location cannot be resolved to a function the costfabient2010-09-034-0/+6
| | | | | | | | will be spread as small value and then filtered by the threshold. As a first step solution display the number of event that cannot be resolved as a valid function location. MFC after: 1week
* - Do not use the runtime mask when logfile is specified.fabient2010-08-033-4/+12
| | | | | | - Revert the fix on rtld path that is not necessary. MFC after: 1 week
* Allow file as a top source, it works with socket now.fabient2010-08-032-72/+90
| | | | | | | | | | | | | | | | | This will allow top monitoring using socket/ssh tunnelling of system without local symbols. client: pmcstat -R <ip>:<port> -T -r <symbolspath> monitored device: pmcstat -Sinstructions -O <ip>:<port> - Move the file read in the event loop - Initialize and clean log in all cases - Preserve global stats value during top refresh - Fix the rtld/line resolver that ignore '-r' prefix - Support socket for '-R' (server mode) - Display the statistics when exiting top mode
* Fix the calltree top view that incorrectly filter out some nodes.fabient2010-08-021-2/+8
| | | | MFC after: 1 week
* Fix warnings found by Coverity.fabient2010-06-053-4/+8
| | | | | Found with: Coverity Prevent(tm) MFC after: 1 month
* Rework the calltree top view by critical callchain.fabient2010-05-071-86/+104
| | | | | | The percentage show is the sum of the cost for the codepath. MFC after: 1 week
* Exclude undefined symbol from ELF file when doing function resolve.fabient2010-05-061-0/+2
| | | | MFC after: 3 days
* Apply threshold filter to root node in calltree view.fabient2010-04-211-5/+10
| | | | MFC after: 3days
* Move fatal error at the right place.fabient2010-04-143-2/+4
| | | | | | Fix exit from top mode when checking if PMC is available. MFC after: 3 days
* mdoc: order prologue macros consistently by Dd/Dt/Osuqs2010-04-141-1/+1
| | | | | | | | Although groff_mdoc(7) gives another impression, this is the ordering most widely used and also required by mdocml/mandoc. Reviewed by: ru Approved by: philip, ed (mentors)
* Improve "top" header by:fabient2010-04-024-13/+59
| | | | | - Display sample received per PMCs (or merged PMCs). - Display percentage vs all samples
* Wait for pmc name in the log before displaying data.fabient2010-03-281-5/+8
| | | | | | This will solve an abort in case of low throughput PMCs. MFC after: 3days
* Do not overflow the term in the case of multi-line display.fabient2010-03-261-4/+7
| | | | MFC after: 3days
* Change the way shutdown is handled for log file.fabient2010-03-081-3/+1
| | | | | | | | | | | | pmc_flush_logfile is now non-blocking and just ask the kernel to shutdown the file. From that point, no more data is accepted by the log thread and when the last buffer is flushed the file is closed. This will remove a deadlock between pmcstat asking for flush while it cannot flush the pipe itself. MFC after: 3 days
* Bug fixed:fabient2010-03-053-2/+5
| | | | | | | | - no display on serial terminal in top mode. - display alignment for continuation string. - correct invalid value used for display limit. MFC after: 3 days
* Fixed dependencies (make checkdpadd).ru2010-02-251-1/+1
|
* - Reorganize code in 'plugin' to share log processing.fabient2010-02-1115-1220/+3670
| | | | | | | | - Kcachegrind (calltree) support with assembly/source code mapping and call count estimator (-F). - Top mode for calltree and callgraph plugin (-T). MFC after: 1 month
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-2/+0
|
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2009-12-281-1/+1
| | | | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version) MFC after: 1 month
* Catch up with the times: "mozilla" -> "firefox".jkoshy2009-06-021-2/+2
|
* Close the read side of the pipe to self when exiting.jkoshy2008-12-231-0/+3
|
* Add the -m option to pmcstat.attilio2008-11-254-11/+69
| | | | | | | | | This option prints the list of sampled PCs along with the function name, the start and end addresses of this where their live within. Reviewed by: jkoshy Tested by: gnn Sponsored by: Nokia
* As a matter of good programming style, stop PMCs before releasingjkoshy2008-11-191-0/+3
| | | | them.
* - Avoid a spurious error when a command line is specified withoutjkoshy2008-10-072-5/+6
| | | | | any process scope PMCs. - Change the -c '*' option to denote non-halted CPUs.
* Bring the usage message in sync with the manual page.jkoshy2008-09-191-1/+2
|
* Add an example illustrating the use sleep(1) for performing timedjkoshy2008-09-191-2/+7
| | | | measurements.
* Fix a regression: attach process PMCs to the process created whenjkoshy2008-07-011-2/+2
| | | | a command line is specified.
* Document messages printed in verbose mode.jkoshy2008-06-291-2/+36
| | | | Requested by: Fabien Thomas <fabien.thomas at netasq dot com>
* Fix 'make checkdpadd'.jkoshy2008-02-221-1/+1
|
* Fix non-SMP kernel regression introduced in the previous commit.jkim2008-01-101-4/+7
| | | | Reviewed by: jkoshy
* Introduce pmcstat(8) changes for summarizing hwpmc(4) callchain records injkoshy2007-12-075-209/+1075
| | | | | | | | in textual form and in gmon.out format. Update manual page. Sponsored by: FreeBSD Foundation and Google Inc.
* When printing the contents of a HWPMC log in human readable form:jkoshy2007-12-031-3/+8
| | | | | | | | | - Print a warning if the version number recorded in the log is not what the tool expects. - Print a tidier error message when an unrecognized event is encountered in the log. - Don't print a spurious 'Unknown error: 0' when exiting after a parse error.
* Fixed "make checkdpadd" (missing library dependencies).ru2007-10-011-1/+1
| | | | Approved by: re (kensmith)
* MFP4: Enhancements to pmcstat(8):jkoshy2007-04-274-69/+184
| | | | | | | | | | - Allow the "-t" option to take a regular expression naming command line processes to attach process PMCs to. - Update the manual page and add an example showing the use of the new functionality. - Update the (c) year on the affected source files.
* MFP4: Enhancements and bug-fixes to pmcstat(8):jkoshy2007-04-223-126/+224
| | | | | | | | | | | | | | | | - The '-c' option now takes a comma-separated list of CPU numbers, or a literal '*' denoting all CPUs in the system. Subsequent system PMCs are allocated on the CPUs so specified. Change the default behaviour to allocate system PMCs on all CPUs, not just CPU 0. Update the manual page and add an example of how to use the new functionality. - Attach PMCs to a (commandline) child process more reliably. This fixes a long standing bug in counting events incurred by short-lived processes.
* Correct a sanity check.jkoshy2007-04-211-1/+1
|
* Markup fixes.ru2006-09-291-4/+5
|
* Line up usage output.ru2006-09-291-1/+1
|
* When printing a map, print the number of samples recorded by each gmon.out file.jkoshy2006-04-051-5/+18
| | | | MFC after: 1 week
* - Teach pmcstat(8) to log over the network; the -O option nowjkoshy2006-04-023-24/+107
| | | | | | | | | | | takes a host:port specification. - Update the manual page and add an example showing how log over the network using pmcstat(8) and nc(1). Document the current inability to process logs in cross-platform manner. - Have pmcstat_open_log() call err(3) directly in case of an error; this simplifies error handling in its caller. MFC after: 1 week
* MFP4: Support for profiling dynamically loaded objects.jkoshy2006-03-264-447/+986
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kernel changes: Inform hwpmc of executable objects brought into the system by kldload() and mmap(), and of their removal by kldunload() and munmap(). A helper function linker_hwpmc_list_objects() has been added to "sys/kern/kern_linker.c" and is used by hwpmc to retrieve the list of currently loaded kernel modules. The unused `MAPPINGCHANGE' event has been deprecated in favour of separate `MAP_IN' and `MAP_OUT' events; this change reduces space wastage in the log. Bump the hwpmc's ABI version to "2.0.00". Teach hwpmc(4) to handle the map change callbacks. Change the default per-cpu sample buffer size to hold 32 samples (up from 16). Increment __FreeBSD_version. libpmc(3) changes: Update libpmc(3) to deal with the new events in the log file; bring the pmclog(3) manual page in sync with the code. pmcstat(8) changes: Introduce new options to pmcstat(8): "-r" (root fs path), "-M" (mapfile name), "-q"/"-v" (verbosity control). Option "-k" now takes a kernel directory as its argument but will also work with the older invocation syntax. Rework string handling in pmcstat(8) to use an opaque type for interned strings. Clean up ELF parsing code and add support for tracking dynamic object mappings reported by a v2.0.00 hwpmc(4). Report statistics at the end of a log conversion run depending on the requested verbosity level. Reviewed by: jhb, dds (kernel parts of an earlier patch) Tested by: gallatin (earlier patch)
* When generating profiles (-g) warn about shared objects that werejkoshy2005-12-251-4/+12
| | | | not found.
OpenPOWER on IntegriCloud