Received: by 2002:a05:7208:2202:b0:86:316c:7444 with SMTP id s2csp669839rbb; Fri, 31 May 2024 14:16:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBkUagrUrEZp/mmnBTkfivqBrCT3gVMRbMR9C4Qrl42HtvSCN52sKiA2iY9ufFWzb3dWTt0QNsI2RWhWSytCOZQMr3+6Dd3Fo0lx5fGQ== X-Google-Smtp-Source: AGHT+IEUY0ENhYX6wrJ+OhcKmB1Ao1UbJ7D9mPiwilzxhT5pfWPC/Oxq0+LoEGjvhGYH436Ugdmu X-Received: by 2002:a05:6a20:3c9f:b0:1b0:1ce1:e7b1 with SMTP id adf61e73a8af0-1b26f1adf31mr3735568637.20.1717190168183; Fri, 31 May 2024 14:16:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717190168; cv=pass; d=google.com; s=arc-20160816; b=SJ/PLpjilrFrFzT0KUtfJ8FpTmYiTUU9p9SyvpzzUXK+i49orEP5TF1ljTw9wdT/rq gdI58tVWWl1aNNebDGOr8zKFcM8X446rpkcQLQOdrRFIlawOG4IzAsJ67jvU38tm0Qwm GljhEfFZuSGTg21NAoBAcZEVEoReFF/1oqMva5el5Kmu3GlF77tqLRvAAOtkcPVvoSBL N+tvWijJtjA4iC05jv/9cBLkv6PYthyxuGRxN8rjpZVlb4BqP5CWks1e6vXpEnxqtQTj pgDKuS+W15P/oWkM1DV2Wp4XEym9d0MqBmg1cwjOiUfd+9kfD5V0PqTQcf0wuOisRKOV 8sRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=vrgVBKDTjuDBz3vAduQn/ywgbbk+4bb++qYtJ3RlHbU=; fh=HpcemXiblW9dlq8Bqrv4Z4KIjGDAP2bM4zXa6ipEhUE=; b=Mq16KKZaLoHnwOCNUUrRu/sR8d8UGMr3pe7G1odQxTOYqF/EU5KYfO2FRkHs0KpLKJ WUBa1oG+rmOEMHd00m0YWNtWrp4n+k+V8ygkXyOEuNHV+9MarU6niz3Wu6qOGuZgF7+v MQuMI2UKMq2pOMAngr3qnk06ddM7VJ/JeJX8yyJJp6W9mUvatFbApoDY6q83OH9tup4N wG701m0+us9VSqBaYYQ+1jRgmNIPovF34BUSQu9XL2LwhF5kJS8QB12PbKh76DkVIx6q uLuhgvjz+FNrfydVnEG8o3ihf7OTOEdvDxWKZpEAqpSGPcwAFViQmISvCTh/u3xXrjKn SLlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q9eQAr0c; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242b0fc95si2164188b3a.200.2024.05.31.14.16.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 14:16:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q9eQAr0c; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0BC64B210E2 for ; Fri, 31 May 2024 21:16:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFF7412FF8B; Fri, 31 May 2024 21:14:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q9eQAr0c" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3FBD12F5B7; Fri, 31 May 2024 21:14:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717190046; cv=none; b=SWiJ56uJdk27UE2wrvdtZAgZGQV93F2Cczxp0/MTVNjCFIoHWEMDNCf29Hsw+iexNgmy22bq5DQrquBDP2/6+iLi4j9GPp6MVOrYbfjnR+eanNUlfufmkBdtCi+Uu7TjyYHsyKgIKsWUXuyvFa1FrkMUCJ772FzumQSVV1pOKCU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717190046; c=relaxed/simple; bh=g4xGftAItbPB9/XxDsfBwBbndVWd87MNeTmFhogkhE4=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DM1O4xBb+ffgnRA0jUaZ01vaQ5EQtzY67bTTj/tyoOezYsH1wHdhTFGtc66f1wF0DuX4h+KXRoAAmXipGCGHFt9oqpa97TkCZenVwUAhSAalKlY9azlQwwtGlWBYb7NJK3FowdwhM/jLLbYvjBb5o7c7rTGbwdC9DTehNjMQkSA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q9eQAr0c; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A0F0C116B1; Fri, 31 May 2024 21:14:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717190045; bh=g4xGftAItbPB9/XxDsfBwBbndVWd87MNeTmFhogkhE4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=q9eQAr0cmZto6gpP+2HJ1tgAKR9hzD+P9Yx0I+7h3WffpKxyQny84HXuFZcA18tm6 +1cd/Zurjeb9aRuEvKekL6EYsLcgAqF9Z+IsFVxcecXTbiZZBCfiOf52kWEt1BS//y AQSVa8+Y34ZgO2LPifHhLKsP63HnmIJTw5BTKpdI9AruvHdci43Amew9GO/tm+x4Zg HA0XWkBlHu3tcxNS5gkSxcYsxHcRXuk16Up5XhHIfWm3eTiZ0Q+eL00ro3hO9tmqxF /1wEvpZHjR9uROFbuF3jY6J3sKJb5Ei6fuLRvK12F2GygKdW9Uf32uLAKakH9ktxxO GQntCGWGA0WBA== From: Namhyung Kim To: Ian Rogers , Arnaldo Carvalho de Melo , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] tools api io: Move filling the io buffer to its own function Date: Fri, 31 May 2024 14:14:03 -0700 Message-ID: <171718991317.2179562.7793120859292708141.b4-ty@kernel.org> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog In-Reply-To: <20240519181716.4088459-1-irogers@google.com> References: <20240519181716.4088459-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Sun, 19 May 2024 11:17:16 -0700, Ian Rogers wrote: > In general a read fills 4kb so filling the buffer is a 1 in 4096 > operation, move it out of the io__get_char function to avoid some > checking overhead and to better hint the function is good to inline. > > For perf's IO intensive internal (non-rigorous) benchmarks there's a > near 8% improvement to kallsyms-parsing with a default build. > > [...] Applied to perf-tools-next, thanks! Best regards, -- Namhyung Kim