From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758332AbcBXQmS (ORCPT ); Wed, 24 Feb 2016 11:42:18 -0500 Received: from mail-io0-f174.google.com ([209.85.223.174]:35671 "EHLO mail-io0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756328AbcBXQmN (ORCPT ); Wed, 24 Feb 2016 11:42:13 -0500 From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Wed, 24 Feb 2016 11:42:06 -0500 (EST) X-X-Sender: vince@macbook-air To: linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo Subject: perf rapl/powercap : powercap has more lenient permissions Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello so perf_event requires paranoid value of 0 to read the RAPL counters perf stat -a -e power/energy-cores/ /bin/ls Error: You may not have permission to collect system-wide stats. But I can use the new powercap driver to read the same values no problem: cat /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:0/energy_uj 121384969344 Is this expected? Should the powercap permissions be locked down more? Just hitting this, as PAPI has at least 4 different interfaces to read the RAPL power values (perf_event, /dev/msr, libmsr, powercap). Five if you count that AMD exports their equivelent info via the hwmon interface. Vince