From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752713AbcIJMpD (ORCPT ); Sat, 10 Sep 2016 08:45:03 -0400 Received: from terminus.zytor.com ([198.137.202.10]:44298 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751243AbcIJMpA (ORCPT ); Sat, 10 Sep 2016 08:45:00 -0400 Date: Sat, 10 Sep 2016 05:40:02 -0700 From: tip-bot for Alexander Shishkin Message-ID: Cc: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, peterz@infradead.org, alexander.shishkin@linux.intel.com, eranian@google.com, tglx@linutronix.de, jolsa@redhat.com, acme@redhat.com, mingo@kernel.org, acme@infradead.org, hpa@zytor.com Reply-To: hpa@zytor.com, acme@infradead.org, tglx@linutronix.de, jolsa@redhat.com, mingo@kernel.org, acme@redhat.com, eranian@google.com, peterz@infradead.org, alexander.shishkin@linux.intel.com, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org In-Reply-To: <20160906132353.19887-6-alexander.shishkin@linux.intel.com> References: <20160906132353.19887-6-alexander.shishkin@linux.intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf/x86/intel/bts: Kill a silly warning Git-Commit-ID: ef9ef3befa0d76008e988a9ed9fe439e803351b9 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: ef9ef3befa0d76008e988a9ed9fe439e803351b9 Gitweb: http://git.kernel.org/tip/ef9ef3befa0d76008e988a9ed9fe439e803351b9 Author: Alexander Shishkin AuthorDate: Tue, 6 Sep 2016 16:23:53 +0300 Committer: Ingo Molnar CommitDate: Sat, 10 Sep 2016 11:15:38 +0200 perf/x86/intel/bts: Kill a silly warning At the moment, intel_bts will WARN() out if there is more than one event writing to the same ring buffer, via SET_OUTPUT, and will only send data from one event to a buffer. There is no reason to have this warning in, so kill it. Signed-off-by: Alexander Shishkin Signed-off-by: Peter Zijlstra (Intel) Cc: Arnaldo Carvalho de Melo Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Thomas Gleixner Cc: vince@deater.net Link: http://lkml.kernel.org/r/20160906132353.19887-6-alexander.shishkin@linux.intel.com Signed-off-by: Ingo Molnar --- arch/x86/events/intel/bts.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/events/intel/bts.c b/arch/x86/events/intel/bts.c index 9233edf..bdcd651 100644 --- a/arch/x86/events/intel/bts.c +++ b/arch/x86/events/intel/bts.c @@ -378,8 +378,6 @@ bts_buffer_reset(struct bts_buffer *buf, struct perf_output_handle *handle) return 0; head = handle->head & ((buf->nr_pages << PAGE_SHIFT) - 1); - if (WARN_ON_ONCE(head != local_read(&buf->head))) - return -EINVAL; phys = &buf->buf[buf->cur_buf]; space = phys->offset + phys->displacement + phys->size - head;