Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp302944imc; Sun, 10 Mar 2019 06:18:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhHc8VnGt75knmuTXgwmYhcdY04GFB+h2OrSPCdCa6jWkXQlGoX8NFolJN/gqdyWtxNmMC X-Received: by 2002:a62:20d1:: with SMTP id m78mr27761972pfj.250.1552223935411; Sun, 10 Mar 2019 06:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552223935; cv=none; d=google.com; s=arc-20160816; b=pPk4lD7tkfZma+TeSpLdKyvPrsY0oe4pncO2ixHxns27EEjX1w9UXHXmb9yKSAWe8C rLdu+GbqsC49SIU2pvP8SS0MtI9ChKlVRN1nHbnlHVVsuVpt87+7NBjVwdMXHywfLM6b U0OUP/ycHM+aq/vp/+Az3QUITCnP4BI/sAPMfrhcWwtupFaUH/jy6bpRrBIgeZAApDux SO0QshI3pmfBSe+GAuK1XehufssewruCwCzvzxMDnv1La21o9qhKTm2Jwm+72uiJaE6F 3JEVN53usgW+Wd/0uldmBTWL8MyFLS870jka40R0HLRCYv695jes9kGrvRx5x2UbNON2 0Mgg== 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; bh=9nAbjnqR1YHGPF6LnEc2s+BbzzPNwap/xfIyv2GoGvs=; b=wyi0Y3pBEIT4o8vg2bgIcJR5Gv0R1WaK1e8oW+Q3hJ4ovKdZNOpRfdxd/7xKGOMFBc lhUvbQHiICxPKm3oqpkdkxxo/j5Mz/0DghKCgD3fJ7LeRuxYsDSsnplt/KqRh19wk8lg xKwae0oFqmCj6zOsYMfdKWdizgkwuQuZ8sQAQVYhfZmt2Dq8Rk37Jhno/pUq4w1msQIc MVbMBBRhxR0IvcflTMMACdShtutpt9OGTThe7Bpwh6QWfKF1cxPKeKhX6pCqI8Atv8tA dbZzoah2hhOSdfw2gpomUL3+4uqOf1z4kfoLY1KhD+yKpQBoqqIZNpsvM7uoBi2lW0ib 1lhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ECTXSl11; 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 w12si2878641pfn.95.2019.03.10.06.18.39; Sun, 10 Mar 2019 06:18:55 -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=ECTXSl11; 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 S1726542AbfCJNQf (ORCPT + 99 others); Sun, 10 Mar 2019 09:16:35 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53324 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbfCJNQf (ORCPT ); Sun, 10 Mar 2019 09:16:35 -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=9nAbjnqR1YHGPF6LnEc2s+BbzzPNwap/xfIyv2GoGvs=; b=ECTXSl114c4FcWxrtjk42l+V9 eda8J51xg7a1B7tuh33idBkrumaT4EZ4dd3dUxnLiDeZMExWYk4SpUH+HU0ud84A0QVog/htJdqf4 HJJX+QSywzdLIU+MMhYpa7UgieIUw6SZ3ZB6Us54iHGknZ5Rgyi408k3hSklAJmOhF1FORrhJz4o3 9LBqHjhTWsmwuQCoZ/KSToPMGBRsS3gVNvpf96bubAvk/B/kpWdf16n6tKUZU4gT3U9W0N3s6RDCQ 4FuvLm66HTMVD3cPhZstdIPsGsT8A5oL0E/rddPZpYnVuv13x3WF6evyadYPdo7MlzW3ZMNrMax62 rQbA5623A==; Received: from [188.207.104.17] (helo=worktop.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2yJS-000878-Nw; Sun, 10 Mar 2019 13:16:22 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 3B2CC981BBE; Sun, 10 Mar 2019 14:16:20 +0100 (CET) Date: Sun, 10 Mar 2019 14:16:20 +0100 From: Peter Zijlstra To: Steven Rostedt Cc: Linus Torvalds , Josh Poimboeuf , Thomas Gleixner , Peter Anvin , Julien Thierry , Will Deacon , Andy Lutomirski , Ingo Molnar , Catalin Marinas , James Morse , valentin.schneider@arm.com, Brian Gerst , Andrew Lutomirski , Borislav Petkov , Denys Vlasenko , Linux List Kernel Mailing , Dmitry Vyukov , Slavomir Kaslev Subject: Re: [PATCH 00/20] objtool: UACCESS validation v3 Message-ID: <20190310131620.GL2482@worktop.programming.kicks-ass.net> References: <20190307114511.870090179@infradead.org> <20190307120317.GD32477@hirez.programming.kicks-ass.net> <20190307125526.GB32534@hirez.programming.kicks-ass.net> <20190307131312.GC32534@hirez.programming.kicks-ass.net> <20190307164705.qbu4ytdfdmsighas@treble> <20190307171709.dap5hfeof4yo3nsc@treble> <20190307173810.GI32477@hirez.programming.kicks-ass.net> <20190307131841.3b5d9e00@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190307131841.3b5d9e00@oasis.local.home> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 07, 2019 at 01:18:41PM -0500, Steven Rostedt wrote: > On Thu, 7 Mar 2019 09:45:35 -0800 > Linus Torvalds wrote: > > > On Thu, Mar 7, 2019 at 9:38 AM Peter Zijlstra wrote: > > > > > > Also; it seems to me that something PT, or maybe even simply: > > > > > > perf -e branches -e branch-misses > > > > > > would get you similar or sufficient information. > I currently have one of my engineers looking at the data and may be > sending patches soon. It's basically an entry level way to get into > kernel development. Note, no patch will be sent just because of the > data from the profiling. The task is to look at and understand the > code, and see if it can be optimized (with likely/unlikely or flow > changes). It's a way to get a better understanding of the kernel in > various locations. It is by no means "profiler said this, lets change > it." All changes must be rational, and make sense. The profiler is only > used to help find those places. Can't you just have those same engineers look at perf data? This seems like a very expensive and convoluted way of getting something.