perf-report.txt 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. perf-report(1)
  2. ==============
  3. NAME
  4. ----
  5. perf-report - Read perf.data (created by perf record) and display the profile
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'perf report' [-i <file> | --input=file]
  10. DESCRIPTION
  11. -----------
  12. This command displays the performance counter profile information recorded
  13. via perf record.
  14. OPTIONS
  15. -------
  16. -i::
  17. --input=::
  18. Input file name. (default: perf.data unless stdin is a fifo)
  19. -v::
  20. --verbose::
  21. Be more verbose. (show symbol address, etc)
  22. -q::
  23. --quiet::
  24. Do not show any warnings or messages. (Suppress -v)
  25. -n::
  26. --show-nr-samples::
  27. Show the number of samples for each symbol
  28. --show-cpu-utilization::
  29. Show sample percentage for different cpu modes.
  30. -T::
  31. --threads::
  32. Show per-thread event counters. The input data file should be recorded
  33. with -s option.
  34. -c::
  35. --comms=::
  36. Only consider symbols in these comms. CSV that understands
  37. file://filename entries. This option will affect the percentage of
  38. the overhead and latency columns. See --percentage for more info.
  39. --pid=::
  40. Only show events for given process ID (comma separated list).
  41. --tid=::
  42. Only show events for given thread ID (comma separated list).
  43. -d::
  44. --dsos=::
  45. Only consider symbols in these dsos. CSV that understands
  46. file://filename entries. This option will affect the percentage of
  47. the overhead and latency columns. See --percentage for more info.
  48. -S::
  49. --symbols=::
  50. Only consider these symbols. CSV that understands
  51. file://filename entries. This option will affect the percentage of
  52. the overhead and latency columns. See --percentage for more info.
  53. --symbol-filter=::
  54. Only show symbols that match (partially) with this filter.
  55. -U::
  56. --hide-unresolved::
  57. Only display entries resolved to a symbol.
  58. --parallelism::
  59. Only consider these parallelism levels. Parallelism level is the number
  60. of threads that actively run on CPUs at the time of sample. The flag
  61. accepts single number, comma-separated list, and ranges (for example:
  62. "1", "7,8", "1,64-128"). This is useful in understanding what a program
  63. is doing during sequential/low-parallelism phases as compared to
  64. high-parallelism phases. This option will affect the percentage of
  65. the overhead and latency columns. See --percentage for more info.
  66. Also see the `CPU and latency overheads' section for more details.
  67. --latency::
  68. Show latency-centric profile rather than the default
  69. CPU-consumption-centric profile
  70. (requires perf record --latency flag).
  71. -s::
  72. --sort=::
  73. Sort histogram entries by given key(s) - multiple keys can be specified
  74. in CSV format. Following sort keys are available:
  75. pid, comm, dso, symbol, parent, cpu, socket, srcline, weight,
  76. local_weight, cgroup_id, addr.
  77. Each key has following meaning:
  78. - comm: command (name) of the task which can be read via /proc/<pid>/comm
  79. - pid: command and tid of the task
  80. - tgid: command and tgid of the task
  81. - dso: name of library or module executed at the time of sample
  82. - dso_size: size of library or module executed at the time of sample
  83. - symbol: name of function executed at the time of sample
  84. - symbol_size: size of function executed at the time of sample
  85. - parent: name of function matched to the parent regex filter. Unmatched
  86. entries are displayed as "[other]".
  87. - cpu: cpu number the task ran at the time of sample
  88. - socket: processor socket number the task ran at the time of sample
  89. - parallelism: number of running threads at the time of sample
  90. - srcline: filename and line number executed at the time of sample. The
  91. DWARF debugging info must be provided.
  92. - srcfile: file name of the source file of the samples. Requires dwarf
  93. information.
  94. - weight: Event specific weight, e.g. memory latency or transaction
  95. abort cost. This is the global weight.
  96. - local_weight: Local weight version of the weight above.
  97. - cgroup_id: ID derived from cgroup namespace device and inode numbers.
  98. - cgroup: cgroup pathname in the cgroupfs.
  99. - transaction: Transaction abort flags.
  100. - overhead: CPU overhead percentage of sample.
  101. - latency: latency (wall-clock) overhead percentage of sample.
  102. See the `CPU and latency overheads' section for more details.
  103. - overhead_sys: CPU overhead percentage of sample running in system mode
  104. - overhead_us: CPU overhead percentage of sample running in user mode
  105. - overhead_guest_sys: CPU overhead percentage of sample running in system mode
  106. on guest machine
  107. - overhead_guest_us: CPU overhead percentage of sample running in user mode on
  108. guest machine
  109. - sample: Number of sample
  110. - period: Raw number of event count of sample
  111. - time: Separate the samples by time stamp with the resolution specified by
  112. --time-quantum (default 100ms). Specify with overhead and before it.
  113. - code_page_size: the code page size of sampled code address (ip)
  114. - ins_lat: Instruction latency in core cycles. This is the global instruction
  115. latency
  116. - local_ins_lat: Local instruction latency version
  117. - p_stage_cyc: On powerpc, this presents the number of cycles spent in a
  118. pipeline stage. And currently supported only on powerpc.
  119. - addr: (Full) virtual address of the sampled instruction
  120. - retire_lat: On X86, this reports pipeline stall of this instruction compared
  121. to the previous instruction in cycles. And currently supported only on X86
  122. - simd: Flags describing a SIMD operation. "e" for empty Arm SVE predicate. "p" for partial Arm SVE predicate
  123. - type: Data type of sample memory access.
  124. - typeoff: Offset in the data type of sample memory access.
  125. - symoff: Offset in the symbol.
  126. - weight1: Average value of event specific weight (1st field of weight_struct).
  127. - weight2: Average value of event specific weight (2nd field of weight_struct).
  128. - weight3: Average value of event specific weight (3rd field of weight_struct).
  129. By default, overhead, comm, dso and symbol keys are used.
  130. (i.e. --sort overhead,comm,dso,symbol).
  131. If --branch-stack option is used, following sort keys are also
  132. available:
  133. - dso_from: name of library or module branched from
  134. - dso_to: name of library or module branched to
  135. - symbol_from: name of function branched from
  136. - symbol_to: name of function branched to
  137. - srcline_from: source file and line branched from
  138. - srcline_to: source file and line branched to
  139. - mispredict: "N" for predicted branch, "Y" for mispredicted branch
  140. - in_tx: branch in TSX transaction
  141. - abort: TSX transaction abort.
  142. - cycles: Cycles in basic block
  143. And default sort keys are changed to comm, dso_from, symbol_from, dso_to
  144. and symbol_to, see '--branch-stack'.
  145. When the sort key symbol is specified, columns "IPC" and "IPC Coverage"
  146. are enabled automatically. Column "IPC" reports the average IPC per function
  147. and column "IPC coverage" reports the percentage of instructions with
  148. sampled IPC in this function. IPC means Instruction Per Cycle. If it's low,
  149. it indicates there may be a performance bottleneck when the function is
  150. executed, such as a memory access bottleneck. If a function has high overhead
  151. and low IPC, it's worth further analyzing it to optimize its performance.
  152. If the --mem-mode option is used, the following sort keys are also available
  153. (incompatible with --branch-stack):
  154. symbol_daddr, dso_daddr, locked, tlb, mem, snoop, dcacheline, blocked.
  155. - symbol_daddr: name of data symbol being executed on at the time of sample
  156. - dso_daddr: name of library or module containing the data being executed
  157. on at the time of the sample
  158. - locked: whether the bus was locked at the time of the sample
  159. - tlb: type of tlb access for the data at the time of the sample
  160. - mem: type of memory access for the data at the time of the sample
  161. - snoop: type of snoop (if any) for the data at the time of the sample
  162. - dcacheline: the cacheline the data address is on at the time of the sample
  163. - phys_daddr: physical address of data being executed on at the time of sample
  164. - data_page_size: the data page size of data being executed on at the time of sample
  165. - blocked: reason of blocked load access for the data at the time of the sample
  166. And the default sort keys are changed to local_weight, mem, sym, dso,
  167. symbol_daddr, dso_daddr, snoop, tlb, locked, blocked, local_ins_lat,
  168. see '--mem-mode'.
  169. If the data file has tracepoint event(s), following (dynamic) sort keys
  170. are also available:
  171. trace, trace_fields, [<event>.]<field>[/raw]
  172. - trace: pretty printed trace output in a single column
  173. - trace_fields: fields in tracepoints in separate columns
  174. - <field name>: optional event and field name for a specific field
  175. The last form consists of event and field names. If event name is
  176. omitted, it searches all events for matching field name. The matched
  177. field will be shown only for the event has the field. The event name
  178. supports substring match so user doesn't need to specify full subsystem
  179. and event name everytime. For example, 'sched:sched_switch' event can
  180. be shortened to 'switch' as long as it's not ambiguous. Also event can
  181. be specified by its index (starting from 1) preceded by the '%'.
  182. So '%1' is the first event, '%2' is the second, and so on.
  183. The field name can have '/raw' suffix which disables pretty printing
  184. and shows raw field value like hex numbers. The --raw-trace option
  185. has the same effect for all dynamic sort keys.
  186. The default sort keys are changed to 'trace' if all events in the data
  187. file are tracepoint.
  188. -F::
  189. --fields=::
  190. Specify output field - multiple keys can be specified in CSV format.
  191. Following fields are available:
  192. overhead, latency, overhead_sys, overhead_us, overhead_children, sample,
  193. period, weight1, weight2, weight3, ins_lat, p_stage_cyc and retire_lat.
  194. The last 3 names are alias for the corresponding weights. When the weight
  195. fields are used, they will show the average value of the weight.
  196. Also it can contain any sort key(s).
  197. By default, every sort keys not specified in -F will be appended
  198. automatically.
  199. If the keys starts with a prefix '+', then it will append the specified
  200. field(s) to the default field order. For example: perf report -F +period,sample.
  201. -p::
  202. --parent=<regex>::
  203. A regex filter to identify parent. The parent is a caller of this
  204. function and searched through the callchain, thus it requires callchain
  205. information recorded. The pattern is in the extended regex format and
  206. defaults to "\^sys_|^do_page_fault", see '--sort parent'.
  207. -x::
  208. --exclude-other::
  209. Only display entries with parent-match.
  210. -w::
  211. --column-widths=<width[,width...]>::
  212. Force each column width to the provided list, for large terminal
  213. readability. 0 means no limit (default behavior).
  214. -t::
  215. --field-separator=::
  216. Use a special separator character and don't pad with spaces, replacing
  217. all occurrences of this separator in symbol names (and other output)
  218. with a '.' character, that thus it's the only non valid separator.
  219. -D::
  220. --dump-raw-trace::
  221. Dump raw trace in ASCII.
  222. --disable-order::
  223. Disable raw trace ordering.
  224. -g::
  225. --call-graph=<print_type,threshold[,print_limit],order,sort_key[,branch],value>::
  226. Display call chains using type, min percent threshold, print limit,
  227. call order, sort key, optional branch and value. Note that ordering
  228. is not fixed so any parameter can be given in an arbitrary order.
  229. One exception is the print_limit which should be preceded by threshold.
  230. print_type can be either:
  231. - flat: single column, linear exposure of call chains.
  232. - graph: use a graph tree, displaying absolute overhead rates. (default)
  233. - fractal: like graph, but displays relative rates. Each branch of
  234. the tree is considered as a new profiled object.
  235. - folded: call chains are displayed in a line, separated by semicolons
  236. - none: disable call chain display.
  237. threshold is a percentage value which specifies a minimum percent to be
  238. included in the output call graph. Default is 0.5 (%).
  239. print_limit is only applied when stdio interface is used. It's to limit
  240. number of call graph entries in a single hist entry. Note that it needs
  241. to be given after threshold (but not necessarily consecutive).
  242. Default is 0 (unlimited).
  243. order can be either:
  244. - callee: callee based call graph.
  245. - caller: inverted caller based call graph.
  246. Default is 'caller' when --children is used, otherwise 'callee'.
  247. sort_key can be:
  248. - function: compare on functions (default)
  249. - address: compare on individual code addresses
  250. - srcline: compare on source filename and line number
  251. branch can be:
  252. - branch: include last branch information in callgraph when available.
  253. Usually more convenient to use --branch-history for this.
  254. value can be:
  255. - percent: display overhead percent (default)
  256. - period: display event period
  257. - count: display event count
  258. --children::
  259. Accumulate callchain of children to parent entry so that then can
  260. show up in the output. The output will have a new "Children" column
  261. and will be sorted on the data. It requires callchains are recorded.
  262. See the `Overhead calculation' section for more details. Enabled by
  263. default, disable with --no-children.
  264. --max-stack::
  265. Set the stack depth limit when parsing the callchain, anything
  266. beyond the specified depth will be ignored. This is a trade-off
  267. between information loss and faster processing especially for
  268. workloads that can have a very long callchain stack.
  269. Note that when using the --itrace option the synthesized callchain size
  270. will override this value if the synthesized callchain size is bigger.
  271. Default: 127
  272. -G::
  273. --inverted::
  274. alias for inverted caller based call graph.
  275. --ignore-callees=<regex>::
  276. Ignore callees of the function(s) matching the given regex.
  277. This has the effect of collecting the callers of each such
  278. function into one place in the call-graph tree.
  279. --pretty=<key>::
  280. Pretty printing style. key: normal, raw
  281. --stdio:: Use the stdio interface.
  282. --stdio-color::
  283. 'always', 'never' or 'auto', allowing configuring color output
  284. via the command line, in addition to via "color.ui" .perfconfig.
  285. Use '--stdio-color always' to generate color even when redirecting
  286. to a pipe or file. Using just '--stdio-color' is equivalent to
  287. using 'always'.
  288. --tui:: Use the TUI interface, that is integrated with annotate and allows
  289. zooming into DSOs or threads, among other features. Use of --tui
  290. requires a tty, if one is not present, as when piping to other
  291. commands, the stdio interface is used.
  292. --gtk:: Use the GTK2 interface.
  293. -k::
  294. --vmlinux=<file>::
  295. vmlinux pathname
  296. --ignore-vmlinux::
  297. Ignore vmlinux files.
  298. --kallsyms=<file>::
  299. kallsyms pathname
  300. -m::
  301. --modules::
  302. Load module symbols. WARNING: This should only be used with -k and
  303. a LIVE kernel.
  304. -f::
  305. --force::
  306. Don't do ownership validation.
  307. --symfs=<directory>::
  308. Look for files with symbols relative to this directory.
  309. -C::
  310. --cpu:: Only report samples for the list of CPUs provided. Multiple CPUs can
  311. be provided as a comma-separated list with no space: 0,1. Ranges of
  312. CPUs are specified with -: 0-2. Default is to report samples on all
  313. CPUs.
  314. -M::
  315. --disassembler-style=:: Set disassembler style for objdump.
  316. --source::
  317. Interleave source code with assembly code. Enabled by default,
  318. disable with --no-source.
  319. --asm-raw::
  320. Show raw instruction encoding of assembly instructions.
  321. --show-total-period:: Show a column with the sum of periods.
  322. -I::
  323. --show-info::
  324. Display extended information about the perf.data file. This adds
  325. information which may be very large and thus may clutter the display.
  326. It currently includes: cpu and numa topology of the host system.
  327. -b::
  328. --branch-stack::
  329. Use the addresses of sampled taken branches instead of the instruction
  330. address to build the histograms. To generate meaningful output, the
  331. perf.data file must have been obtained using perf record -b or
  332. perf record --branch-filter xxx where xxx is a branch filter option.
  333. perf report is able to auto-detect whether a perf.data file contains
  334. branch stacks and it will automatically switch to the branch view mode,
  335. unless --no-branch-stack is used.
  336. --branch-history::
  337. Add the addresses of sampled taken branches to the callstack.
  338. This allows to examine the path the program took to each sample.
  339. The data collection must have used -b (or -j) and -g.
  340. Also show with some branch flags that can be:
  341. - Predicted: display the average percentage of predicated branches.
  342. (predicated number / total number)
  343. - Abort: display the number of tsx aborted branches.
  344. - Cycles: cycles in basic block.
  345. - iterations: display the average number of iterations in callchain list.
  346. --addr2line=<path>::
  347. Path to addr2line binary.
  348. --objdump=<path>::
  349. Path to objdump binary.
  350. --prefix=PREFIX::
  351. --prefix-strip=N::
  352. Remove first N entries from source file path names in executables
  353. and add PREFIX. This allows to display source code compiled on systems
  354. with different file system layout.
  355. --group::
  356. Show event group information together. It forces group output also
  357. if there are no groups defined in data file.
  358. --group-sort-idx::
  359. Sort the output by the event at the index n in group. If n is invalid,
  360. sort by the first event. It can support multiple groups with different
  361. amount of events. WARNING: This should be used on grouped events.
  362. --demangle::
  363. Demangle symbol names to human readable form. It's enabled by default,
  364. disable with --no-demangle.
  365. --demangle-kernel::
  366. Demangle kernel symbol names to human readable form (for C++ kernels).
  367. --mem-mode::
  368. Use the data addresses of samples in addition to instruction addresses
  369. to build the histograms. To generate meaningful output, the perf.data
  370. file must have been obtained using perf record -d -W and using a
  371. special event -e cpu/mem-loads/p or -e cpu/mem-stores/p. See
  372. 'perf mem' for simpler access.
  373. --percent-limit::
  374. Do not show entries which have an overhead under that percent.
  375. (Default: 0). Note that this option also sets the percent limit (threshold)
  376. of callchains. However the default value of callchain threshold is
  377. different than the default value of hist entries. Please see the
  378. --call-graph option for details.
  379. --percentage::
  380. Determine how to display the CPU and latency overhead percentage
  381. of filtered entries. Filters can be applied by --comms, --dsos, --symbols
  382. and/or --parallelism options and Zoom operations on the TUI (thread, dso, etc).
  383. "relative" means it's relative to filtered entries only so that the
  384. sum of shown entries will be always 100%. "absolute" means it retains
  385. the original value before and after the filter is applied.
  386. --header::
  387. Show header information in the perf.data file. This includes
  388. various information like hostname, OS and perf version, cpu/mem
  389. info, perf command line, event list and so on. Currently only
  390. --stdio output supports this feature.
  391. --header-only::
  392. Show only perf.data header (forces --stdio).
  393. --time::
  394. Only analyze samples within given time window: <start>,<stop>. Times
  395. have the format seconds.nanoseconds. If start is not given (i.e. time
  396. string is ',x.y') then analysis starts at the beginning of the file. If
  397. stop time is not given (i.e. time string is 'x.y,') then analysis goes
  398. to end of file. Multiple ranges can be separated by spaces, which
  399. requires the argument to be quoted e.g. --time "1234.567,1234.789 1235,"
  400. Also support time percent with multiple time ranges. Time string is
  401. 'a%/n,b%/m,...' or 'a%-b%,c%-%d,...'.
  402. For example:
  403. Select the second 10% time slice:
  404. perf report --time 10%/2
  405. Select from 0% to 10% time slice:
  406. perf report --time 0%-10%
  407. Select the first and second 10% time slices:
  408. perf report --time 10%/1,10%/2
  409. Select from 0% to 10% and 30% to 40% slices:
  410. perf report --time 0%-10%,30%-40%
  411. --switch-on EVENT_NAME::
  412. Only consider events after this event is found.
  413. This may be interesting to measure a workload only after some initialization
  414. phase is over, i.e. insert a perf probe at that point and then using this
  415. option with that probe.
  416. --switch-off EVENT_NAME::
  417. Stop considering events after this event is found.
  418. --show-on-off-events::
  419. Show the --switch-on/off events too. This has no effect in 'perf report' now
  420. but probably we'll make the default not to show the switch-on/off events
  421. on the --group mode and if there is only one event besides the off/on ones,
  422. go straight to the histogram browser, just like 'perf report' with no events
  423. explicitly specified does.
  424. --itrace::
  425. Options for decoding instruction tracing data. The options are:
  426. include::itrace.txt[]
  427. To disable decoding entirely, use --no-itrace.
  428. --full-source-path::
  429. Show the full path for source files for srcline output.
  430. --show-ref-call-graph::
  431. When multiple events are sampled, it may not be needed to collect
  432. callgraphs for all of them. The sample sites are usually nearby,
  433. and it's enough to collect the callgraphs on a reference event.
  434. So user can use "call-graph=no" event modifier to disable callgraph
  435. for other events to reduce the overhead.
  436. However, perf report cannot show callgraphs for the event which
  437. disable the callgraph.
  438. This option extends the perf report to show reference callgraphs,
  439. which collected by reference event, in no callgraph event.
  440. --stitch-lbr::
  441. Show callgraph with stitched LBRs, which may have more complete
  442. callgraph. The perf.data file must have been obtained using
  443. perf record --call-graph lbr.
  444. Disabled by default. In common cases with call stack overflows,
  445. it can recreate better call stacks than the default lbr call stack
  446. output. But this approach is not foolproof. There can be cases
  447. where it creates incorrect call stacks from incorrect matches.
  448. The known limitations include exception handing such as
  449. setjmp/longjmp will have calls/returns not match.
  450. --socket-filter::
  451. Only report the samples on the processor socket that match with this filter
  452. --samples=N::
  453. Save N individual samples for each histogram entry to show context in perf
  454. report tui browser.
  455. --raw-trace::
  456. When displaying traceevent output, do not use print fmt or plugins.
  457. -H::
  458. --hierarchy::
  459. Enable hierarchical output. In the hierarchy mode, each sort key groups
  460. samples based on the criteria and then sub-divide it using the lower
  461. level sort key.
  462. For example:
  463. In normal output:
  464. perf report -s dso,sym
  465. # Overhead Shared Object Symbol
  466. 50.00% [kernel.kallsyms] [k] kfunc1
  467. 20.00% perf [.] foo
  468. 15.00% [kernel.kallsyms] [k] kfunc2
  469. 10.00% perf [.] bar
  470. 5.00% libc.so [.] libcall
  471. In hierarchy output:
  472. perf report -s dso,sym --hierarchy
  473. # Overhead Shared Object / Symbol
  474. 65.00% [kernel.kallsyms]
  475. 50.00% [k] kfunc1
  476. 15.00% [k] kfunc2
  477. 30.00% perf
  478. 20.00% [.] foo
  479. 10.00% [.] bar
  480. 5.00% libc.so
  481. 5.00% [.] libcall
  482. --inline::
  483. If a callgraph address belongs to an inlined function, the inline stack
  484. will be printed. Each entry is function name or file/line. Enabled by
  485. default, disable with --no-inline.
  486. --mmaps::
  487. Show --tasks output plus mmap information in a format similar to
  488. /proc/<PID>/maps.
  489. Please note that not all mmaps are stored, options affecting which ones
  490. are include 'perf record --data', for instance.
  491. --ns::
  492. Show time stamps in nanoseconds.
  493. --stats::
  494. Display overall events statistics without any further processing.
  495. (like the one at the end of the perf report -D command)
  496. --tasks::
  497. Display monitored tasks stored in perf data. Displaying pid/tid/ppid
  498. plus the command string aligned to distinguish parent and child tasks.
  499. --percent-type::
  500. Set annotation percent type from following choices:
  501. global-period, local-period, global-hits, local-hits
  502. The local/global keywords set if the percentage is computed
  503. in the scope of the function (local) or the whole data (global).
  504. The period/hits keywords set the base the percentage is computed
  505. on - the samples period or the number of samples (hits).
  506. --time-quantum::
  507. Configure time quantum for time sort key. Default 100ms.
  508. Accepts s, us, ms, ns units.
  509. --total-cycles::
  510. When --total-cycles is specified, it supports sorting for all blocks by
  511. 'Sampled Cycles%'. This is useful to concentrate on the globally hottest
  512. blocks. In output, there are some new columns:
  513. 'Sampled Cycles%' - block sampled cycles aggregation / total sampled cycles
  514. 'Sampled Cycles' - block sampled cycles aggregation
  515. 'Avg Cycles%' - block average sampled cycles / sum of total block average
  516. sampled cycles
  517. 'Avg Cycles' - block average sampled cycles
  518. 'Branch Counter' - block branch counter histogram (with -v showing the number)
  519. --skip-empty::
  520. Do not print 0 results in the --stat output.
  521. include::cpu-and-latency-overheads.txt[]
  522. include::callchain-overhead-calculation.txt[]
  523. SEE ALSO
  524. --------
  525. linkperf:perf-stat[1], linkperf:perf-annotate[1], linkperf:perf-record[1],
  526. linkperf:perf-intel-pt[1]