Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751732Ab3GYEGs (ORCPT ); Thu, 25 Jul 2013 00:06:48 -0400 Received: from mail-vb0-f41.google.com ([209.85.212.41]:64216 "EHLO mail-vb0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751106Ab3GYEGp (ORCPT ); Thu, 25 Jul 2013 00:06:45 -0400 Date: Thu, 25 Jul 2013 00:12:45 -0400 (EDT) From: Vince Weaver To: Vince Weaver cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Jiri Olsa , Peter Zijlstra , mingo@kernel.org, acme@redhat.com, Stephane Eranian Subject: [PATCH 2/2] Update perf_event ABI documentation: add devices dir documentation In-Reply-To: Message-ID: References: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) 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 Content-Length: 2089 Lines: 66 There were various perf_event related sysfs entries in the /sys/bus/event_source/devices/*/ directories that were not documented. This is version 2 with fixes suggested by Jiri Olsa. Acked-by: Jiri Olsa Signed-off-by: Vince Weaver diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices b/Documentation/ABI/testing/sysfs-bus-event_source-devices new file mode 100644 index 0000000..e7434ee --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices @@ -0,0 +1,45 @@ +What: /sys/bus/event_source/devices//cpumask + +Date: 2012/09/10 + +Contact: Linux kernel mailing list + +Description: This value holds a representative core for each + socket in a system. It is meant to help when + creating a perf_event event for socket-wide events + like uncore and northbridge events. + + The format is a comma separated list of cpu numbers, + one for each socket in the system that the PMU in + question can run on. + + For example, on a two-socket Sandybridge-EP machine and + the cbox0 uncore the value of the file will be: + 0,8 + + +What: /sys/bus/event_source/devices/cpu/rdpmc + +Date: 2011/11/20 + +Contact: Linux kernel mailing list + +Description: Indicates whether a CPU allows userspace "rdpmc" + instructions (unprivileged reads of the performance + counter MSRs). + + You can echo 0 to this value to disable user rdpmc + access. + + +What: /sys/bus/event_source/devices//type + +Date: 2013/01/08 + +Contact: Linux kernel mailing list + +Description: This value holds the PMU (Performance Monitor Unit) type + value that is passed into the perf_event_open() + attr:type field when opening an event. + + The value is a decimal integer. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/