Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4122840pxb; Sun, 24 Oct 2021 20:37:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiw2W24bxgHiTrQrgvREjckoFb4629nGTJtGpyVmNCNTV8XRMZNtNpzK2X2a8NyviNf55G X-Received: by 2002:a17:907:7293:: with SMTP id dt19mr100267ejc.455.1635133070977; Sun, 24 Oct 2021 20:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635133070; cv=none; d=google.com; s=arc-20160816; b=t41S6R+RcnUvX8PNxpJ4QxwXVEbKDMb9wMKYOT6ZsCtnztc5pD8Uu2X0AGfuuAaiD3 wJqieD6q8yACEkVbsM15Lw/mb5gxuk1nVD2R36rWBkomCgPUylKhAwsCoUk5eWf3z6Y/ 09Ymh7AhixdwT07ffd00mqzEKQvDwOKNqw6WvcUWBqa0aMslVaAMvg5EZ6xSaTIoVSW5 RzHB238ZOH//t6HQvySEPvgdYekhI5Vm5DMbv8x5bC02GrApmqPK1vyNUIu78b3ym+Fo pXEbRLx37IzYUaBf3LK/2801tQWi/Nb/oF8zpuQZcubH+mSAHpSBa+389Ka+7nwMiNcb wBWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=BxrZmGZdbXkJBvPi3EEh/6AoqHLYE4SdztyUEFyv6yY=; b=tbucYiEaQsFDopytsPNi0tBudxTqcD7t9spdo3eLT7E5M3U6r/iT4PINXRqvjzQlS8 qYOxzTBQoDKo1VcKHYneNqg59DArKKZlJyXPmkcRtmhbU7BEr4itqNOe0OAhsQuJgssX D8GksqUw1uBmt/CFgXlhQ9jI9cnHzV3uppHEtmRoN6uNlwW87QPca7gq4RJnmzlApvT+ KuqO/TWqoh9vwSf/lteosZz++xYsYwySH7XdZe7GmOrvh24ZTt8CgZKX4j4MHbufrLa8 QU3Ng1YXwr+9VkVXPWKRncOTXHZv8SIKq8uFMGRp/eJrCIfSbKUie5s/iBjODfq0f40X F/VA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd7si30954628ejc.595.2021.10.24.20.37.28; Sun, 24 Oct 2021 20:37:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232494AbhJYDeB (ORCPT + 99 others); Sun, 24 Oct 2021 23:34:01 -0400 Received: from mail.loongson.cn ([114.242.206.163]:53854 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232281AbhJYDdh (ORCPT ); Sun, 24 Oct 2021 23:33:37 -0400 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9CxhOb1JHZhrpgfAA--.56276S5; Mon, 25 Oct 2021 11:31:07 +0800 (CST) From: Tiezhu Yang To: naveen.n.rao@linux.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net, mhiramat@kernel.org, corbet@lwn.net Cc: ananth@in.ibm.com, akpm@linux-foundation.org, randy.dunlap@oracle.com, mathieu.desnoyers@polymtl.ca, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] test_kprobes: Move it from kernel/ to lib/ Date: Mon, 25 Oct 2021 11:30:59 +0800 Message-Id: <1635132660-5038-4-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1635132660-5038-1-git-send-email-yangtiezhu@loongson.cn> References: <1635132660-5038-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf9CxhOb1JHZhrpgfAA--.56276S5 X-Coremail-Antispam: 1UD129KBjvJXoW7WFy3Ww4xKFyfJryfCw1kGrg_yoW8Wr4xpw n5Aw48tw4kJ34rX34kuFyvga48tw4v934IgFn8Ar4rtr1kJw4YqrsFgrW3trs2gr4ftFWf Z3WxGFyakFy5J3JanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUPvb7Iv0xC_tr1lb4IE77IF4wAFF20E14v26rWj6s0DM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI 8067AKxVWUWwA2048vs2IY020Ec7CjxVAFwI0_Xr0E3s1l8cAvFVAK0II2c7xJM28CjxkF 64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcV CY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2 jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4 CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v26r1j6r4UMcvj eVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACI402YVCY1x02628vn2kIc2xKxw CY02Avz4vE14v_Gr4l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2Iq xVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r 1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY 6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67 AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuY vjxU4OJ5DUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since config KPROBES_SANITY_TEST is in lib/Kconfig.debug, it is better to let test_kprobes.c in lib/, just like other similar tests found in lib/. Signed-off-by: Tiezhu Yang --- kernel/Makefile | 1 - lib/Makefile | 1 + {kernel => lib}/test_kprobes.c | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {kernel => lib}/test_kprobes.c (100%) diff --git a/kernel/Makefile b/kernel/Makefile index 4df609b..9e4d33d 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -85,7 +85,6 @@ obj-$(CONFIG_PID_NS) += pid_namespace.o obj-$(CONFIG_IKCONFIG) += configs.o obj-$(CONFIG_IKHEADERS) += kheaders.o obj-$(CONFIG_SMP) += stop_machine.o -obj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o obj-$(CONFIG_AUDIT) += audit.o auditfilter.o obj-$(CONFIG_AUDITSYSCALL) += auditsc.o audit_watch.o audit_fsnotify.o audit_tree.o obj-$(CONFIG_GCOV_KERNEL) += gcov/ diff --git a/lib/Makefile b/lib/Makefile index 2cfd339..2c70452 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -100,6 +100,7 @@ obj-$(CONFIG_TEST_MEMINIT) += test_meminit.o obj-$(CONFIG_TEST_LOCKUP) += test_lockup.o obj-$(CONFIG_TEST_HMM) += test_hmm.o obj-$(CONFIG_TEST_FREE_PAGES) += test_free_pages.o +obj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o # # CFLAGS for compiling floating point code inside the kernel. x86/Makefile turns diff --git a/kernel/test_kprobes.c b/lib/test_kprobes.c similarity index 100% rename from kernel/test_kprobes.c rename to lib/test_kprobes.c -- 2.1.0