Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp109990pxb; Tue, 7 Sep 2021 19:11:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhZ/oLiggdldRGN7xeCCVlsBqD6O73AGMmMB0pG1S9MY12j4Qzg8s1en///KAx+1495ex5 X-Received: by 2002:a17:906:fa10:: with SMTP id lo16mr1470770ejb.342.1631067109132; Tue, 07 Sep 2021 19:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631067109; cv=none; d=google.com; s=arc-20160816; b=Ht5kRfOy5msssA1mK3VQe1YQWRDwDQrbYBpIw1L3iu8FkCR6X6ftocwIaK+TsYXXrB G33alUwocJQ+fY5Ap23qc9ku1qBGz95W/cj2zL6a7157WjPq0icGJ8wdeIZCZNlqFw2e wI85nVJjRhyRAAAOjCJtBo6EDeC8hHjJcTpZwCO6FestBZo2NaRpWZi6pYkSsE6DjOFf jTS4Lk/WzY+fxR8WRfrFwvws+gKxpIrjmI/WLYQFZ8oeZKIGWosYXsxRvHdNT3Y+XZK9 NEMs/ZGwQvqTEBcwDTjcyJO9vm/k+FwojcOzDijy59J99HoQdV6CD8oPECfeG5BJHu4k bfxA== 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=v/C6RcilJamn1/tzzEs7f7q/Wjua0jcte9GXSjrc9ao=; b=0AoCQ5vd0pShDUxAmS2yhZJehcgJ3iWm1ArKx5Op9scTB9gY7J76nAHGEINoI/SG/4 jRMJJnfe4h4zed7n9k2zlQ31VKl8X+d9uDnsHQGeiYgjKOuOSyH3JOMyHFLAN/8p3+Hr Qh8UEuDLunTHYGWzlUYUPNHMJ/TQv8BEKCT4QGXsDZFawFpJ+YrCQU8rDxArnr0BKDZT eXZqJW3P+aoXEp8qS0zPTafwSlzTJljf96ka22HfnSq4jGqC+S9q7qx53ZLnV9VXhU4c 0OfrjA6kz1MbxKqsb3A8Bv/Dtf1jkqA7Hss+Y19mnaZvgHKeJn104CKlZzfIfDUjB+XL 85lg== 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 o21si810271edr.421.2021.09.07.19.11.03; Tue, 07 Sep 2021 19:11:49 -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 S1343877AbhIHBZi (ORCPT + 99 others); Tue, 7 Sep 2021 21:25:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:47678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229946AbhIHBZf (ORCPT ); Tue, 7 Sep 2021 21:25:35 -0400 Received: from rorschach.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 0851A6113E; Wed, 8 Sep 2021 01:24:27 +0000 (UTC) Date: Tue, 7 Sep 2021 21:24:26 -0400 From: Steven Rostedt To: "Robin H. Johnson" Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, rjohnson@digitalocean.com, Peter Zijlstra , Arnaldo Carvalho de Melo Subject: Re: [PATCH 1/2] tracing: show size of requested buffer Message-ID: <20210907212426.73ed81d1@rorschach.local.home> In-Reply-To: <20210831043723.13481-1-robbat2@gentoo.org> References: <20210831043723.13481-1-robbat2@gentoo.org> 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 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. > > 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)) > return NULL; > > *rctxp = rctx = perf_swevent_get_recursion_context();