blob: 23219c65c16f77892a30b9b85f38609f1b1dc1f5 [file] [log] [blame]
Li Zefanb23d5762009-11-24 13:27:11 +08001perf-kmem(1)
Arnaldo Carvalho de Melo4778e0e2010-05-05 11:23:27 -03002============
Li Zefanb23d5762009-11-24 13:27:11 +08003
4NAME
5----
Namhyung Kim0d68bc92015-04-06 14:36:10 +09006perf-kmem - Tool to trace/measure kernel memory properties
Li Zefanb23d5762009-11-24 13:27:11 +08007
8SYNOPSIS
9--------
10[verse]
Li Zefan90b86a92009-12-10 15:21:57 +080011'perf kmem' {record|stat} [<options>]
Li Zefanb23d5762009-11-24 13:27:11 +080012
13DESCRIPTION
14-----------
Li Zefan90b86a92009-12-10 15:21:57 +080015There are two variants of perf kmem:
Li Zefanb23d5762009-11-24 13:27:11 +080016
17 'perf kmem record <command>' to record the kmem events
18 of an arbitrary workload.
19
Li Zefan90b86a92009-12-10 15:21:57 +080020 'perf kmem stat' to report kernel memory statistics.
Li Zefanb23d5762009-11-24 13:27:11 +080021
22OPTIONS
23-------
24-i <file>::
25--input=<file>::
Robert Richterefad1412011-12-07 10:02:54 +010026 Select the input file (default: perf.data unless stdin is a fifo)
Li Zefanb23d5762009-11-24 13:27:11 +080027
Namhyung Kimbd72a332015-03-12 16:32:47 +090028-v::
29--verbose::
30 Be more verbose. (show symbol address, etc)
31
Li Zefan90b86a92009-12-10 15:21:57 +080032--caller::
33 Show per-callsite statistics
34
35--alloc::
36 Show per-allocation statistics
Li Zefanb23d5762009-11-24 13:27:11 +080037
38-s <key[,key2...]>::
39--sort=<key[,key2...]>::
40 Sort the output (default: frag,hit,bytes)
41
42-l <num>::
43--line=<num>::
44 Print n lines only
45
46--raw-ip::
47 Print raw ip instead of symbol
48
Namhyung Kim0d68bc92015-04-06 14:36:10 +090049--slab::
50 Analyze SLAB allocator events.
51
52--page::
53 Analyze page allocator events
54
Li Zefanb23d5762009-11-24 13:27:11 +080055SEE ALSO
56--------
57linkperf:perf-record[1]