Li Zefan | b23d576 | 2009-11-24 13:27:11 +0800 | [diff] [blame] | 1 | perf-kmem(1) |
Arnaldo Carvalho de Melo | 4778e0e | 2010-05-05 11:23:27 -0300 | [diff] [blame] | 2 | ============ |
Li Zefan | b23d576 | 2009-11-24 13:27:11 +0800 | [diff] [blame] | 3 | |
| 4 | NAME |
| 5 | ---- |
Namhyung Kim | 0d68bc9 | 2015-04-06 14:36:10 +0900 | [diff] [blame] | 6 | perf-kmem - Tool to trace/measure kernel memory properties |
Li Zefan | b23d576 | 2009-11-24 13:27:11 +0800 | [diff] [blame] | 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
| 10 | [verse] |
Li Zefan | 90b86a9 | 2009-12-10 15:21:57 +0800 | [diff] [blame] | 11 | 'perf kmem' {record|stat} [<options>] |
Li Zefan | b23d576 | 2009-11-24 13:27:11 +0800 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
Li Zefan | 90b86a9 | 2009-12-10 15:21:57 +0800 | [diff] [blame] | 15 | There are two variants of perf kmem: |
Li Zefan | b23d576 | 2009-11-24 13:27:11 +0800 | [diff] [blame] | 16 | |
| 17 | 'perf kmem record <command>' to record the kmem events |
| 18 | of an arbitrary workload. |
| 19 | |
Li Zefan | 90b86a9 | 2009-12-10 15:21:57 +0800 | [diff] [blame] | 20 | 'perf kmem stat' to report kernel memory statistics. |
Li Zefan | b23d576 | 2009-11-24 13:27:11 +0800 | [diff] [blame] | 21 | |
| 22 | OPTIONS |
| 23 | ------- |
| 24 | -i <file>:: |
| 25 | --input=<file>:: |
Robert Richter | efad141 | 2011-12-07 10:02:54 +0100 | [diff] [blame] | 26 | Select the input file (default: perf.data unless stdin is a fifo) |
Li Zefan | b23d576 | 2009-11-24 13:27:11 +0800 | [diff] [blame] | 27 | |
Namhyung Kim | bd72a33 | 2015-03-12 16:32:47 +0900 | [diff] [blame] | 28 | -v:: |
| 29 | --verbose:: |
| 30 | Be more verbose. (show symbol address, etc) |
| 31 | |
Li Zefan | 90b86a9 | 2009-12-10 15:21:57 +0800 | [diff] [blame] | 32 | --caller:: |
| 33 | Show per-callsite statistics |
| 34 | |
| 35 | --alloc:: |
| 36 | Show per-allocation statistics |
Li Zefan | b23d576 | 2009-11-24 13:27:11 +0800 | [diff] [blame] | 37 | |
| 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 Kim | 0d68bc9 | 2015-04-06 14:36:10 +0900 | [diff] [blame] | 49 | --slab:: |
| 50 | Analyze SLAB allocator events. |
| 51 | |
| 52 | --page:: |
| 53 | Analyze page allocator events |
| 54 | |
Li Zefan | b23d576 | 2009-11-24 13:27:11 +0800 | [diff] [blame] | 55 | SEE ALSO |
| 56 | -------- |
| 57 | linkperf:perf-record[1] |