Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp304156pxb; Wed, 27 Oct 2021 03:24:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwXmZjglDx5BOX8CX77NSi+jzoLI26DJjHDwcBdMhFzQAw5lAMd+U14J3C2bGL1Pxm1aMo X-Received: by 2002:a63:9042:: with SMTP id a63mr19350299pge.230.1635330280763; Wed, 27 Oct 2021 03:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635330280; cv=none; d=google.com; s=arc-20160816; b=Xpm/GLOVVDb/+Yfk+pC7KNR7wIFn8/oZ3z3wKlIiFV9fKrKTYpAzPNdxOOpuY3y44X cEWQrz832xNKnd2+ZcM04KW2aIGceSkMBAofYwgpTAKLTZRmBeHM6Xc2OO7ou0Jv8Ax+ 60TRea3pgZn2adZbqJKRIDpshANUMfDFGM20WFqluwmyPjHeWeq2/RpSon0CTssRWUuJ xUG8ic3UZQBNAV06iOwYUZXXsoI6OYeLU57+yBhTyZOu9z7DHGuU8aaffltFJmkYFp47 KzePmo7koPHro7Rs58CywUdQzBIwWZyeG1sPtuGuUlcusfs9OG2aYIR284xOsZWelp5p 5FIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=rqHV8w/q1gu7Qm038EK13yeuZWclfySrGGu8MHfZb9I=; b=HnmC0T+eSuaecno01cJKOzaaw8iAUbOx3xrDObA7yYxU7ZtPMeJ8Z/SLT2FhejiV38 3H0wp7ayfGa+IGGqIP4BOpTzB9CqTNX5BX49mmjiqyA44aDF4pWOAWiij5IACmV+ef6k qBTXXGldIJgb2Kg40AAuwbaq2ADVLHO2mVneO7/22kRF7M5xyKPlvd+B0Wnw+e7pwmm6 ZRisieo0wBbuiz9M0/BDmJFHyIHa+DfHEVqOSGvKpy5xGyDidkViugjcsmOgTwhY+fi2 2BsLsjPuXfxAD9GT2SHkzctzkT5p3cdH5GRBNh6T+q2zn9TwxQ89V+C+WMUbOqDd1e30 bCWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pg8si995111pjb.62.2021.10.27.03.24.27; Wed, 27 Oct 2021 03:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236679AbhJZUqT (ORCPT + 99 others); Tue, 26 Oct 2021 16:46:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:36618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239267AbhJZUqM (ORCPT ); Tue, 26 Oct 2021 16:46:12 -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 2A19460F24; Tue, 26 Oct 2021 20:43:45 +0000 (UTC) Date: Tue, 26 Oct 2021 16:43:43 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: "Robin H. Johnson" , linux-kernel@vger.kernel.org, mingo@redhat.com, rjohnson@digitalocean.com, Arnaldo Carvalho de Melo Subject: Re: [PATCH 1/2] tracing: show size of requested buffer Message-ID: <20211026164343.2e1754bd@gandalf.local.home> In-Reply-To: <20211007092358.65152792@gandalf.local.home> References: <20210831043723.13481-1-robbat2@gentoo.org> <20210907212426.73ed81d1@rorschach.local.home> <20211007071151.GL174703@worktop.programming.kicks-ass.net> <20211007092358.65152792@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Oct 2021 09:23:58 -0400 Steven Rostedt wrote: > On Thu, 7 Oct 2021 09:11:51 +0200 > Peter Zijlstra wrote: > > > > > +++ b/kernel/trace/trace_event_perf.c > > > > @@ -400,7 +400,8 @@ void *perf_trace_buf_alloc(int size, struct pt_regs **regs, int *rctxp) > > > > BUILD_BUG_ON(PERF_MAX_TRACE_SIZE % sizeof(unsigned long)); > > > > > > > > if (WARN_ONCE(size > PERF_MAX_TRACE_SIZE, > > > > - "perf buffer not large enough")) > > > > + "perf buffer not large enough, wanted %d, have %d", > > > > + size, PERF_MAX_TRACE_SIZE)) > > > > Priting a constant seems daft.. why is any of this important in any way? > > I see your point, but it can be useful if you changed it, and want to know > if you are running the kernel with the change or not. > > I've done daft things were I changed a const and was running a kernel > without the change and couldn't understand why it wasn't working ;-) Peter, Do you have any real issue if I just take this patch set through my tree? -- Steve