Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754089AbbGWRKU (ORCPT ); Thu, 23 Jul 2015 13:10:20 -0400 Received: from mail-oi0-f44.google.com ([209.85.218.44]:35858 "EHLO mail-oi0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754110AbbGWRKQ (ORCPT ); Thu, 23 Jul 2015 13:10:16 -0400 From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Thu, 23 Jul 2015 13:16:55 -0400 (EDT) To: "Michael Kerrisk (man-pages)" cc: linux-man@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Borislav Petkov , Frederic Weisbecker , "H. Peter Anvin" , Kaixu Xia , Linus Torvalds , Mike Galbraith , Robert Richter , Stephane Eranian , Thomas Gleixner , adrian.hunter@intel.com, kan.liang@intel.com, markus.t.metzger@intel.com, mathieu.poirier@linaro.org, Vince Weaver Subject: [patch 11/11] perf_event_open.2: add possibility of EBUSY error 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 Content-Length: 1776 Lines: 53 Linux 4.1 added the possibility of perf_event_open() returning EBUSY if an existing exclusive event controls the PMU. This was introduced by the following commit: commit bed5b25ad9c8a2f5d735ef0bc746ec870c01c1b0 Author: Alexander Shishkin Date: Fri Jan 30 12:31:06 2015 +0200 perf: Add a pmu capability for "exclusive" events Signed-off-by: Alexander Shishkin Signed-off-by: Peter Zijlstra (Intel) Cc: Borislav Petkov Cc: Frederic Weisbecker Cc: H. Peter Anvin Cc: Kaixu Xia Cc: Linus Torvalds Cc: Mike Galbraith Cc: Paul Mackerras Cc: Robert Richter Cc: Stephane Eranian Cc: Thomas Gleixner Cc: acme@infradead.org Cc: adrian.hunter@intel.com Cc: kan.liang@intel.com Cc: markus.t.metzger@intel.com Cc: mathieu.poirier@linaro.org Signed-off-by: Vince Weaver diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2 index b3cd93f..3d03786 100644 --- a/man2/perf_event_open.2 +++ b/man2/perf_event_open.2 @@ -2911,6 +2911,11 @@ the cgroup file descriptor in .I pid is not valid. .TP +.BR EBUSY " (since Linux 4.1)" +.\" bed5b25ad9c8a2f5d735ef0bc746ec870c01c1b0 +Returned if another event already has exclusive +access to the PMU. +.TP .B EFAULT Returned if the .I attr -- 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/