Received: by 10.223.176.5 with SMTP id f5csp2990606wra; Mon, 5 Feb 2018 13:42:41 -0800 (PST) X-Google-Smtp-Source: AH8x226lQUT58iJzwFsSbTBx4oeW4FoHfobOxvzekkYwa8Xejzr90T0+lCoJ8+9ehKk3rTz18szl X-Received: by 2002:a17:902:4222:: with SMTP id g31-v6mr185600pld.203.1517866961183; Mon, 05 Feb 2018 13:42:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517866961; cv=none; d=google.com; s=arc-20160816; b=V8vHv/Bat4goVTcqMEw2JCL1Zrl5+b52H2M+FgE65XbYNnJJZgF3meQFwx63DUdneu 353Istm3QW9N8VUYYo3UNZ5F4n4vzFp0Eyv/efJ+F3QyQxl7ev08mvUP+AfJt+WQDnKV vLfI3C0V191UPMrdgdSYYY4Z4l61PVOBhin4jfTcGlssrp5cD/AduywIyMaGuWLtbNln cVst7mL93ehOGewjtMtwWAk6h/DLrT9sAdeptoQxjGe3cj96xtra2Sb1Q7AVlnbiZ1WZ vi9D4zIgN0rljkXyf+Ee0SQkhF4paZfL1OjcGmPCKXMYpNB8sonfEdnEZfB8d53ggNYr pwSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=qLlHyQxsjizARO1+9MWPScVzG0GwZ2Io6mZ/z5Spsu4=; b=nx0Z7j1M43uWegdGv7PVTlcVeNDEg6TMRWJvBtXjuY1tLeu93O9DibvGK4Nyizx9Hp qGOwMJhDPia6AP4aL39WynDqGVpBdX3kEC6RYjcObUhUAJ/WPf0x0bBcqYz4n1ADWNkn DFwmA8Ymaf4mnIMR7GLkfA+YEj8UmSs8rxLLrIulwbTDI8X1nAsuzM2fVB391s/nPqlU IIYz4GV15ynMkDVUtSwLmmTcFc7dGyeNxIPIOCfMQtAtT6skwvxC/CjAMi3nzS5oyJBN 3sr58Pl6NaJZH7Czz4ktgieaPc7Y4P9KuO4GjqY28Jq1ZMpADB0WkMtHLIohvhs9TsLD 3h/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10-v6si5580472plm.539.2018.02.05.13.42.26; Mon, 05 Feb 2018 13:42:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752593AbeBEVl3 (ORCPT + 99 others); Mon, 5 Feb 2018 16:41:29 -0500 Received: from terminus.zytor.com ([65.50.211.136]:49521 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752582AbeBEVlQ (ORCPT ); Mon, 5 Feb 2018 16:41:16 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w15LaqYY031501; Mon, 5 Feb 2018 13:36:52 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w15Laqo0031495; Mon, 5 Feb 2018 13:36:52 -0800 Date: Mon, 5 Feb 2018 13:36:52 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Jiri Olsa Message-ID: Cc: jolsa@kernel.org, kan.liang@intel.com, linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, ak@linux.intel.com, alexander.shishkin@linux.intel.com, peterz@infradead.org, dsahern@gmail.com, acme@redhat.com, eranian@google.com, namhyung@kernel.org Reply-To: ak@linux.intel.com, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, kan.liang@intel.com, jolsa@kernel.org, namhyung@kernel.org, eranian@google.com, acme@redhat.com, dsahern@gmail.com, peterz@infradead.org, alexander.shishkin@linux.intel.com In-Reply-To: <20180201083812.11359-4-jolsa@kernel.org> References: <20180201083812.11359-4-jolsa@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] x86/events/intel/ds: Add PERF_SAMPLE_PERIOD into PEBS_FREERUNNING_FLAGS Git-Commit-ID: 11974914e8e6d44387b4b23fa6dbd40c94baeb8d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 11974914e8e6d44387b4b23fa6dbd40c94baeb8d Gitweb: https://git.kernel.org/tip/11974914e8e6d44387b4b23fa6dbd40c94baeb8d Author: Jiri Olsa AuthorDate: Thu, 1 Feb 2018 09:38:12 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 5 Feb 2018 13:48:44 -0300 x86/events/intel/ds: Add PERF_SAMPLE_PERIOD into PEBS_FREERUNNING_FLAGS Stephane reported that we don't support period for enabling large PEBS data, which there's no reason for. Adding PERF_SAMPLE_PERIOD into freerunning flags. Tested it with: # perf record -e cycles:P -c 100 --no-timestamp -C 0 --period Reported-by: Stephane Eranian Signed-off-by: Jiri Olsa Tested-by: Kan Liang Tested-by: Stephane Eranian Cc: Alexander Shishkin Cc: Andi Kleen Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180201083812.11359-4-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- arch/x86/events/perf_event.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/events/perf_event.h b/arch/x86/events/perf_event.h index 8e4ea143..78f91ec 100644 --- a/arch/x86/events/perf_event.h +++ b/arch/x86/events/perf_event.h @@ -93,7 +93,8 @@ struct amd_nb { PERF_SAMPLE_ID | PERF_SAMPLE_CPU | PERF_SAMPLE_STREAM_ID | \ PERF_SAMPLE_DATA_SRC | PERF_SAMPLE_IDENTIFIER | \ PERF_SAMPLE_TRANSACTION | PERF_SAMPLE_PHYS_ADDR | \ - PERF_SAMPLE_REGS_INTR | PERF_SAMPLE_REGS_USER) + PERF_SAMPLE_REGS_INTR | PERF_SAMPLE_REGS_USER | \ + PERF_SAMPLE_PERIOD) #define PEBS_REGS \ (PERF_REG_X86_AX | \