From patchwork Fri Dec 1 20:30:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 17425 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1399127vqy; Fri, 1 Dec 2023 12:31:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtfWMKiC2toG1WnX5Tejif4r/4Ka3DeIaTn8xp2qkUGn3NblSBbk8xlaVebhou69yg72Zm X-Received: by 2002:a05:6a20:4426:b0:18c:285f:c07c with SMTP id ce38-20020a056a20442600b0018c285fc07cmr146832pzb.12.1701462661499; Fri, 01 Dec 2023 12:31:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701462661; cv=none; d=google.com; s=arc-20160816; b=fyKCfLa/SBR3dEW7n2J9j1Qv9AfkGhRNdGjz26Y952ajZL25okGmZmS5lbF1ixNzaq 1iJ9Aid3+0N5EG34XHEhLfdWv3lHzBp5twhs6+cVK9iXe0o6vb7gdOgAdl7CRz4VKi9n NhMMk8RR33yr98aGqXOPnhOdP9Q1YgdMZRpb55jbDnegYhym3BbUvvKdyPmvxWE9yCeZ 27UTF4yfh71UpFiOPcjtd5dHsRT7IHG+m0QFrQy0rlZn/3hwLq+HOGV0EitCUKx0I/zJ D4gZqEyTFXULvia/UzTDqcQFOleONY8lsWMnn6eDk1EL+00FslO9NIKvQ53Gt3KXaeK+ pJYQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=zVTVVHrC6bWo/VT1c4DJmqutN8ZwBl5pWER6Ztzc4d4=; fh=WV/Q3i1Afu2/5+m7Cvf6T+31EFLAkJ0ICROXGgKcdPA=; b=m7uf8+AtQl9cBWK0uuEuZYCuYNs05CA3f6cfP0hDnI3rADUOrMPRdxF0evpv3aM17f Y2IZCJ1gY4jyxeFP0/HyYwkA9vVnL/lliJeiroHXNrTf5AHEhoUf1HqjRLWSj3VsJCKz Wjko+yGVUQ8IseNzyVMVBIfsTaW0S9BbHce0zfCV1gTJFHKTJP0Gn4ojziItNxREXOkl KGBL1th/7DK/eOoAkIVdclZxC5hkQqgLyzCm5WH1TQifwqJ+OUR2PxgNW9qi5w3B3ja9 X3jBw9bEUaJkqq+W3udZ2wa0ysZoECvNLgQ8Vqv/cw4Vki26c8rT69hBQCThjjrNCkh4 XOoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ch12lXcN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id bw10-20020a056a02048a00b005c65d0dd9a0si14000pgb.503.2023.12.01.12.31.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 12:31:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ch12lXcN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id BF48F804C53E; Fri, 1 Dec 2023 12:30:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230456AbjLAUat (ORCPT + 99 others); Fri, 1 Dec 2023 15:30:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjLAUar (ORCPT ); Fri, 1 Dec 2023 15:30:47 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4229F10E4 for ; Fri, 1 Dec 2023 12:30:54 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2304CC433C7; Fri, 1 Dec 2023 20:30:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701462653; bh=oYvbCsefC5KwoaF4UMSezCq8AouWW9D3M0cUHQKQjZI=; h=From:To:Cc:Subject:Date:From; b=ch12lXcNqhMroaWVCJExuQeZiV/Ju0LjE1Wb4NQv1YipJlFnDOjE6hRuBdrFBOUuL zozYHRK+Z0ctoILkMP3f0RDRfT5sF5qCbbU7tlfRGb1J7oxNI4dUGv8p4C/2C14vLB drnVuHtybSHE1LoDIR5R13JrhI7ZCXMvS3E+IeXUbeACWaAZk7WE+XiInExX+Mp9A1 AHJvEJYgZXQQp1rQlg4puYCdT6/O/I9gjlMNdwOxabn3SEnuNRic9B212AaAwGhOGV db8kDoequT1mu48kA9xQ+JsAcfE5Khq80G5AMrZmHB6Yay9ZnEthNzOdQT4RyhuNN1 MaapTknfSS07A== From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Ingo Molnar , Thomas Gleixner , Jiri Olsa , Ian Rogers , Adrian Hunter , Clark Williams , Kate Carcia , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo Subject: [PATCH 0/2] Cache the arch specific stderrno routine Date: Fri, 1 Dec 2023 17:30:44 -0300 Message-ID: <20231201203046.486596-1-acme@kernel.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 01 Dec 2023 12:30:58 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784112911621735149 X-GMAIL-MSGID: 1784112911621735149 From: Arnaldo Carvalho de Melo Hi, Please take a look, - Arnaldo Arnaldo Carvalho de Melo (2): perf env: Introduce perf_env__arch_strerrno() perf env: Cache the arch specific strerrno function in perf_env__arch_strerrno() tools/perf/builtin-trace.c | 6 ++---- tools/perf/trace/beauty/arch_errno_names.sh | 6 +++--- tools/perf/trace/beauty/beauty.h | 2 -- tools/perf/util/env.c | 9 +++++++++ tools/perf/util/env.h | 6 ++++++ 5 files changed, 20 insertions(+), 9 deletions(-) Reviewed-by: Ian Rogers