From patchwork Sat Feb 11 08:43:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qing Zhang X-Patchwork-Id: 55755 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1401263wrn; Sat, 11 Feb 2023 00:49:45 -0800 (PST) X-Google-Smtp-Source: AK7set9RI9us5C9OQWUXRDAPPhLIhAVrl7z8oTf0v/2vp0Q7jrJ4N8dsvDFFSgCGQSpEHFMr9VBs X-Received: by 2002:a17:902:c944:b0:196:4652:7cff with SMTP id i4-20020a170902c94400b0019646527cffmr20356433pla.11.1676105385239; Sat, 11 Feb 2023 00:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676105385; cv=none; d=google.com; s=arc-20160816; b=damze/GScc4dh1RWmSYIEtCAFO7qQi2fIQa/Tm1EUTYzeD+riHyCHwmcbHkFMcITlk /HDp0Wx285hJZnyB65S/bcCEOrt4yNy1V2tbS3hzjMp8fAXD3hf76EAzMETBlcDFN/Nh CtNYekNQAARaf5iihp4c52edmJEVVQaUxd7aLhGaSltX1tR9hV5v7XeouUPLz/LcuysV 07J9IhJb9Dbrza0KV8l3zRGPleLh5pecYoTVN+YZg8lX6OLw7mIFQ+t7eq1GT1YzhX7s Ru+EYgk3S6OlkCFT3SHTyH1qqQ8/IJ1NcyhQ3sIIF4hJRzU0WNwiHqLwn2PsGwURAJNy ZRlg== 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:subject:cc:to:from; bh=hcFvslWEJ1ku6V5oBYMZEZU5BMlB6uZah4EKZSuWzx8=; b=Wltjc8LFKhVVw+Was/jrZrdlKXTrQGFzO2tvlJA62p1IyhNyFXR87llxr8DfSYlHrN VedafBuYhq66FvWPijyMlFUTqY1syal7fDE3RGZFDluAmXjlmz7YX0Deb98Am1qZPXR7 IJ+QJ6gXPOfYA19IxSoqgk1d5fhF0nfZTRC+8MccRMVuam2GZG3FRKC527TZe+yknA9k XMcl7a2XulJuJ9W4jERPtarP9U6qzklJSA+A0HwkwLC3Clzhepbol3UqNSbQpEdPqF+0 VW7xx8XTmBEwwKUCctsRX3v4U/su4bSpZ2I47JpPY8HqDWfsg7Kte50X8w1qWZmtuSjG GnFA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a170902834a00b0019927ca0fa0si5843802pln.280.2023.02.11.00.49.32; Sat, 11 Feb 2023 00:49: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229725AbjBKIoA (ORCPT + 99 others); Sat, 11 Feb 2023 03:44:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbjBKIn7 (ORCPT ); Sat, 11 Feb 2023 03:43:59 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A4C143AB4; Sat, 11 Feb 2023 00:43:49 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8AxHutDVedjmzERAA--.34165S3; Sat, 11 Feb 2023 16:43:47 +0800 (CST) Received: from localhost.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Bxyr1CVedjKP8wAA--.26447S2; Sat, 11 Feb 2023 16:43:47 +0800 (CST) From: Qing Zhang To: Steven Rostedt , Masami Hiramatsu , Shuah Khan , Huacai Chen , WANG Xuerui Cc: Jiaxun Yang , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH] selftests/ftrace: add LoongArch support for kprobe args string tests Date: Sat, 11 Feb 2023 16:43:46 +0800 Message-Id: <20230211084346.25941-1-zhangqing@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Bxyr1CVedjKP8wAA--.26447S2 X-CM-SenderInfo: x2kd0wptlqwqxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBjvJXoW7ury5XFWDZw45ZF1kAw15XFb_yoW8XFWkpa 92ywn0kF4rAFW3t348Gw15XF1vgr1vyrWUJw1fJF13Xw15ArykXwn7tFsFkrWxurWv9ry3 Aw1IvFyxuFykJ3DanT9S1TB71UUUUjUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bfkYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwA2z4 x0Y4vEx4A2jsIE14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UM2kK e7AKxVWUXVWUAwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI 0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUXVWUAwAv7VC2z280 aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxkF7I0En4 kS14v26r126r1DMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI 1I0E14v26r1Y6r17MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_Jr Wlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j 6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr 0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIY CTnIWIevJa73UjIFyTuYvjxUc9a9UUUUU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757523880655916842?= X-GMAIL-MSGID: =?utf-8?q?1757523880655916842?= before: [5] Kprobe event string type argument [UNTESTED] [7] Kprobe event argument syntax [UNTESTED] after: [5] Kprobe event string type argument [PASS] [7] Kprobe event argument syntax [PASS] Signed-off-by: Qing Zhang Reviewed-by: Masami Hiramatsu (Google) --- .../selftests/ftrace/test.d/kprobe/kprobe_args_string.tc | 3 +++ .../selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc index 459741565222..a4f8e7c53c1f 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc @@ -28,6 +28,9 @@ s390*) mips*) ARG1=%r4 ;; +loongarch*) + ARG1=%r4 +;; *) echo "Please implement other architecture here" exit_untested diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc index d4662c8cf407..1df61e13a812 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc @@ -40,6 +40,10 @@ mips*) GOODREG=%r4 BADREG=%r12 ;; +loongarch*) + GOODREG=%r4 + BADREG=%r12 +;; *) echo "Please implement other architecture here" exit_untested