Message ID | 20231026114446.5932-2-huangpei@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp608238vqb; Thu, 26 Oct 2023 04:46:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0WxG3KsYNqiwO0XXK3L3eOPy8brDep4CxqIinwdVe9cpFYMCoEzgp5FgIqgTDyjhaFNYe X-Received: by 2002:a81:6d01:0:b0:5a7:afcc:80fe with SMTP id i1-20020a816d01000000b005a7afcc80femr19236768ywc.3.1698320803692; Thu, 26 Oct 2023 04:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698320803; cv=none; d=google.com; s=arc-20160816; b=Jb746+YgG2mhCRFFED8yK9l3enWPOOBW1WXROPZ5OxIrg0x0pEUaI025kSC0jLMTmS V8j7GnaYJMpO36VVewTHIsE+gWzfWPb1xUrSPfdM5qcI5I/o7yvEpL3afp7wo/7eA7LE 0fAIVvqa8KHXNjTZDwQ89MXwTdsyqqQHtg+jM0b86VJIia5efJjLvmulWLAcC4puqiIc 0PY8HJ1xZ1LdDkxuWxvsg1AqyOKKHCougUAReKWeSGu8t+AoJnufujzM1U9fn/T7/yRO o00/Lni/RUd5cS2cvG9GRvenKtc0aMnAPy1eIpX7xwtBdlxFQYdgNVSfKGxRGRaJAYh0 WPuA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hbq5ISd2R+AXvDSCjmuOGXVZ3O743wGNqRlaaTrvtfk=; fh=thu5tedXMFDXZ5j7xg4DAEx4u9COksnmMcPGGZChnAY=; b=p9Y2t8zz57PU+DiTZ2O5Wpw4ZXhNpWQZHMeVZFxfrHl+3mAiw4V8bOWk5TyHhyrWtF scnVTm6zbC263jg6aQX5yB//cLGeSW0zkOhi1/8/5s2zeXHFnALvoqLc4bPsHujZGoV9 ckix9LvrMMW7hdq36Xwnhq4LUkE7dKUoVk+6iBWZ9ffGPBB6csvlCnK+TL6+J6a6fxsj jqGSmni4HghY4ANqXG7zZZL/GJB5IJvfX91esOSP3j0taWWE3K56PS+HIoZt9oK/fcXj +WrzXyt//7ZiFi8UNBihEtM1c5LUMhHlf114aqtNcjZOg4hroVViKe04ncxC2eMlGiVj dKaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id n13-20020a819c4d000000b00589a37f9043si13564189ywa.407.2023.10.26.04.46.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 04:46:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8CC73809818F; Thu, 26 Oct 2023 04:45:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344845AbjJZLpM (ORCPT <rfc822;aposhian.dev@gmail.com> + 26 others); Thu, 26 Oct 2023 07:45:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344830AbjJZLpK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 26 Oct 2023 07:45:10 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4672A1B2 for <linux-kernel@vger.kernel.org>; Thu, 26 Oct 2023 04:45:06 -0700 (PDT) Received: from loongson.cn (unknown [111.9.175.10]) by gateway (Coremail) with SMTP id _____8DxVug_UTpl9840AA--.2296S3; Thu, 26 Oct 2023 19:45:03 +0800 (CST) Received: from localhost.localdomain (unknown [111.9.175.10]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx3t47UTpl7bMzAA--.4952S3; Thu, 26 Oct 2023 19:45:03 +0800 (CST) From: Huang Pei <huangpei@loongson.cn> To: Huacai Chen <chenhuacai@loongson.cn>, Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] LoongArch: Add RSEQ_SIG break code definition Date: Thu, 26 Oct 2023 19:44:46 +0800 Message-Id: <20231026114446.5932-2-huangpei@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20231026114446.5932-1-huangpei@loongson.cn> References: <20231026114446.5932-1-huangpei@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Dx3t47UTpl7bMzAA--.4952S3 X-CM-SenderInfo: xkxd0whshlqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj9xXoWrWF18Gw17ZrWDAw1UAF1kJFc_yoWxGFX_Jw 13Jw48CrWxWFWxJ3Wqv3sxJr1jgw48Krn0vF9Iqr1UuF98tr43Jws7JasrZr1qk3yDur4r ZFyFvrWY9w1YkosvyTuYvTs0mTUanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb7AYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JF0_JFyl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE 14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x 0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E 7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcV C0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF 04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7 CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU88HUDUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 26 Oct 2023 04:45:18 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780818435024718334 X-GMAIL-MSGID: 1780818435024718334 |
Series |
[1/3] selftests/rseq: Add 64bit LoongArch support
|
|
Commit Message
Huang Pei
Oct. 26, 2023, 11:44 a.m. UTC
Signed-off-by: Huang Pei <huangpei@loongson.cn>
---
arch/loongarch/include/uapi/asm/break.h | 2 ++
1 file changed, 2 insertions(+)
Comments
On 2023-10-26 07:44, Huang Pei wrote: > Signed-off-by: Huang Pei <huangpei@loongson.cn> > --- > arch/loongarch/include/uapi/asm/break.h | 2 ++ Why is this part of the uapi ? None of the other architecture has this as part of uapi. It's only defined in the rseq selftest arch-specific header file. Thanks, Mathieu > 1 file changed, 2 insertions(+) > > diff --git a/arch/loongarch/include/uapi/asm/break.h b/arch/loongarch/include/uapi/asm/break.h > index bb9b82ba59f2..e0fcfc304834 100644 > --- a/arch/loongarch/include/uapi/asm/break.h > +++ b/arch/loongarch/include/uapi/asm/break.h > @@ -20,4 +20,6 @@ > #define BRK_UPROBE_BP 12 /* See <asm/uprobes.h> */ > #define BRK_UPROBE_XOLBP 13 /* See <asm/uprobes.h> */ > > +#define BRK_RSEQ_SIG 16 /* See rseq */ > + > #endif /* __UAPI_ASM_BREAK_H */
Hi, Mathieu, On Fri, Oct 27, 2023 at 2:16 AM Mathieu Desnoyers <mathieu.desnoyers@efficios.com> wrote: > > On 2023-10-26 07:44, Huang Pei wrote: > > Signed-off-by: Huang Pei <huangpei@loongson.cn> > > --- > > arch/loongarch/include/uapi/asm/break.h | 2 ++ > > Why is this part of the uapi ? None of the other architecture has this > as part of uapi. It's only defined in the rseq selftest arch-specific > header file. From my point of view, it makes sense to list the dedicated break code in UAPI. It is harmless and can avoid potential conflict in future. Huacai > > Thanks, > > Mathieu > > > 1 file changed, 2 insertions(+) > > > > diff --git a/arch/loongarch/include/uapi/asm/break.h b/arch/loongarch/include/uapi/asm/break.h > > index bb9b82ba59f2..e0fcfc304834 100644 > > --- a/arch/loongarch/include/uapi/asm/break.h > > +++ b/arch/loongarch/include/uapi/asm/break.h > > @@ -20,4 +20,6 @@ > > #define BRK_UPROBE_BP 12 /* See <asm/uprobes.h> */ > > #define BRK_UPROBE_XOLBP 13 /* See <asm/uprobes.h> */ > > > > +#define BRK_RSEQ_SIG 16 /* See rseq */ > > + > > #endif /* __UAPI_ASM_BREAK_H */ > > -- > Mathieu Desnoyers > EfficiOS Inc. > https://www.efficios.com > >
diff --git a/arch/loongarch/include/uapi/asm/break.h b/arch/loongarch/include/uapi/asm/break.h index bb9b82ba59f2..e0fcfc304834 100644 --- a/arch/loongarch/include/uapi/asm/break.h +++ b/arch/loongarch/include/uapi/asm/break.h @@ -20,4 +20,6 @@ #define BRK_UPROBE_BP 12 /* See <asm/uprobes.h> */ #define BRK_UPROBE_XOLBP 13 /* See <asm/uprobes.h> */ +#define BRK_RSEQ_SIG 16 /* See rseq */ + #endif /* __UAPI_ASM_BREAK_H */