Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp284150ybz; Thu, 23 Apr 2020 23:51:27 -0700 (PDT) X-Google-Smtp-Source: APiQypI3s/YZlvQQdKn9O9PPlJK0I57vkLTL9ATGUbzLoRZ1LmUH/5O9OVJrq8uVK0PKmEzKkBOI X-Received: by 2002:aa7:d7c1:: with SMTP id e1mr6214734eds.8.1587711087113; Thu, 23 Apr 2020 23:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587711087; cv=none; d=google.com; s=arc-20160816; b=LwD07MXX5D3KDKSUwZhWwDB1XiNmqGRyCA24kV1iHKrix2jpGhVGpltwQ+QJiGfgs8 /9ytnw7d4p/Fon97JLqyESOvGZmffq28YS83bNUDBsBIfJkP8i/cSY/r/jLpUEKH74xS 3azDkrS+nHUQYwOiApsB3nYBxZfS83qu2l3dAEvn6vFLhiOqBX45xCxeMkTuNU5BA1Pj yO2zmASDXpkYgvV3gXMFxVMM+gy4fuBNBmO6TnM3/s/fP6MJWybEvMYNUCl+2ErdHD8H VUdlAK7lBoVWYg/nyr0Jg8+tjXcwlkrx72selYEOYW1fFIMWkDiwlNhqH6rLQZf+AHAx ggTQ== 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=zUFAAJfC+Wl2NETfPtiSV8uL/XMZtLHOSlFHn8jK8PhO3Chood42b8m0rmjaFKY1QT PS+dFm009i9Arn9ekQjEsG5fPVHAe/Z4ef5NnKWI6Bb9Ib7ttJiTkl7ybkPgEkpAJ6ry saBhMhVCObAPBb0hWcaq1xMGiAW5ZRMETtbswk9aHiw9cWacj1fPpik2/S5Y2iyRxC+B EcjTUlIgLbRO4HVoiOLhJudYw7Ak2ZReQUOAOB1HwenyXEw5e0/avo+zrwoWr7RSGeKN TcEqTdno3UdjF6usPv10kE33tcEmzbBmazgMHRd1+BkdQkJMlWGFYNaqiygd24ynm20+ l9Hg== 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 i63si2355471edd.601.2020.04.23.23.51.03; Thu, 23 Apr 2020 23:51:27 -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 S1726364AbgDXGte (ORCPT + 99 others); Fri, 24 Apr 2020 02:49:34 -0400 Received: from mga14.intel.com ([192.55.52.115]:40409 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725898AbgDXGtd (ORCPT ); Fri, 24 Apr 2020 02:49:33 -0400 IronPort-SDR: r5ICoHa4/pH8LXMXsQwaWqU9vwC7deplj+YWv1ad9cSa/Qj8GZDHiFmNxKhgFTP5PjufAtdv2u aOuQ2DI7wjfQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2020 23:49:32 -0700 IronPort-SDR: Ljg+v7YIu1xTz76lcT5LXHp5XR5ykTEqFz0weRpwWkPt0WIsu3crKvxGafHvIG1NXQhrTSGxcp pN05dHxsu+hA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,310,1583222400"; d="scan'208";a="259720879" Received: from linux.intel.com ([10.54.29.200]) by orsmga006.jf.intel.com with ESMTP; 23 Apr 2020 23:49:32 -0700 Received: from [10.249.228.69] (abudanko-mobl.ccr.corp.intel.com [10.249.228.69]) by linux.intel.com (Postfix) with ESMTP id 674D5580100; Thu, 23 Apr 2020 23:49:30 -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: Organization: Intel Corp. Message-ID: Date: Fri, 24 Apr 2020 09:49:29 +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: 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