From: Julien Desfossez Date: Tue, 5 Jul 2016 15:50:46 +0000 (-0400) Subject: Enable perf PMU counters by raw ID X-Git-Tag: v2.9.0-rc1~84 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=4fe444dafd2243de56091ab5dd7efa0050b0597f;hp=4fe444dafd2243de56091ab5dd7efa0050b0597f 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:" and "perf:thread:raw:rNNN: 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 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 Signed-off-by: Jérémie Galarneau ---