Received: by 2002:a17:90a:c8b:0:0:0:0 with SMTP id v11csp2304326pja; Fri, 19 Apr 2019 11:38:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmClMrBChKU0w5LksDwzm8s8mrHIXDE7/XmBpW8QEjc2bI2LCkav7IEmdjnV3sqU7rDhqY X-Received: by 2002:a17:902:ea0d:: with SMTP id cu13mr5338218plb.92.1555699099580; Fri, 19 Apr 2019 11:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555699099; cv=none; d=google.com; s=arc-20160816; b=XlSkyV5QIsRznal2UhpV5Risjdhv0ZcG3SAp1XYCEo+w3c5QbUr8GbsgsvMkS8u+gs AQfjr5FyUX1pr38GCFH06K6sC9HM30BtxWooVqdGKl05ZhkL3mU0divk2raFDD0nSjxs 36ndoSjxCHAt/S3HRt24/eHto0uVAwpzyhRvDVvFZyZpjUn3WJbyB4tPQU/qZ/Y2+H5E rt89JBoTpiMDvnfrFuR4nFd4v8FczV2Xu0wes2uK1mf1XgjnjeyYuaAX1/q4zFrbyFPU U5R+Jp6ivvPb9dLWCn/1diOxWorG3dGMe5nZPYyvh6xPtFr/S9n2Qs5HF6NlDr5vcKRE wLtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=0B220FSJ2angpo+3P/6Yxxgff687pQD8pt02qoryg+Y=; b=NNUAuBDCPswLx7RDlER7YvjflsuyBZKgWrqudK5EMI2CgW7c3Lv7c/rGB6BC2av+Bf R2w/2BdGikHhLp3TIM/2lK5xAbPBoaf0MsR2LWwiTXS7Kp2ed3RL4oH0eF/fQttEW8v5 fgveEwnlxFeurj9feC/laUlns1ARv3y/a3zKr6yczSU21ej+CiiEwg/jJIZP40NRVj3A aHHSj47SZnG7KgZLulObelauNF5dYcW3IK5OqJ9SShQygk0f1G61+eGN3tyfVLxGMybe pa4rA+TIM0I2drWCegYwLwR5MaE0F3fz05YDhM5HsMhztoIMafm58KwVgq7XMCP8LNKK zuTA== 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 z4si4512505pgp.428.2019.04.19.11.38.04; Fri, 19 Apr 2019 11:38:19 -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; 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 S1728048AbfDSSfS convert rfc822-to-8bit (ORCPT + 99 others); Fri, 19 Apr 2019 14:35:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:53888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727526AbfDSS3Q (ORCPT ); Fri, 19 Apr 2019 14:29:16 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CD57421929; Fri, 19 Apr 2019 13:04:41 +0000 (UTC) Date: Fri, 19 Apr 2019 09:04:40 -0400 From: Steven Rostedt To: Ingo Molnar Cc: Peter Zijlstra , Linus Torvalds , Josh Poimboeuf , Thomas Gleixner , Peter Anvin , Julien Thierry , Will Deacon , Andy Lutomirski , 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] compiler.h, tracing: Remove CONFIG_PROFILE_ALL_BRANCHES Message-ID: <20190419090440.640a46c2@gandalf.local.home> In-Reply-To: <20190419100837.GA19406@gmail.com> References: <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> <20190310131620.GL2482@worktop.programming.kicks-ass.net> <20190419100837.GA19406@gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Apr 2019 12:08:37 +0200 Ingo Molnar wrote: > > Can't you just have those same engineers look at perf data? This seems > > like a very expensive and convoluted way of getting something. I haven't tried the perf data. How well does it work with running over a 2 weeks to a month period? That's what I do yearly. Here's the results of my last run: http://rostedt.homelinux.com/branches/gandalf-branches-2019/brach_all-2019-02-05 http://rostedt.homelinux.com/branches/mammoth-branches-2019/branch_all-2019-01-02 http://rostedt.homelinux.com/branches/mammoth-branches-2019/branch_all-2019-01-03 http://rostedt.homelinux.com/branches/mammoth-branches-2019/branch_all-2019-01-17 http://rostedt.homelinux.com/branches/mammoth-branches-2019/branch_all-2019-02-05 I have a cron job that runs nightly that copies the current state, and if the machine reboots, it starts a new file (which is why there's multiple files for mammoth - it rebooted). > > So since no-one offered objections to using perf branch profiling instead > (which method allows so much more than CONFIG_PROFILE_ALL_BRANCHES: such I've never used it, so I have no idea if it is suitable or not. > as profiling glibc and other user-space, or allowing to branch-profile > the kernel is an uninstrumented form not distorted by > CONFIG_PROFILE_ALL_BRANCHES code generation artifacts), lemme propose the > attached patch to remove if-tracing. > > If the CONFIG_PROFILE_ALL_BRANCHES=y feature is required for anyone it > can still be reverted privately or maintained out of tree - no need to > burden the mainline kernel with this. But is it a real burden? It's been in the kernel for over 10 years with very little issue. Only when we do something drastic does it show up, and it's usually a quick fix to get it working again. I believe Josh even told me that it found a bug in the objtool code, so it does still have benefit staying in the kernel even without people using it for profiling. Note, I'm in the middle of writing a LWN article about learning the kernel from branch profiling and it would be a shame if it disappears before I finish it. -- Steve > > I've build tested this and it Looks Perfect Hereā„¢.