Em Thu, Aug 16, 2012 at 09:10:16PM +0200, Robert Richter escreveu: > This patch set contains various perf tools updates. Most patches deal > with event naming. If the event name is unknown it is named like the > command line string of it. This is esp. valueable for pmu events like > for AMD IBS: > > $ perf report | grep '^#.*event' > # event : name = ibs_op/cnt_ctl=1/GH, type = 7, config = 0x80000, > config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, excl_host = 0, > excl_guest = 0, precise_ip = 0, id = { > # event : name = ibs_fetch/config=0/, type = 6, config = 0x0, config1 = > 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, excl_host = 0, excl_guest = > 1, precise_ip = 0, id = { 57, > # Samples: 20K of event 'ibs_op/cnt_ctl=1/GH' > # Samples: 4K of event 'ibs_fetch/config=0/'
There is a command for that pipe sequence: [root@sandy ~]# perf record -e cache-misses:u,cycles:k,instructions usleep 1 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.020 MB perf.data (~861 samples) ] [root@sandy ~]# perf evlist cache-misses:u cycles:k instructions [root@sandy ~]# perf evlist -v cache-misses:u: sample_freq=4000, config: 3, size: 96, sample_type: 327, read_format: 7, disabled: 1, inherit: 1, exclude_kernel: 1, exclude_hv: 1, mmap: 1, comm: 1, freq: 1, enable_on_exec: 1, sample_id_all: 1 cycles:k: sample_freq=4000, size: 96, sample_type: 327, read_format: 7, disabled: 1, inherit: 1, exclude_user: 1, exclude_hv: 1, freq: 1, enable_on_exec: 1, sample_id_all: 1 instructions: sample_freq=4000, config: 1, size: 96, sample_type: 327, read_format: 7, disabled: 1, inherit: 1, freq: 1, enable_on_exec: 1, sample_id_all: 1, exclude_guest: 1 [root@sandy ~]# - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/