Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp783496rwl; Wed, 12 Apr 2023 04:11:57 -0700 (PDT) X-Google-Smtp-Source: AKy350bX7dTzfEbFptihXD2xupApQnnMZ9fawYPbtwfwak8wveKrXAa6wj2tghyUP2fvpyWWZxA+ X-Received: by 2002:a05:6a20:3391:b0:eb:765d:e0cd with SMTP id f17-20020a056a20339100b000eb765de0cdmr3002892pzd.48.1681297917245; Wed, 12 Apr 2023 04:11:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681297917; cv=none; d=google.com; s=arc-20160816; b=LYoN0keZBOm1NmoQBXwLwDDWIs0kkBZZ6NZdlBywIAzBnznoWyxsQdqwsFg92YfPRg Tys19ENzMk8T5Qs8TRAnzg9C6fPHWw4nCGp+JO7TqgtTDjBhxXa/qWaoO1P6xKexqGZH rR6sQykZkcwtHxvdwS0YFdeZ1O/OG18Vnbo79ndlcOQu3C12xP9XPnV30VXPR7t7ZOBs 3XK3+UtTzIfK0uCkRjWrTnrluihqKpEFcEjwyZhQKE0KDZReNdNv29RyjIi1qFmc+LM0 Xe9S86RLADT1E32Qkg6Ythdd7BZojzU6K/p7sk9U8hRy//7eYYYaoBnwdneWMu0wC/iu yM9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=1U46awWphYjKrinPTALW7W05WTuDWT9P5ECKZgmHolI=; b=qB8kD4SDNOx9RBZiDdDg9Ah4KY71zWHNVav8A5SSFIs9/k6RAR89mXYaQJrJERviRc VwOy7Jyd6afLajoqQtGLNPynjQeFephE7+BNsFWvAMWjD1zWKFLgivtA6II8xghPDm5d DXyaoOosME3h5fVkIpEm92w7CoO5MHv9iDDieDVZGao77y0n6Z3FXKTjRKpynLVyntEY JK/lLPWHtFZjxIhoqelMAM0sT8/R7o2nd6oh53j68uKvVnSF49qINdlArs4zLxTS+hsx D4oMZkVyZVeoQTg6t2h+zDbwapvKVrLGdDqxAd76zXWjszgctZ65gxcVAOshmcx7odmo LhTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=Q3UzUbY4; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 32-20020a631860000000b0050bf7310b05si15776422pgy.690.2023.04.12.04.11.45; Wed, 12 Apr 2023 04:11:57 -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=@xry111.site header.s=default header.b=Q3UzUbY4; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229752AbjDLLId (ORCPT + 99 others); Wed, 12 Apr 2023 07:08:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbjDLLIb (ORCPT ); Wed, 12 Apr 2023 07:08:31 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17F3FB7 for ; Wed, 12 Apr 2023 04:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1681297710; bh=ALuqxXkknpPb+XGh4R8O0PTpAo7fqkBau9qQsFBl8xE=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Q3UzUbY44p7ukE1Tkt1fkkTKSZnCiVbjhMP40lTMU1NdYplbK/fbWmQFJ6h2N/WyC ikBWXyKkCCsKSyIe65lIOvEXErMceOLdWGm6tvO549f1cZPL8zv58JIFG+zAPaD3/4 EDvANhuTMKwll7GZI+yYHGr98enV3ChBYfl+FAhM= Received: from [192.168.124.11] (unknown [113.140.11.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 3CCC966212; Wed, 12 Apr 2023 07:08:29 -0400 (EDT) Message-ID: Subject: Re: [PATCH v1 3/4] LoongArch: Use larch_insn_gen_break() for kprobes From: Xi Ruoyao To: Tiezhu Yang , Huacai Chen , WANG Xuerui Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Date: Wed, 12 Apr 2023 19:08:21 +0800 In-Reply-To: <1681293901-24918-4-git-send-email-yangtiezhu@loongson.cn> References: <1681293901-24918-1-git-send-email-yangtiezhu@loongson.cn> <1681293901-24918-4-git-send-email-yangtiezhu@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED 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 On Wed, 2023-04-12 at 18:05 +0800, Tiezhu Yang wrote: > -static inline bool insns_not_supported(union loongarch_instruction insn) > +static inline bool insns_not_supported(u32 code) > =C2=A0{ > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0union loongarch_instruction in= sn; > + > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0insn.word =3D code; > + I remember Xuerui disliked this change. Maybe we can add __attribute__ (__transparent_union__) [1] for union loongarch_instruction instead? [1]: https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html#index-t= ransparent_005funion-type-attribute --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University