Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp434772rdb; Tue, 31 Oct 2023 11:21:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYplOpH7yoOUBOVHZNxE/4GmfDBhWSXFNLLpGjwqRvteyKXR1UdyI5S3lhpTQDoMlypD8L X-Received: by 2002:a17:90b:100b:b0:27f:fcc8:9196 with SMTP id gm11-20020a17090b100b00b0027ffcc89196mr11238330pjb.32.1698776489593; Tue, 31 Oct 2023 11:21:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698776489; cv=none; d=google.com; s=arc-20160816; b=mstWeJcFe77ekgJY1sD70HHSIOZMctkyHEMk+9KTOrt+WpPlqDi421CYw0NspVXQKA etVIVkJn7z95vvWCbD8B+rlXYNyNPAbPSUdPmx8IyKuUUbno35awDj38mQ0KWbMAn9lr YLW9e5p/CMJHRzBW73FBdh7ddv3Tvv8UyIoJOxkYvSuW07MG4LhYqbtfecJ6x6PiM3P2 ZDhsQ0gPGIyNfVmgJtTnsDix6BkNKcsjiS2zVpqIpKKtnjvwJFbKSTRmjxZ0m0u/tTNb K6ZTADQaIYChoxs6iDg8nK2uOeT2GmfSPOvXFf18YXF15Ed4ukHyJAVcCtzs0u/0mxvf Ogmw== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=26WUia/EylGclipeoGryOma7enBYvcvBpg2sMTqOtmQ=; fh=xcQD9Rb50CYvb1GIWcqmzTBL7yp5KMNl2qduUHqFDTE=; b=gJvoFBhvnYsuHlVw3UPWcg+XuY1XkQuxlty3GTIxBrTSMdDrCosGRnqvZkU7KhJWy/ Zk06/+TxlEy+9USAkOq372gnJbbiR6jXu4T4WzA9UqVWLsGaEAYtNkAG+eZPnO22BIF6 D7wUfDa4KLcv5BKpgfdZpLR/KyVcJMJ/f5VGRAhPlIyi1RQ77saPn88EBw9g/EZp2U4C xR3xUiZRWUKx52WVuclJ8h5VxvRz/wQ9f3g7jFTYqrLSuU9GjBYu8qheM3axKCK/o9m5 sac8ZvF/iJtht5ItXe0l7uBS89mZ9Wz1uw2NGaaVFLumeUCP2Zh3raUAzs/TtWc72P0m i2Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I8MBAcAJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id kk3-20020a17090b4a0300b00278ff770796si1277277pjb.88.2023.10.31.11.21.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 11:21:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I8MBAcAJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 694898028B7C; Tue, 31 Oct 2023 11:21:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230295AbjJaSVS (ORCPT + 99 others); Tue, 31 Oct 2023 14:21:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229672AbjJaSVR (ORCPT ); Tue, 31 Oct 2023 14:21:17 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65AB5A6; Tue, 31 Oct 2023 11:21:15 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02E71C433C8; Tue, 31 Oct 2023 18:21:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698776475; bh=o18vwaeO2R36/vbyGopKWMEkawn3UVBm6qFsz82W5YI=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=I8MBAcAJPkzoHLFjXMEloJwiM/7wimzAfmbxD83KW+cC7avlJB9q4JQuHfg5LhPyT anBo1h+8CEJJ5qgX0UsK0FgrbQF0r7XJprBgsCoLm531DVwCe4WRYfto6u5jWZiZL7 aT3z17ps/46SatgUYjIMd8jPRJe8ZfcAen/zMThUhyb/SlmtcxeTyw9NDm6vDtz29D dZQgq6sS5wlJxs6QgdzepKEu/nnTnJCu2dseeZ62PbXKVHobmrzfMdTqjssa3wytZl NCbW8foBsRd4QEzc42BrgihiaW/LsntsTG+2GiFFxWlB541tE1ZztVaL2QxBdg9h9E GTSytXb6asd9w== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 92E30CE0B77; Tue, 31 Oct 2023 11:21:14 -0700 (PDT) Date: Tue, 31 Oct 2023 11:21:14 -0700 From: "Paul E. McKenney" To: Davidlohr Bueso Cc: Christophe JAILLET , Josh Triplett , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, rcu@vger.kernel.org Subject: Re: [PATCH] refscale: Optimize process_durations() Message-ID: Reply-To: paulmck@kernel.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 31 Oct 2023 11:21:27 -0700 (PDT) On Mon, Oct 30, 2023 at 09:55:16AM -0700, Davidlohr Bueso wrote: > On Sat, 28 Oct 2023, Christophe JAILLET wrote: > > > process_durations() is not a hot path, but there is no good reason to > > iterate over and over the data already in 'buf'. > > > > Using a seq_buf saves some useless strcat() and the need of a temp buffer. > > Data is written directly at the correct place. > > Makes sense. > > Reviewed-by: Davidlohr Bueso Queued and pushed, thank you all! Thanx, Paul