Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2433829ioo; Sat, 28 May 2022 13:32:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTDFFK6RVndGzr2Gfdb3HwXMxtsDPOzYCXOVTsxMPPCwJKvu1Tn7bFzcHCxUH/BEnUFpct X-Received: by 2002:a05:6a00:194b:b0:518:512a:268d with SMTP id s11-20020a056a00194b00b00518512a268dmr44791007pfk.73.1653769949482; Sat, 28 May 2022 13:32:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653769949; cv=none; d=google.com; s=arc-20160816; b=ccyRn40/tFXMesREuJtUAELwBdsXux3mKHzNOyKrS40Kg0yi2H4E4vj+uJBJI89tHq 0Jh3uEZJHIO3jB+70dxJUHdkIbJGqRTUJwbsj6y3mOR5W3yXaUvmneYUftUYaePMYpN4 88Orqa1lCTMMEdM2H86D4UQ0e+wBvta0f73NZ3iZsvdds4vzCfWuIQCIAttuNZTEhVuV inabkMIZ3A2fnX39764BDJvbAXY8djVOGkguWReaD+qyPsjQIV+mJapLCiT2qHgnyqBo tXluO8qrm0Ee+8g2hFdqZPIbH+49FsD4OxJPNYewDZr60+kQ1cpQheZOWAkqeGHVl06i CdDQ== 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:date:subject:cc:to:from :dkim-signature; bh=ZYHdokksnG9Y0QPms6w4hrVQLSzn/79oRxG8uAaCyWA=; b=rTIqM32Jd1PNGR5SxhBB89sBTD37LNA5B16BYZ719Uybdhs+vVg7ziAdVOLbgijKFn Gb4oIo4OBJGxL+9tE+c5jJBeDeaadZkO4YFYkq8mr09MLwhNImEZbpbLFE9JajMuU/p7 K8jp2N01c93EkrMK1XjePwz4ZVmbuLh2IkIzG1F+YMBPZyiErbNACbyRLSjgsQeWLmJC lo5+Lj7llxHQIzYP/n3hC5oW3pd78BTWVRRJVvRZZ2V17eagSCt9cN8iMSWxXcnbS5Zd E91L5nPJu6g+l8aGvtYl600j/BqB5JXZSjsQ846mbsecyEXufQoKFmdzYnT9soZ4o/9R Y04g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=n4KyaUDN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c11-20020a056a000acb00b00518ad3e7f0csi10965032pfl.50.2022.05.28.13.32.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:32:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=n4KyaUDN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4DC591A35A1; Sat, 28 May 2022 12:36:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346813AbiE1IOR (ORCPT + 99 others); Sat, 28 May 2022 04:14:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347542AbiE1IOL (ORCPT ); Sat, 28 May 2022 04:14:11 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D57DF53; Sat, 28 May 2022 01:14:06 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id z11so6514881pjc.3; Sat, 28 May 2022 01:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZYHdokksnG9Y0QPms6w4hrVQLSzn/79oRxG8uAaCyWA=; b=n4KyaUDNiRgLAnB6fAuw9YONU7eZLpumh8ntdlUumo28paSx7jQf7ZL2xBqIfVGneX eRbSH5g5CV03RFtJGNPP0NPpYixt619Zp/XlAPVf75bqqkpIcmrh+OspL3LbxmFJid3Z FHLuTUhZlwU2c4euDn/A5LXKyyPCtD1reFCBasCC4UnQNOLjO66cED98AZ3+oQXQQ+9E QKeQcVf7pAYS0flG9Q7MTSfKpCeFaEzdWpnFQkXLYdFKRbaAfd3RAGxiu0V52Sv21VjL RtzyeQQkXv8BO1PRYiVRDViMiPcTWyozS3mLQ0KmuNfg6oZqA2wCCLzyR/LGYKRT80DW 0kEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZYHdokksnG9Y0QPms6w4hrVQLSzn/79oRxG8uAaCyWA=; b=KqkmesPnC8szGN/E8M56bZoN/QodJI5O8vN3tKkfFi2PWmWdTg9zOCIm12AAhn5zJs 95iN12BJon9fHvwL/1dbgI/NwFq98DbzwbPsK7X6J7LBgBjrsIvL1DgIDM89zXXKPWY9 DW2oHB5fP7rXgH015Cl6wE/ZJWmUki/9l5roT+svjPPH3P2AY95tzUi3bDwrPUON/qAc EPawaD+Y39Y3UUE0v6x4jcMk2sHDz+YyqGebnbrEt+Z+EGc+fMxTkEN0fLC0FYtKHSp1 grgUdGOhMtRhqz9m7/tqGGRO2DP/nhrc8XHrfs5wmo9QFDctlO75krbE5u9qYMkkDOHc rs7Q== X-Gm-Message-State: AOAM5335GiaFpWJMsw1O+yHG6P6z0hPki6WBGGtlC1V9NiLIySA3fdhL PAq9xkScFPACAyqi3GR1WG2mXfnknTkCJA== X-Received: by 2002:a17:90a:e7cb:b0:1df:8481:9469 with SMTP id kb11-20020a17090ae7cb00b001df84819469mr12401528pjb.195.1653725646153; Sat, 28 May 2022 01:14:06 -0700 (PDT) Received: from localhost.localdomain ([140.116.104.153]) by smtp.gmail.com with ESMTPSA id i12-20020a17090ad34c00b001e0c5da6a51sm2774347pjx.50.2022.05.28.01.14.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 01:14:05 -0700 (PDT) From: Yu-Jen Chang To: ak@linux.intel.com, jdike@linux.intel.com Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, keescook@chromium.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, linux-um@lists.infradead.org, jserv@ccns.ncku.edu.tw, Yu-Jen Chang Subject: [PATCH 2/2] x86/um: Use x86_64-optimized memchr Date: Sat, 28 May 2022 16:12:36 +0800 Message-Id: <20220528081236.3020-3-arthurchang09@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220528081236.3020-1-arthurchang09@gmail.com> References: <20220528081236.3020-1-arthurchang09@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add x86_64-optimized memchr, which is 4x faster than the original implementation, into um. Signed-off-by: Yu-Jen Chang Signed-off-by: Ching-Chun (Jim) Huang --- arch/x86/um/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/um/Makefile b/arch/x86/um/Makefile index ba5789c35..52b7c21ca 100644 --- a/arch/x86/um/Makefile +++ b/arch/x86/um/Makefile @@ -28,7 +28,7 @@ else obj-y += syscalls_64.o vdso/ -subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../entry/thunk_64.o +subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../lib/string_64.o ../entry/thunk_64.o endif -- 2.25.1