Enable perf PMU counters by raw ID
authorJulien Desfossez <jdesfossez@efficios.com>
Mon, 20 Jun 2016 22:47:24 +0000 (18:47 -0400)
committerJulien Desfossez <jdesfossez@efficios.com>
Tue, 5 Jul 2016 15:50:03 +0000 (11:50 -0400)
commit8d7708bfde7eeeb56d3bd88dfc17109d76790623
treedeb898117ce82339ee8e6d07099bc9e3315a92d6
parent976e65bfe6f0bce9bb79da41d8510669445f1d6b
Enable perf PMU counters by raw ID

Allow enabling perf PMU counters by raw ID in addition to the generic
list already provided. The format for kernel tracing is
"perf:cpu:raw:rNNN:<name>" and "perf:thread:raw:rNNN:<name> for
user-space. The rNNN format is the same as perf-record(1) where NNN is a
hexadecimal event descriptor in the form of umask+eventsel. The <name>
field to associate a clearer name to the counter.

Example usage on Intel i7-3520M to get the unhalted reference cycles
(eventsel: 0x13c) count at privilege level 0 (umask: 0x00):
lttng add-context -k -t perf:cpu:raw:r0013c:x86unhalted

Result in the trace:
sched_switch: { cpu_id = 3 }, {
perf_cpu_raw_r0013c_x86unhalted = 27632578 }, [...]

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
doc/man/lttng-add-context.1.txt
src/bin/lttng/commands/add_context.c
This page took 0.029666 seconds and 5 git commands to generate.