Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2555939rdg; Mon, 14 Aug 2023 06:25:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoG79Wj8W2q4wcr/Q2tDTVjps1JOLfH8vNzFSnCtzYoTx/SgfoVErBAz06NXQinVKnG4Sp X-Received: by 2002:a05:6402:792:b0:522:ba6c:9b1b with SMTP id d18-20020a056402079200b00522ba6c9b1bmr7230684edy.26.1692019551727; Mon, 14 Aug 2023 06:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692019551; cv=none; d=google.com; s=arc-20160816; b=QN6m07PoNiqT5aNlHI9qJP1FMX4mKzARjsaVC1touQ3yMypSFKjXyg3269Met6zd70 Dgt83mHpIrJlMy/6p+Qx26anR1M/7uV6Zepb8Zr2yQj1BFyivxFWdYIJKaR4jid4Vl9A 2uQdcM79KQiprDuTGA1WnonDolmUw859BBWiZh7419itIYCPgBiOOLV4fj+dc+7Wr823 FKMYrRD+e2WZCueK4C8SeJN+Jf322WqITVBPmg4/eWLSWQRbRheyjP3+N8QYkYA6EJ27 4Qa5052J3SN1016NwHpLmXWOfOrqFYVPabHLkJJ+Il+M5tntivDOBWNBRh6rMiy6aCdo bgjw== 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:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=+pcJdC6OY/Q29E/h01mlnv9B3+hd11U5I+0djGxIsdA=; fh=F+BXbgbqnfLFrGghhLJqZdN4iLsu/jB7UtdA/QLFtAo=; b=kWSLi3G5/SnEKugV97I7MQFevOpy+/Od2NDchXo7lYHeWEq/p7snZz603AT5F+udqc UUS3kPYv5v83zVlMpWpxRiV0YPWNGWf/Std//IiEwSc97QtmbD62xM9HiSQp7azQwZt7 bv6ELkNIxRniNFMO1gvzcp9OOyEod9IlT9xk5bZXCuv9BfdPyzaJKGOPOd7M0jKgqqxB EQyJyI6ElVeHAFfzBF6AJ+VqVcr/fhs0FmG0vgPZ+xK6ljsojcesC3BB/G2G8n3w1T37 kyT3mcj9hpMM568oZtZ7QrxYAoML9ankCkI/ers1QJ01tcej8r512VZ9WBDw/NYKvJo3 M7Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Yud9//x9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r9-20020aa7d149000000b005256673604esi1639882edo.328.2023.08.14.06.25.27; Mon, 14 Aug 2023 06:25:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Yud9//x9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230102AbjHNM2b (ORCPT + 99 others); Mon, 14 Aug 2023 08:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231573AbjHNM2V (ORCPT ); Mon, 14 Aug 2023 08:28:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E1A610D0 for ; Mon, 14 Aug 2023 05:28:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 04349637F2 for ; Mon, 14 Aug 2023 12:28:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14691C433C8; Mon, 14 Aug 2023 12:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692016094; bh=Qa+koGcZ/5SfZLsg97XT6OX2/jmgLU9/dkCdhrh7P3c=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Yud9//x9voDwzwPvp9WpQ0koSWHLxbu0jxT0nux7+AWWP3yfK15S+XzhDbDMMLW+A JhDOt5Bz6V42v/04OwbD2Qp54rkClUnuvBxkxd22w8GeHrz105yJLIjMACqf3/nMSw 8bggOSJuG8+5KOyw5dG/FiBOkmxZA226YHAsdz0QkViIDfFtK81l5XyBEvxd3yreFC JfoGzS82GhSWxqQR1jziKadK/LsXyGsHwSIplQJ5G84HdPFzpfqVmETdQhnFlga8QQ chBbfUyPtpKXE+asE83OcTNNrw/jLqcBrr1E0WK5HgGDnyCOVPboYasEXW4/tHNq5M z2Y/RzjSLv29A== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Nam Cao , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Nam Cao Subject: Re: test code for kprobe In-Reply-To: References: Date: Mon, 14 Aug 2023 14:28:11 +0200 Message-ID: <87il9hg65g.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Nam Cao writes: A RISC-V specific kprobes test -- much welcome! Please add a proper commit message here. > --- > drivers/test_kprobe/Makefile | 3 + > drivers/test_kprobe/test_kprobe.c | 265 ++++++++++++++++++++++++++++++ > 2 files changed, 268 insertions(+) > create mode 100644 drivers/test_kprobe/Makefile > create mode 100644 drivers/test_kprobe/test_kprobe.c > > diff --git a/drivers/test_kprobe/Makefile b/drivers/test_kprobe/Makefile Architecture specific test code usually reside in "arch/$ARCH" (arch/riscv), and is part of Kconfig.debug. Have a look at: * grep for ARM_KPROBES_TEST in arch/arm * grep for KPROBES_SANITY_TEST, and in arch/powerpc grep test_emulate_step * grep S390_KPROBES_SANITY_TEST Bj=C3=B6rn