Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5194910imb; Thu, 7 Mar 2019 09:45:40 -0800 (PST) X-Google-Smtp-Source: APXvYqz2+Ewa7xvE+AJ3imgcSM+9QXRdLE0HuIzzPONt8A0BagGkJBsBPg346jWMqUCgi/pGzh4i X-Received: by 2002:a62:cf81:: with SMTP id b123mr14247221pfg.29.1551980740876; Thu, 07 Mar 2019 09:45:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551980740; cv=none; d=google.com; s=arc-20160816; b=AuuwBZyOm5iaHStehXtbrgjhu/mzEGI3lOCxSBmt137yfuFroOOWOTyOlk/USl5AsC 7IRGsDRRXsaSowJhC2k6vS62JbIj3oDFy6bEDTI167WQj8ODwRvcAI+P3J+w1LoIkhWi 1u66obcMuc5kTfnDqBtEcKFPFylrJEFlIscewVXBd8mvd1OUWw6VPCvf6F0GX9UfoqUI guapnE9WpNMxnBKg8res9mgK0uMJJUD2B0N3+BzVka/fs00YmX56MShTNNMVzOMOJxIx B5e5PNG4SKX3y7lfF9SKaCkRuy9LV2LFCOnBHzPGECEOqmRx2HEt8lNQh+14vni73t5U 0MeQ== 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=uDq5zG4p39D8f4hJpki+ohJYfTg22afpUWbht5ITcqQ=; b=CU4/IEi2rM5kKigPguLB1H5wPX29uxh0cfcYlp670474tvOCJFKhsokGb6DJaM+DC1 w/3y1UqrtNkmyJwhun6RDGHzgieTXwNnGwhjVg9kYeaBYSgfh1UCR+XdkhI7D6TVQ2Ig ah+sfC5BVfxTgwu2C9aYgiwoDUfAb8xbeXc4X2r4kFFO+jvzUFkj3j+63eTmyuUsUniF DxoyM5Mlv032a5nOwJJSozKS7lZGcr0ouTub/KxFdaOnC4zWBB/QuLXlcpmkPGvWn1gw UMYhxqOkWStNjjpAJuX3d829LYGKY7PZM5WJZGxPXahIdu9arfuUzU61Ekcmo2iK0QJU 9fbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fYymUQHG; 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 j5si4491205pfi.227.2019.03.07.09.45.25; Thu, 07 Mar 2019 09:45:40 -0800 (PST) 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=fYymUQHG; 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 S1726381AbfCGRne (ORCPT + 99 others); Thu, 7 Mar 2019 12:43:34 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:45606 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726180AbfCGRne (ORCPT ); Thu, 7 Mar 2019 12:43:34 -0500 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=uDq5zG4p39D8f4hJpki+ohJYfTg22afpUWbht5ITcqQ=; b=fYymUQHGX3fy/87Q1oBPhxgCI ki4UvMXWueM4FauNvLkprVKIjqaE7DY1+qSRwA342rMLrYn6gBHAUtxXt2O2k6Z4XOPi/+y/DSZP2 QTHmqapc4IpAOL7+SsgXYoOGheMvEyJLXas7I+sMku8jE+BHicKodIoaooPwmJgU2Ig0BVgM2h0Uw 3gC+ykRm3ztzewADxrWjiPNisokFlL/l6RmQiDYH76DWxZQd6gR8JbJGH/7/y5mEEHXGt77rJI/Ev 1yoAesGjns6Yw0jSMJQw2Jf2KSi4H37WZMkyTY6RkW9lmSJzFngjAS7bFFfAOz2k5ltv1XuLpWYaS NL+HYwrvA==; 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 1h1x3E-00049f-8k; Thu, 07 Mar 2019 17:43:24 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BB07E2029B186; Thu, 7 Mar 2019 18:43:22 +0100 (CET) Date: Thu, 7 Mar 2019 18:43:22 +0100 From: Peter Zijlstra To: Josh Poimboeuf Cc: torvalds@linux-foundation.org, tglx@linutronix.de, hpa@zytor.com, julien.thierry@arm.com, will.deacon@arm.com, luto@amacapital.net, mingo@kernel.org, catalin.marinas@arm.com, james.morse@arm.com, valentin.schneider@arm.com, brgerst@gmail.com, luto@kernel.org, bp@alien8.de, dvlasenk@redhat.com, linux-kernel@vger.kernel.org, dvyukov@google.com, rostedt@goodmis.org Subject: Re: [PATCH 00/20] objtool: UACCESS validation v3 Message-ID: <20190307174322.GK32477@hirez.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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190307164705.qbu4ytdfdmsighas@treble> 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 10:47:05AM -0600, Josh Poimboeuf wrote: > This "fixes" it, and also seems to help -Os make much code: > > diff --git a/include/linux/compiler.h b/include/linux/compiler.h > index 445348facea9..8de63db58fdd 100644 > --- a/include/linux/compiler.h > +++ b/include/linux/compiler.h > @@ -67,7 +67,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, > .line = __LINE__, \ > }; \ > ______r = !!(cond); \ > - ______f.miss_hit[______r]++; \ > + if (______r) ______f.miss_hit[1]++; else ______f.miss_hit[0]++; \ > ______r; \ > })) > #endif /* CONFIG_PROFILE_ALL_BRANCHES */ Excellen; let me put the kids to bed and then I'll have a poke.