Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3785375imm; Mon, 18 Jun 2018 04:08:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLgI0PsiN1H0gvTpl5D0Q7LKgoDMnetwhwF/7ndciyPrTizaKELgNUL5lwMzGQ6q0V6h2uE X-Received: by 2002:a17:902:b488:: with SMTP id y8-v6mr13447300plr.157.1529320135033; Mon, 18 Jun 2018 04:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529320135; cv=none; d=google.com; s=arc-20160816; b=wkK7ZnRdUG9F0WKf0jqig2n503wryK52PxO/JfqhmV4FAUYyoRo3wgTZ5F1/Jf6Oft zkwoO1dCOQegTZYVa++x5M4MHZFG5OYIgtXIYkWSfX7eFhR5eJ9a6QkuQ4k4xBIMo5fi 3QhEGF0Wc0u/lCa70vgdWCwuzp0ff870Nr0jOrnJhZOdQ5FQF9CeT7e5mTGbTaj4X03m oSUDAaEHc+dlZBZsOet/6eKIA3WWLxTk8YUjbsP70nHz71npHiq85XyzrsLJScwyQo2P i7+yL3o1Rm37pgvpOtM09VEeu5CIY4ko+4SOHdCVSA8pwgdu9Onuw543BzdM2f448LQN 3g0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=HvvtE0oL6ZXY644p24VNzVtN62SiRSsos2ZZ3Q2Dpdw=; b=iyz+8AMbNbdXNVWhN9z6stBNVHe8QtNOxzwKX7BXlUwTJaZprbZapj4kA63nkWGtu5 FnIw7dp6O+rnSKOeSUgnwYK0G9izNCWeBejgzj/1FZte92tKF7TEky0wtARGmW4sX/+J Yn9DDaZtpihqp/zPgPF4Vam9N9522J2hIkTr4eoWsFsn4lFk9J3x3qo01Is6ZjkR3udL qWVXI7DiF+/z9Eg5G7yi+dYvffOv0e+dsnj9ROTDVE+2ZRe5S97wo9ZWAPVM/eDQSdli CcsqAVqL97oti05CEIhL1pwDDj5tB2WQi5YnHS718vv0TYgA8797kz3tP0AWmzSbVLDs hppQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="YjnK6m/N"; 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 11-v6si14321969plc.466.2018.06.18.04.08.41; Mon, 18 Jun 2018 04:08:54 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="YjnK6m/N"; 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 S934807AbeFRKvM (ORCPT + 99 others); Mon, 18 Jun 2018 06:51:12 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49608 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932612AbeFRKvL (ORCPT ); Mon, 18 Jun 2018 06:51:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HvvtE0oL6ZXY644p24VNzVtN62SiRSsos2ZZ3Q2Dpdw=; b=YjnK6m/NKzfw5PkWcpxC2bCWX R0cjzoOz7HvwIjHOuXtYHHa2x6Mc2Baas4ex+qioEkcwK7yXl/ree7KA2vivjmN+qV8fJo0+WhtuD Kzl1t8otx/C1I5k4T/8D7WlrWDi6AT1DlDC2O4N9+bJqmX/5ua24ufiO3I/VI9Zy2Rz/8aeO3J4Tg IRSXw9W1DQmCARZ+lbvlT6XfwZuCzC07hRDnq4OIAQpJHC2u2KqxSsbZFUCH/Grsr9CdudKUkGSoi 6vatP6j5ARON3okDCRjDT/vNWgM/H+6wWxFlFVODKRZol1gmo7nzD1pBEmpC6n+eSo00JXJkbOjuQ SaSf8dqfw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUrkW-0001SI-MK; Mon, 18 Jun 2018 10:51:04 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C85B52029FA11; Mon, 18 Jun 2018 12:51:02 +0200 (CEST) Date: Mon, 18 Jun 2018 12:51:02 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: Mark Rutland , yao.jin@linux.intel.com, Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , Alexander Shishkin , Kyle Huey , Linux Kernel Mailing List , Vince Weaver , Will Deacon , Stephane Eranian , Namhyung Kim , Andi Kleen , "Liang, Kan" , yao.jin@intel.com Subject: Re: [PATCH v1 1/2] perf/core: Use sysctl to turn on/off dropping leaked kernel samples Message-ID: <20180618105102.GJ2458@hirez.programming.kicks-ass.net> References: <1529057003-2212-1-git-send-email-yao.jin@linux.intel.com> <1529057003-2212-2-git-send-email-yao.jin@linux.intel.com> <20180615113608.6m74sm7gpl5p6oqe@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 16, 2018 at 10:27:27AM +0900, Linus Torvalds wrote: > On Fri, Jun 15, 2018 at 8:36 PM Mark Rutland wrote: > > > > At least for sampling the GPRs, we could do something like below > > unconditionally, which seems sufficient for my test cases. > > Ack. > > The PEBS case may need checking, but maybe PEBS doesn't even have this issue? Sadly PEBS is susceptible as well, but the proposed patch actually works for that as well.