From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 19B14C561E6 for ; Thu, 6 Aug 2026 08:30:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VPiWIkbVWmYBHHiyLJucgdQjS8LA0v60xAbLS4L6UhA=; b=u7MuQkq9ahEc71 yB7gdPbu+pkTq1YWV1wVbhk7BHZFMFI41j3XsvlxVQK/Uy8+Ur+fE4/0HlVBK/ujR5mWhlPa2ZCqj OWsvJuaQcXrTvJ5v+4HbzSW0uenJM81XoGTBTRNfyZOiISs86NCjnUbllf5OllIwZ8NFFUxnnXQHj 4U6trH7SwzTdfarR+5QNXXoXLroEw5hY+yt5hoAL+Y4DzpgsWnL06yxiXmIPVwsbtn1tI22+LkYTd 2dmb0DlwZZnmGsgv5xKes0UoI9HmrOp0VQe9kpOQs5yb9+kJLkqqMQUpUJN45Ud23HOYfknCMTl6f JXdk2buvPRiVzmSCiuhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wrtUZ-00000005Eww-3ODZ; Thu, 06 Aug 2026 08:30:19 +0000 Received: from galois.linutronix.de ([2a0a:51c0:0:12e:550::1]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wrtUX-00000005EwH-35MR; Thu, 06 Aug 2026 08:30:18 +0000 From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786005015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RYCqiASa8LvYt/XQP0Uqmi0xvt/HI/PjhI8z3teOwyg=; b=N4ulFANk+Jf6IV7bn8P/eqhssX+kCl9QEn40O1M3GjqNka2J4jp/JZAC0BdQGhtpcvadZn sOFZtuGdMFxu6wT1XbHWBQ7jtMH6+pBdEitxTFvSGH7Hm0KyahyZ01DRcNfXYP7T+XS4n2 WFNwz6RYniSyD1qnI8ihnblcn6S6vR+pwUcleFVJ7SU9yXVO53VOVxADgbcRiSHYTHUzut jAdy77QG8XrLwWvjWvgspfuPJvt80DINXy8lKvCVuFMOsUp01TnvJpUQSoqCsquNtMM1pd U75a+Wgz8FQQqonbuMXZf/bI0PfOb7zAsFEdXpBM6bCQn3s5XosZvcEw78BRaQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786005015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RYCqiASa8LvYt/XQP0Uqmi0xvt/HI/PjhI8z3teOwyg=; b=df+jiy/uQp2/4IBaxPt0UnDSaG6JqQTpGXMEyQpQKYox9a1aUE82jy0N/pi/hhSFmVwMTW WPYXSr83aZxpICAA== To: Charlie Jenkins , Paul Walmsley , Palmer Dabbelt , Alexandre Ghiti , Anup Patel , Atish Patra , Conor Dooley , Paolo Bonzini , Andrew Morton , Shuah Khan , Radim =?utf-8?B?S3LEjW3DocWZ?= , Jesse Taube Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, Charlie Jenkins Subject: Re: [PATCH v3 05/17] riscv: kprobes: Use generated instruction headers In-Reply-To: <20260707-riscv_insn_table-v3-5-3f8e5f75ba97@gmail.com> References: <20260707-riscv_insn_table-v3-0-3f8e5f75ba97@gmail.com> <20260707-riscv_insn_table-v3-5-3f8e5f75ba97@gmail.com> Date: Thu, 06 Aug 2026 10:30:15 +0200 Message-ID: <87ik5nd52g.fsf@yellow.woof> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260806_013017_916387_16F88312 X-CRM114-Status: UNSURE ( 4.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: kvm-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kvm-riscv" Errors-To: kvm-riscv-bounces+kvm-riscv=archiver.kernel.org@lists.infradead.org Charlie Jenkins writes: > Migrate the code that is decoding instruction for the use of kprobes to > use the generated instruction headers instead of the hand-written > instruction functions. > > With the more granular instruction support, split the decoding of branches into > their own functions. > > Signed-off-by: Charlie Jenkins Reviewed-by: Nam Cao -- kvm-riscv mailing list kvm-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kvm-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9546C561E6 for ; Thu, 6 Aug 2026 08:30:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dmOkiwZ9mzVmm7oq50Q1ARCVnUhyDiyFvpXLBgMW5RI=; b=zcttJLII81xrzs drv2yBkdhvO0xiQ8WeFaDzlX54aaXKZk/mse6YScAZoSc3mNEByrYDvx3KySnEp6yM21cNXGjYrbu +vUP8YOIijgZCBHbdGOWH9EwIAH3VwtjdVX4VI6fmlS6k8veH6zYnRGed3g9np/OCXxjXB8Zjtiov GHDf78Qp+4tEBf6aE8+Bg32F4I8lBrSTsRReN6kcT4jo2/96b1ZGbovpjAqxt2x/BB3cxAYLQ/gxX eKzk3j0xCJEH5vD+ypBwOg1Yv3l0krcK5Hghb1/UO3A2x1l3X9yY9xjBef1frglvxdX1lE01l09/g u6ozaIbbzp83mzEvRSnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wrtUZ-00000005Ex2-3ZRg; Thu, 06 Aug 2026 08:30:19 +0000 Received: from galois.linutronix.de ([2a0a:51c0:0:12e:550::1]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wrtUX-00000005EwH-35MR; Thu, 06 Aug 2026 08:30:18 +0000 From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786005015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RYCqiASa8LvYt/XQP0Uqmi0xvt/HI/PjhI8z3teOwyg=; b=N4ulFANk+Jf6IV7bn8P/eqhssX+kCl9QEn40O1M3GjqNka2J4jp/JZAC0BdQGhtpcvadZn sOFZtuGdMFxu6wT1XbHWBQ7jtMH6+pBdEitxTFvSGH7Hm0KyahyZ01DRcNfXYP7T+XS4n2 WFNwz6RYniSyD1qnI8ihnblcn6S6vR+pwUcleFVJ7SU9yXVO53VOVxADgbcRiSHYTHUzut jAdy77QG8XrLwWvjWvgspfuPJvt80DINXy8lKvCVuFMOsUp01TnvJpUQSoqCsquNtMM1pd U75a+Wgz8FQQqonbuMXZf/bI0PfOb7zAsFEdXpBM6bCQn3s5XosZvcEw78BRaQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786005015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RYCqiASa8LvYt/XQP0Uqmi0xvt/HI/PjhI8z3teOwyg=; b=df+jiy/uQp2/4IBaxPt0UnDSaG6JqQTpGXMEyQpQKYox9a1aUE82jy0N/pi/hhSFmVwMTW WPYXSr83aZxpICAA== To: Charlie Jenkins , Paul Walmsley , Palmer Dabbelt , Alexandre Ghiti , Anup Patel , Atish Patra , Conor Dooley , Paolo Bonzini , Andrew Morton , Shuah Khan , Radim =?utf-8?B?S3LEjW3DocWZ?= , Jesse Taube Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, Charlie Jenkins Subject: Re: [PATCH v3 05/17] riscv: kprobes: Use generated instruction headers In-Reply-To: <20260707-riscv_insn_table-v3-5-3f8e5f75ba97@gmail.com> References: <20260707-riscv_insn_table-v3-0-3f8e5f75ba97@gmail.com> <20260707-riscv_insn_table-v3-5-3f8e5f75ba97@gmail.com> Date: Thu, 06 Aug 2026 10:30:15 +0200 Message-ID: <87ik5nd52g.fsf@yellow.woof> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260806_013017_916387_16F88312 X-CRM114-Status: UNSURE ( 4.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Charlie Jenkins writes: > Migrate the code that is decoding instruction for the use of kprobes to > use the generated instruction headers instead of the hand-written > instruction functions. > > With the more granular instruction support, split the decoding of branches into > their own functions. > > Signed-off-by: Charlie Jenkins Reviewed-by: Nam Cao _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0863032B123; Thu, 6 Aug 2026 08:30:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786005019; cv=none; b=kEzrtenUb2LAbeWrZ31aHwWPI3IxMTpCvdmU+Aq6TTfZ0TKrtnzc8gz4q+5yZJJRalm6YTvitXKQ8U4GxsoePrqvyvucoVRseEuBE0xbdTpWQTMHjmRjYAnpRWLrOhq1gR45aslITuM9ZES64izMI31VALhA7FXDgG2tj4eWreI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786005019; c=relaxed/simple; bh=RYCqiASa8LvYt/XQP0Uqmi0xvt/HI/PjhI8z3teOwyg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=prU7IFRjv2iYRoa9z1V+tT0XRqXHZscdMUletrfsz5Q5hNdVSqbJfeRBSAlZLiOU57NYwpCih9eaLOAHmjDYw+MvA03YcN1kX0xX7qFDZVNYDzXzKT6DKwsk1b4HE408GT/rI2WdrkBJ03ISIWX8cxOyYA4O0piMt59qssLe9fQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=N4ulFANk; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=df+jiy/u; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="N4ulFANk"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="df+jiy/u" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786005015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RYCqiASa8LvYt/XQP0Uqmi0xvt/HI/PjhI8z3teOwyg=; b=N4ulFANk+Jf6IV7bn8P/eqhssX+kCl9QEn40O1M3GjqNka2J4jp/JZAC0BdQGhtpcvadZn sOFZtuGdMFxu6wT1XbHWBQ7jtMH6+pBdEitxTFvSGH7Hm0KyahyZ01DRcNfXYP7T+XS4n2 WFNwz6RYniSyD1qnI8ihnblcn6S6vR+pwUcleFVJ7SU9yXVO53VOVxADgbcRiSHYTHUzut jAdy77QG8XrLwWvjWvgspfuPJvt80DINXy8lKvCVuFMOsUp01TnvJpUQSoqCsquNtMM1pd U75a+Wgz8FQQqonbuMXZf/bI0PfOb7zAsFEdXpBM6bCQn3s5XosZvcEw78BRaQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786005015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RYCqiASa8LvYt/XQP0Uqmi0xvt/HI/PjhI8z3teOwyg=; b=df+jiy/uQp2/4IBaxPt0UnDSaG6JqQTpGXMEyQpQKYox9a1aUE82jy0N/pi/hhSFmVwMTW WPYXSr83aZxpICAA== To: Charlie Jenkins , Paul Walmsley , Palmer Dabbelt , Alexandre Ghiti , Anup Patel , Atish Patra , Conor Dooley , Paolo Bonzini , Andrew Morton , Shuah Khan , Radim =?utf-8?B?S3LEjW3DocWZ?= , Jesse Taube Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, Charlie Jenkins Subject: Re: [PATCH v3 05/17] riscv: kprobes: Use generated instruction headers In-Reply-To: <20260707-riscv_insn_table-v3-5-3f8e5f75ba97@gmail.com> References: <20260707-riscv_insn_table-v3-0-3f8e5f75ba97@gmail.com> <20260707-riscv_insn_table-v3-5-3f8e5f75ba97@gmail.com> Date: Thu, 06 Aug 2026 10:30:15 +0200 Message-ID: <87ik5nd52g.fsf@yellow.woof> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Charlie Jenkins writes: > Migrate the code that is decoding instruction for the use of kprobes to > use the generated instruction headers instead of the hand-written > instruction functions. > > With the more granular instruction support, split the decoding of branches into > their own functions. > > Signed-off-by: Charlie Jenkins Reviewed-by: Nam Cao