perf-kmem.txt 940 字节
Newer Older
L
Li Zefan 已提交
1
perf-kmem(1)
2
============
L
Li Zefan 已提交
3 4 5

NAME
----
6
perf-kmem - Tool to trace/measure kernel memory properties
L
Li Zefan 已提交
7 8 9 10

SYNOPSIS
--------
[verse]
11
'perf kmem' {record|stat} [<options>]
L
Li Zefan 已提交
12 13 14

DESCRIPTION
-----------
15
There are two variants of perf kmem:
L
Li Zefan 已提交
16 17 18 19

  'perf kmem record <command>' to record the kmem events
  of an arbitrary workload.

20
  'perf kmem stat' to report kernel memory statistics.
L
Li Zefan 已提交
21 22 23 24 25

OPTIONS
-------
-i <file>::
--input=<file>::
26
	Select the input file (default: perf.data unless stdin is a fifo)
L
Li Zefan 已提交
27

N
Namhyung Kim 已提交
28 29 30 31
-v::
--verbose::
        Be more verbose. (show symbol address, etc)

32 33 34 35 36
--caller::
	Show per-callsite statistics

--alloc::
	Show per-allocation statistics
L
Li Zefan 已提交
37 38 39 40 41 42 43 44 45 46 47 48

-s <key[,key2...]>::
--sort=<key[,key2...]>::
	Sort the output (default: frag,hit,bytes)

-l <num>::
--line=<num>::
	Print n lines only

--raw-ip::
	Print raw ip instead of symbol

49 50 51 52 53 54
--slab::
	Analyze SLAB allocator events.

--page::
	Analyze page allocator events

L
Li Zefan 已提交
55 56 57
SEE ALSO
--------
linkperf:perf-record[1]