]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel: Add Intel RAPL PP1 energy counter support
authorStephane Eranian <eranian@google.com>
Wed, 8 Jan 2014 10:15:53 +0000 (11:15 +0100)
committerIngo Molnar <mingo@kernel.org>
Sun, 12 Jan 2014 09:16:08 +0000 (10:16 +0100)
commit0b0e18f7e5f6e7b1a6872a705a1dae93af278d75
treee5ce02d0b6de20c8a1aa15e6d36ce8d28d39b9af
parentf2ac734e5925a0c141eb9a9e9171d77e3e672cd7
perf/x86/intel: Add Intel RAPL PP1 energy counter support

This patch adds support for the Intel RAPL energy counter
PP1 (Power Plane 1).

On client processors, it usually corresponds to the
energy consumption of the builtin graphic card. That
is why the sysfs event is called energy-gpu.

New event:
 - name: power/energy-gpu/
 - code: event=0x4
 - unit: 2^-32 Joules

On processors without graphics, this should count 0.
The patch only enables this event on client processors.

Reviewed-by: Maria Dimakopoulou <maria.n.dimakopoulou@gmail.com>
Signed-off-by: Stephane Eranian <eranian@google.com>
Cc: ak@linux.intel.com
Cc: acme@redhat.com
Cc: jolsa@redhat.com
Cc: zheng.z.yan@intel.com
Cc: bp@alien8.de
Cc: vincent.weaver@maine.edu
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1389176153-3128-3-git-send-email-eranian@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_rapl.c