Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756941AbdGLH5R (ORCPT ); Wed, 12 Jul 2017 03:57:17 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:36582 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751350AbdGLH5P (ORCPT ); Wed, 12 Jul 2017 03:57:15 -0400 Date: Wed, 12 Jul 2017 09:57:11 +0200 From: Ingo Molnar To: "Jin, Yao" Cc: Kyle Huey , Mark Rutland , gregkh@linuxfoundation.org, Peter Zijlstra , Vince Weaver , stable@vger.kernel.org, Alexander Shishkin , Arnaldo Carvalho de Melo , Jiri Olsa , Linus Torvalds , Namhyung Kim , Stephane Eranian , Thomas Gleixner , acme@kernel.org, jolsa@kernel.org, kan.liang@intel.com, Will Deacon , open list , "Robert O'Callahan" Subject: Re: [PATCH] perf/core: generate overflow signal when samples are dropped (WAS: Re: [REGRESSION] perf/core: PMU interrupts dropped if we entered the kernel in the "skid" region) Message-ID: <20170712075711.vojapr64cq75dqen@gmail.com> References: <20170628174900.GG8252@leverpostej> <20170704090313.xyb5lntyy55ga7dm@hirez.programming.kicks-ass.net> <20170704093345.GB19649@leverpostej> <20170704102159.GB20062@leverpostej> <20170711090358.6si4un4guz6dbxkz@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 675 Lines: 20 * Jin, Yao wrote: > Could we provide 2 options in user space when enabling the event sampling? > > One option is for the use case like rr debugger which only cares the PMI > interrupt but doesn't care the skid. The skid samples doesn't need to be > dropped. Since it's an information leak, this is not something we want to expose as an interface. It's also a very ugly interface: why not just *clear* the sample, instead of dropping it? The hardware messed up and gave us something we specifically did not permit user-space to collect. We have to fix the bad effects to the best extent we can, and not based on some knob. Thanks, Ingo