Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12944187rwl; Wed, 4 Jan 2023 00:54:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXtDF8TGfwHeb0qYVJbGzGDRStsiKXyM6UleGPTOcIPoQk39cf24UGdMLo5zLrZttU7rrPkl X-Received: by 2002:a17:907:c203:b0:7ad:84c7:503a with SMTP id ti3-20020a170907c20300b007ad84c7503amr39157931ejc.72.1672822485084; Wed, 04 Jan 2023 00:54:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672822485; cv=none; d=google.com; s=arc-20160816; b=tv19PPJ3zQDlSIr3yT6C7sGqLVqxTk/u0zd5m+0+FoYx6wX9gtCuVTPPX3G37/lYyg moLh2uUQEpWipGG9vaOn2Hq4p0901eeOvcTaUpghsHIgKxeCjIDRo1GfYFuu7AvMVhth /T58UmjSYOQB9SUhViSEqAcxlSekSgfQSrYloD2EN0puxIJFb//8s5JBrj4CxcqBmhzY gh+YkNsdqfF+473EcABFTBhEZ+7JE9Vnbf/4gyoR6uVyeAzieUpxkDili1URA5Rcdk1/ piu8OeE2jKLRaLFMeQdRgWHUws5YBWVY0NrFdQapAJOcclKxLKgJUfJvNycQBZ6gA4U6 VwSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=p0+T01g3cDhX0TBZwI7I3pwx5/hpMY2HWs7rrLTUt0s=; b=lMJFVm6YG2f3I9j9dsD5OX8Y2HaG5yj0sxrMr4WMm5TxroCSfLsRJvncZnvLZxJJZZ je0P3dwKzsYPIdtFvanD0vXSsCEoc8WDVuEkTb5IuynCbNp4ZWDTGneVD04zaoDaeJaL HR6J5kBxR/TtHbIG25JdIFwJnQwGTrkShEt9p5tBwAWD9CO6i8jLinujYcY3AQ8MXbxR on6K02WbIL88D/FSP4aG/6DVX650LSMzW6YNSKNrQZbUhLQd92syhf2zUINAK5Jo89nR b18eMXhqLTnvq5vPuVEYirnseIsRtil4OIjlDK2/zC/EYsQOx9m3+m4ePv4lESHMnUKP MKHg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht10-20020a170907608a00b007c10a0c6f44si30739266ejc.623.2023.01.04.00.54.31; Wed, 04 Jan 2023 00:54:45 -0800 (PST) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234085AbjADIfH (ORCPT + 59 others); Wed, 4 Jan 2023 03:35:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234120AbjADIes (ORCPT ); Wed, 4 Jan 2023 03:34:48 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6AC61A388 for ; Wed, 4 Jan 2023 00:34:43 -0800 (PST) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Nn2pd51FpzqTmH; Wed, 4 Jan 2023 16:30:01 +0800 (CST) Received: from [10.67.110.108] (10.67.110.108) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 4 Jan 2023 16:34:40 +0800 Message-ID: <51bc99fe-3fa0-b3f8-1fe0-327395e1f45a@huawei.com> Date: Wed, 4 Jan 2023 16:34:39 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v5 3/9] riscv/kprobe: Prepare the skeleton to prepare optimized kprobe To: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Chen Guokai , , , , , , CC: , References: <20221224114315.850130-1-chenguokai17@mails.ucas.ac.cn> <20221224114315.850130-4-chenguokai17@mails.ucas.ac.cn> <87358sxbtu.fsf@all.your.base.are.belong.to.us> From: "liaochang (A)" In-Reply-To: <87358sxbtu.fsf@all.your.base.are.belong.to.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.110.108] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 在 2023/1/3 16:27, Björn Töpel 写道: > Chen Guokai writes: > >> From: Liao Chang > >> diff --git a/arch/riscv/kernel/probes/opt.c b/arch/riscv/kernel/probes/opt.c >> index 56c8a227c857..a4271e6033ba 100644 >> --- a/arch/riscv/kernel/probes/opt.c >> +++ b/arch/riscv/kernel/probes/opt.c >> @@ -10,6 +10,54 @@ >> >> #include >> #include >> +#include >> + >> +static inline int in_auipc_jalr_range(long val) > > Leave "inline" out; Let the compiler decide. Will do. -- BR, Liao, Chang