Path: blob/master/tools/perf/Documentation/perf-top.txt
10821 views
perf-top(1)1===========23NAME4----5perf-top - System profiling tool.67SYNOPSIS8--------9[verse]10'perf top' [-e <EVENT> | --event=EVENT] [<options>]1112DESCRIPTION13-----------14This command generates and displays a performance counter profile in real time.151617OPTIONS18-------19-a::20--all-cpus::21System-wide collection. (default)2223-c <count>::24--count=<count>::25Event period to sample.2627-C <cpu-list>::28--cpu=<cpu>::29Monitor only on the list of CPUs provided. Multiple CPUs can be provided as a30comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2.31Default is to monitor all CPUS.3233-d <seconds>::34--delay=<seconds>::35Number of seconds to delay between refreshes.3637-e <event>::38--event=<event>::39Select the PMU event. Selection can be a symbolic event name40(use 'perf list' to list all events) or a raw PMU41event (eventsel+umask) in the form of rNNN where NNN is a42hexadecimal event descriptor.4344-E <entries>::45--entries=<entries>::46Display this many functions.4748-f <count>::49--count-filter=<count>::50Only display functions with more events than this.5152-g::53--group::54Put the counters into a counter group.5556-F <freq>::57--freq=<freq>::58Profile at this frequency.5960-i::61--inherit::62Child tasks inherit counters, only makes sens with -p option.6364-k <path>::65--vmlinux=<path>::66Path to vmlinux. Required for annotation functionality.6768-m <pages>::69--mmap-pages=<pages>::70Number of mmapped data pages.7172-p <pid>::73--pid=<pid>::74Profile events on existing Process ID.7576-t <tid>::77--tid=<tid>::78Profile events on existing thread ID.7980-r <priority>::81--realtime=<priority>::82Collect data with this RT SCHED_FIFO priority.8384-s <symbol>::85--sym-annotate=<symbol>::86Annotate this symbol.8788-K::89--hide_kernel_symbols::90Hide kernel symbols.9192-U::93--hide_user_symbols::94Hide user symbols.9596-D::97--dump-symtab::98Dump the symbol table used for profiling.99100-v::101--verbose::102Be more verbose (show counter open errors, etc).103104-z::105--zero::106Zero history across display updates.107108INTERACTIVE PROMPTING KEYS109--------------------------110111[d]::112Display refresh delay.113114[e]::115Number of entries to display.116117[E]::118Event to display when multiple counters are active.119120[f]::121Profile display filter (>= hit count).122123[F]::124Annotation display filter (>= % of total).125126[s]::127Annotate symbol.128129[S]::130Stop annotation, return to full profile display.131132[w]::133Toggle between weighted sum and individual count[E]r profile.134135[z]::136Toggle event count zeroing across display updates.137138[qQ]::139Quit.140141Pressing any unmapped key displays a menu, and prompts for input.142143144SEE ALSO145--------146linkperf:perf-stat[1], linkperf:perf-list[1]147148149