Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1096763pxb; Thu, 7 Oct 2021 00:14:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN1NecXoej3EKFgcosOwfOWc5v/H/q8GDFIIz0AHTOWkhh7yyxFfae5l8/mAIA4y61hy+W X-Received: by 2002:a50:a2a5:: with SMTP id 34mr4054396edm.207.1633590843000; Thu, 07 Oct 2021 00:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633590842; cv=none; d=google.com; s=arc-20160816; b=Uf3Puh0ZwFeAM2cJBO1RzA4bN9Sk8C9bicBBlNz3HkZ3m6Xk74H5aQLLj2ltYi2i6z cOAclNYDptIBbnhXlrw/IUW/oLpJuhaF+/FhxWCW0092S0qrR7axWISmRCtDqdeyji/j ecEnyTqnwOb2LZTy1wrw8NPZgHiK40FTGz+l/kFP5WSXo/2y1mbN9olD944xSKYeCe6T qrf0voEDA8SBeOn7B0cXF2TU0JHouDNIJmVJJF2cgq2GDg4/JOHQeCeQHqXoxENl0WcU g6j+m5BQnU3KFblaabs/8Err8J0jWSzAF76+i9H47CTkxn2qglkphmR+ILhRLDX4HJcS WxPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=I0RekFPu+w8TOs1ZgfP4To4EFLErVU1H2sFalOTk1VQ=; b=pw9+tQwF2iPlDty8JgHsn1rRY+IR2PGTN+obVRF5lFwz6HVktfrXcdzg23KbpsiiJ0 8coDD1r2vVtrG3sU3hbd4osK0JLBfVz0Ot7QPPSSCM1+j7StQbxmx3NxxmcxA4jQubvK blk0j5QaHdfgW/yn7mkISapZ1bXVENBETRztpkPgz1dqRwWhDg4kNRGBgsJw0COfAZlT yZHrWvpD70R2J7YdG2r3cUBslYblq0oxEFJB4VptRT8cOUSn+bJOSKmYWEDt2kanqoVH zJF41D1bSWkVct0qHwneWSVcEKkTke1+PTG9Wh1HOZ9cY3am8z3n9Hzu7roQ4WUY6Z67 /SHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=hjgI9Xiy; 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 bi21si265201edb.618.2021.10.07.00.13.39; Thu, 07 Oct 2021 00:14:02 -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; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=hjgI9Xiy; 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 S240290AbhJGHOD (ORCPT + 99 others); Thu, 7 Oct 2021 03:14:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240248AbhJGHOC (ORCPT ); Thu, 7 Oct 2021 03:14:02 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BB37C061746 for ; Thu, 7 Oct 2021 00:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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; bh=I0RekFPu+w8TOs1ZgfP4To4EFLErVU1H2sFalOTk1VQ=; b=hjgI9XiySnczm9jj8/vZ4epWv0 0ADQXxpNQXWBnRAfhO5SpxuadnVGlUTmQ0esYzMfW9bfVrqSm0iy5ZAM85qGe+n4NGhSNIN6ZtxpP oB5Vq5qd54CnpWOVtb+VmuACM7GeKKP78tKKWNK0OSCNJqZ3r58O09GQIvaL+H7mpj7cEdabHvxvF y3Wf5G8vLlZ+HAjmGJTTnRHS8FTgSeIRBZd/fbT2mAVkcMr5NAB6yTK6qPY8dx/Adn2tIrR1PQDDD xzOzZXUg09mc8Y8MadECX7M9NRzHiy9SMY3Ls+QiE6vZZ7xxnHustsPrRWbX/eVduL6vFaqyLlq8F PjJh5w7w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mYNZI-008QjF-7f; Thu, 07 Oct 2021 07:11:52 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 64DDE98623A; Thu, 7 Oct 2021 09:11:51 +0200 (CEST) Date: Thu, 7 Oct 2021 09:11:51 +0200 From: Peter Zijlstra To: Steven Rostedt 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: <20211007071151.GL174703@worktop.programming.kicks-ass.net> References: <20210831043723.13481-1-robbat2@gentoo.org> <20210907212426.73ed81d1@rorschach.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210907212426.73ed81d1@rorschach.local.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 07, 2021 at 09:24:26PM -0400, Steven Rostedt wrote: > > I'll need Acks for these patches from the Perf maintainers. > > -- Steve > > > On Mon, 30 Aug 2021 21:37:22 -0700 > "Robin H. Johnson" wrote: > > > If the perf buffer isn't large enough, provide a hint about how large it > > needs to be for whatever is running. Is that an actual reason? > > Signed-off-by: Robin H. Johnson > > --- > > kernel/trace/trace_event_perf.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/kernel/trace/trace_event_perf.c b/kernel/trace/trace_event_perf.c > > index 03be4435d103..26eed4b89100 100644 > > --- a/kernel/trace/trace_event_perf.c > > +++ 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?