Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1514281ybz; Thu, 30 Apr 2020 00:17:44 -0700 (PDT) X-Google-Smtp-Source: APiQypJ5JZQMq3hSnw2hX/9MOjLr6jbqq90OwekrH/PnmPZfJx7G54fkrx48AwHX9Zkh2eyBOpO6 X-Received: by 2002:a05:6402:b4e:: with SMTP id bx14mr1395866edb.1.1588231064119; Thu, 30 Apr 2020 00:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588231064; cv=none; d=google.com; s=arc-20160816; b=lgeTIMNhNhGDpPPtmNZmVLyax7+114OJ574HnMJXPchDUyIhqDZ9rw90eQSDrm7jLy e0Cp5IoImpHaFlMYhJ+UGtNqqL6wrZeJYsiIdwLFW+1kpydGN22nqnr72XDd0U+wX2Wj o6zMASBcZpUlDpAtEHVvxGkf42IL17vKoG7AzRsV1eLT+sYw5qvjlznoowsCWdug4GIl KY8hyZuhVnhJME0OsTx8z6FEm2bQ+800pjZQoovhWKf8DG8GGGWnIilglo0el2z/JkUb 0KrOGNh6L7HCUjmsJUxULLrZ8Y3vC2a7cZyxZp0vrTohRjywFraGahFYj4z9CDDbqUwy TiuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:references:cc:to:from:subject:ironport-sdr :ironport-sdr; bh=2smS7sMdseao/a/gZ/Q6A50ZphnQI85MPwFiVZ/fM0M=; b=Pc9BBHf9gfa7ITtwl55umQg6EgyDpFj9u4VWhOTndC91Ax1T4Mc6iiznpKCEzcrZem Jf5i5ZNiqLHjtI69kO4e1boBoNqIkC9SYGJjEeGUyPrQeQ4mAPox2GP/G090QuZXI8Bt 9ruY0weCxJ+rDmUZubgJ5/cdANmduBqlslWqzg+G/JnMkMAy3fWD77Pzl4H0vCzGJVAz ajvbSjSN6gwCLnzOhG3uicbDBVk2R8tIk9EnfhXT6ZJUrQhJNb/YhcyX4RJBdRDPqMm4 FqxTxBu0rguoQQaxaA7e+P9ZwTCZTGce78DX6xWwL7eUtsbjxO1Y1R4OonVmbU0NXXyO W/Lw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si5191092eds.232.2020.04.30.00.17.20; Thu, 30 Apr 2020 00:17:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726661AbgD3HPr (ORCPT + 99 others); Thu, 30 Apr 2020 03:15:47 -0400 Received: from mga09.intel.com ([134.134.136.24]:42192 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbgD3HPq (ORCPT ); Thu, 30 Apr 2020 03:15:46 -0400 IronPort-SDR: Q2MYjqK/DWU2uBBjpP5LMybLyroO7l3FjiTQc5dcrq/Cg0+85lYJCM9A4x6SNZjOLrYOvKrmBf nMf3WX0S1oFg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2020 00:15:45 -0700 IronPort-SDR: n91qNzkX1l82MhoicLietInMyXKYMW9JTz+X32HY2znoZXSR+IlKxECRjzEqNA7wScoLvfkA1I zx0N07yLJvOQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,334,1583222400"; d="scan'208";a="249668452" Received: from linux.intel.com ([10.54.29.200]) by fmsmga008.fm.intel.com with ESMTP; 30 Apr 2020 00:15:45 -0700 Received: from [10.249.229.126] (abudanko-mobl.ccr.corp.intel.com [10.249.229.126]) by linux.intel.com (Postfix) with ESMTP id 32F63580646; Thu, 30 Apr 2020 00:15:21 -0700 (PDT) Subject: [PATCH v3 1/3] perf docs: extend CAP_SYS_ADMIN with CAP_PERFMON where needed From: Alexey Budankov To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , Andi Kleen , linux-kernel , "selinux@vger.kernel.org" , "linux-security-module@vger.kernel.org" References: <0fffd9e2-1f22-a0c2-c2e3-cb7f4bb89d66@linux.intel.com> Organization: Intel Corp. Message-ID: <3b19cf79-f02d-04b4-b8b1-0039ac023b2c@linux.intel.com> Date: Thu, 30 Apr 2020 10:15:21 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <0fffd9e2-1f22-a0c2-c2e3-cb7f4bb89d66@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Extend CAP_SYS_ADMIN with CAP_PERFMON in the docs. Signed-off-by: Alexey Budankov --- tools/perf/Documentation/perf-intel-pt.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Documentation/perf-intel-pt.txt b/tools/perf/Documentation/perf-intel-pt.txt index 456fdcbf26ac..832408a54c1c 100644 --- a/tools/perf/Documentation/perf-intel-pt.txt +++ b/tools/perf/Documentation/perf-intel-pt.txt @@ -687,7 +687,7 @@ The v4.2 kernel introduced support for a context switch metadata event, PERF_RECORD_SWITCH, which allows unprivileged users to see when their processes are scheduled out and in, just not by whom, which is left for the PERF_RECORD_SWITCH_CPU_WIDE, that is only accessible in system wide context, -which in turn requires CAP_SYS_ADMIN. +which in turn requires CAP_PERFMON or CAP_SYS_ADMIN. Please see the 45ac1403f564 ("perf: Add PERF_RECORD_SWITCH to indicate context switches") commit, that introduces these metadata events for further info. -- 2.24.1