From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752325AbbJNGrp (ORCPT ); Wed, 14 Oct 2015 02:47:45 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:33883 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751276AbbJNGrm (ORCPT ); Wed, 14 Oct 2015 02:47:42 -0400 Message-ID: <561DFA8B.1040306@gmail.com> Date: Wed, 14 Oct 2015 08:47:39 +0200 From: "Michael Kerrisk (man-pages)" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Vince Weaver CC: mtk.manpages@gmail.com, 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 Subject: Re: [patch 11/11] perf_event_open.2: add possibility of EBUSY error References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/23/2015 07:16 PM, Vince Weaver wrote: > > Linux 4.1 added the possibility of perf_event_open() returning > EBUSY if an existing exclusive event controls the PMU. Thanks, Vince. Applied. Cheers, Michael > 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 > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/