From patchwork Thu Aug 22 07:13:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Leroy X-Patchwork-Id: 13772834 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBFF8C3DA4A for ; Thu, 22 Aug 2024 07:14:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8839B80010; Thu, 22 Aug 2024 03:14:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8308580012; Thu, 22 Aug 2024 03:14:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6349280010; Thu, 22 Aug 2024 03:14:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 3C82680012 for ; Thu, 22 Aug 2024 03:14:43 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id F123012140F for ; Thu, 22 Aug 2024 07:14:42 +0000 (UTC) X-FDA: 82479018804.15.9786FC9 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by imf13.hostedemail.com (Postfix) with ESMTP id BE79120016 for ; Thu, 22 Aug 2024 07:14:40 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=none; spf=pass (imf13.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 93.17.235.10 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu; dmarc=pass (policy=quarantine) header.from=csgroup.eu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724310864; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=loXoZn2g6FquTJVnjqsw92ocF3Tl8V5nyKWfkRagQWw=; b=8UaIpyzskWgc/y2EfiiMRUVJW2GcSx24IInEOLqt5Z5LecOQn+EQdnJR8Edgp0sc95WCgP DpKjVUk09Z1KquKmKnAuxG0jtEPSEOvFJ3F1G1HKlH5c+gmeps+/09VGegN7xBHax6L5PA 8uwz18J/zxeFNK/HWjv3cQ6knks64yQ= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=none; spf=pass (imf13.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 93.17.235.10 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu; dmarc=pass (policy=quarantine) header.from=csgroup.eu ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724310864; a=rsa-sha256; cv=none; b=GUr7qJ++fGOVJjtl8cDm1bqIi2Rb8VWfx2YppbjS+2hcdRBo29cvkRw6Jak/9UbapsVqbl GrWQKYafWbtFoXYeGE+oi+aYhAETTVOTuyRXjBbyYtn7pBTTq8GhB8FbdvScepTCbPK02L Exud4gTXn9LhhOqnDtXRHUt85xTLKLY= Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4WqDvN3xV2z9sT0; Thu, 22 Aug 2024 09:13:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x1TLfFxSNw26; Thu, 22 Aug 2024 09:13:36 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4WqDvN33L7z9sSy; Thu, 22 Aug 2024 09:13:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 581FF8B77E; Thu, 22 Aug 2024 09:13:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 7wUGeZI3I6WA; Thu, 22 Aug 2024 09:13:36 +0200 (CEST) Received: from PO20335.idsi0.si.c-s.fr (PO16920.IDSI0.si.c-s.fr [192.168.232.181]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 4FFC78B77D; Thu, 22 Aug 2024 09:13:35 +0200 (CEST) From: Christophe Leroy To: Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , "Theodore Ts'o" , "Jason A. Donenfeld" , Arnd Bergmann , Andrew Morton , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Vincenzo Frascino , Shuah Khan Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2 13/17] selftests: vdso: Don't hard-code location of vDSO sources Date: Thu, 22 Aug 2024 09:13:21 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724310794; l=1792; i=christophe.leroy@csgroup.eu; s=20211009; h=from:subject:message-id; bh=5h3KLlzEytDPiSde0fgrOqrQ+VHGwL8x+UTMWMemKqA=; b=52c+474v8h2re77BqeSjmwGjfxeWNjA9JNg5DuQ62lSQwt3zIwXGDzTZYrzUEJRgw6cHNO+Iw rQyliGCUE71CPHt6eiUIZGbf2GQ3Zpk6iL8sVydNdOYcLKgGcfx+LkJ X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= X-Rspam-User: X-Stat-Signature: 6bmy7f9z585hnfgdwp9eci4ybtb6kz56 X-Rspamd-Queue-Id: BE79120016 X-Rspamd-Server: rspam11 X-HE-Tag: 1724310880-542024 X-HE-Meta: U2FsdGVkX1/9IFfgz8NIlJ+H1vuF8N2ZIoMn81oGvGMPTi9W8HSu+FAZsoqRI24mXgqAFdEc1L2Hh1Oi6ArUzzczmGK1uVVX29UFFzpJjRFZ+U3wrI4VpNbb6T1KVrqaEdIYl0Emim9bRDph7+f8PSW2BijM2yv/cDhf8/nBj1IwmkpY7nNP3HQcobiUMIVPhqtqMX+0/UHplc2XkF1NM2ohLO5pcm3eW5LMJx/wGJ7YRdCowYEoMek2iB8WUQLOMv8Zc8kBxcXKK9pQjdaXduFffLYvX0duXdIN3GQMV/uQon/jgz9cpAeeBeCU5Tyed82Tz/uhPflY8Y6qJddglYthIK8rFsgwrI04BdnXwUpp9B+daNSHo1sAJ0vnL2SIl+dT24ui7rl2DSnua+XQUdeB1MOXiYWBFu7ykE3Yac0jwp6e9t8GdRfHI1iECWBOFfLm4+k6v3RRoEXWHhjrhqnCeh1joR0HhR6N7DoU14VOaIaF36ew/qCvmXaJvH1w6vyND5CRFVJw2XXEG30a2l17rrDrBH4VRrmdXPB4MUVF3X5cYg2nWxCOSrPOt/tzzvVRij3drSB7LRPM5Nspt26BZ50kaVOmZkYo0agp7LICUpEJDcJf+4JuL26OliIIN+4HC3So8IOSL1gEpwOmveaUz2LHCKagTXvrbpOSsNGmCHFXrNUzhSSsfEY5S+REIIiMZxcz5gHfPAn7lDvwd/JCJuXW98TpLl7/Wx6SDk9/Rrl3m6j/4lE7FzOymr99UY6J7wtz2xEhI1zM9xq72pS/ggIgdce0zwuB57ktNUdajK6heJOf+lTuryJUX+B6A9jr+muZmo9AHNSiu0KYudFEknCEJDgRuS8/FVJeJnb0PqZOSLBVPaGVOyRKaQAm/c69/AiJA/DBkvsqXjgvR/CX9aq9lGon53U9k8uvVB9lQsD8G2Vp8R13f9tSBdJf9SvXl8G9nZiOZoDAHbO eR+KtuvR oKg0N52yRmjZbt+osxAlDYCnCpWROl8S/svr9LwOLotDX9IXDkWNE8KBRgtQYgtRxwu0u7FlT5tKkzQzCMD/24nIyytoFq3lgXaK+Muz17CQelc+hZslYfQ/DsyzlMY4csoux X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Architectures use different location for vDSO sources: arch/mips/vdso arch/sparc/vdso arch/arm64/kernel/vdso arch/riscv/kernel/vdso arch/csky/kernel/vdso arch/x86/um/vdso arch/x86/entry/vdso arch/powerpc/kernel/vdso arch/arm/vdso arch/loongarch/vdso Don't hard-code vdso sources location in selftest Makefile, instead create a vdso/ symbolic link in tools/arch/$arch/ and update Makefile accordingly. Signed-off-by: Christophe Leroy --- tools/arch/x86/vdso | 1 + tools/testing/selftests/vDSO/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 120000 tools/arch/x86/vdso diff --git a/tools/arch/x86/vdso b/tools/arch/x86/vdso new file mode 120000 index 000000000000..7eb962fd3454 --- /dev/null +++ b/tools/arch/x86/vdso @@ -0,0 +1 @@ +../../../arch/x86/entry/vdso/ \ No newline at end of file diff --git a/tools/testing/selftests/vDSO/Makefile b/tools/testing/selftests/vDSO/Makefile index 3de8e7e052ae..c9a819cacbf2 100644 --- a/tools/testing/selftests/vDSO/Makefile +++ b/tools/testing/selftests/vDSO/Makefile @@ -40,7 +40,7 @@ $(OUTPUT)/vdso_test_getrandom: parse_vdso.c $(OUTPUT)/vdso_test_getrandom: CFLAGS += -isystem $(top_srcdir)/tools/include \ -isystem $(top_srcdir)/include/uapi -$(OUTPUT)/vdso_test_chacha: $(top_srcdir)/arch/$(ARCH)/entry/vdso/vgetrandom-chacha.S +$(OUTPUT)/vdso_test_chacha: $(top_srcdir)/tools/arch/$(ARCH)/vdso/vgetrandom-chacha.S $(OUTPUT)/vdso_test_chacha: CFLAGS += -idirafter $(top_srcdir)/tools/include \ -isystem $(top_srcdir)/arch/$(ARCH)/include \ -isystem $(top_srcdir)/include \