Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2579266iob; Fri, 6 May 2022 06:10:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4Z3a6vL0YS+kUWjwfZz8EVRuS0DSvscDh1CPip0u+T1MxydLrA8ABABh3xI+YkDksfMCJ X-Received: by 2002:a05:6402:90c:b0:415:d340:4ae2 with SMTP id g12-20020a056402090c00b00415d3404ae2mr3421792edz.331.1651842654924; Fri, 06 May 2022 06:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651842654; cv=none; d=google.com; s=arc-20160816; b=V6GBIrHOA8Uf+eo36ARVKBnI/pMPmtFzcYhvuQEcjsUPMOpXVY2dZybqc2Kd5kUTt5 OR5DVm0RhkMz27fOFzGzbJy6HvYneLGuPermnQhKmtr8J0+nO8mfO+WLbpjXp5a2Mw7+ By3SDRH6L3485hp/LdbfIAA//R/yjtj+0XsKTBUWJgd+wWQVJs7t21CfNCoqDpsO8II1 mSm2DjfmdScfu43LO3xWUMVTz0VyrHxw5TOc3GrgUqBc1rcUur0l86+P4kDx2yGsVMLx syHVKNvTZjFwoyvt4MHhwNkhslXqLQKCtnQnQSJJwuRnkooADJEO+nnurZiLdN495Rt8 4/Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=FsmOXIcVpLWwmsx5TvY8KaQCNXqYUNE0y7ENrBmtoA8=; b=Uu6MDad7ylQO/A/c2xev0lFjiYX1NQGCQW0yNmPQvewklptEqBuI6ST/B+j/DHNv5E eQhao6nzfqLVXTuNLffkFkCU5paI6wDEiLDQbtu0E0oIKlhvzKxCqoEkuavI28H4onRW qQHjqWidPW2n3MMwcxIUehG3fcTp8IcAm63XlsxVXDhzKNQZ+Cj6MaMJddpoX34FXqjx 4/TmaqKtObW8RdNlo+dzGDJpiIqY1poJty9XXkxZzT3+EJ6wxLYDdN1SVnZ8/805ZF6b Jtej5q2emvstBUTtSpPdcLPe9ysVWkgjPUaDYl6a3uIokS9Ny3+KGUE6GhJb/XVr8kBY CvCw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a05640205ca00b00425c391287csi5036906edx.552.2022.05.06.06.10.28; Fri, 06 May 2022 06:10:54 -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; 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 S1376558AbiEEMW4 (ORCPT + 99 others); Thu, 5 May 2022 08:22:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376505AbiEEMWy (ORCPT ); Thu, 5 May 2022 08:22:54 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3E6A354F92; Thu, 5 May 2022 05:19:14 -0700 (PDT) Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9BxYNq9wHNiWN0KAA--.42405S3; Thu, 05 May 2022 20:19:09 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer , Masami Hiramatsu , Steven Rostedt , Shuah Khan Cc: Xuefeng Li , linux-mips@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] selftests/ftrace: Save kprobe_events to test log Date: Thu, 5 May 2022 20:19:07 +0800 Message-Id: <1651753148-1464-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1651753148-1464-1-git-send-email-yangtiezhu@loongson.cn> References: <1651753148-1464-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf9BxYNq9wHNiWN0KAA--.42405S3 X-Coremail-Antispam: 1UD129KBjvJXoW7Gry7GF4rZFykAFWxZFyxKrg_yoW8JF1kpa 93W3Z8Ka18J3W7JryxCw1DGrW09r4kArWUCryrXry3Zwn5ZFsrJr1IgFWDGF93urZYgryf Aw1ayry7ZF97Ja7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUBa14x267AKxVW5JVWrJwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2048vs2IY020E87I2jVAFwI0_Jr4l82xGYIkIc2 x26xkF7I0E14v26r1I6r4UM28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0 Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr0_Gr1UM2 8EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AI xVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20x vE14v26r106r15McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xv r2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7MxkIecxEwVAFwVW5JwCF04k20x vY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I 3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIx AIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAI cVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2js IEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JUx3kZUUUUU= X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 It may lead to kernel panic when execute the following testcase on mips: # ./ftracetest test.d/kprobe/multiple_kprobes.tc A preliminary analysis shows that the issue is related with echo 1 > events/kprobes/enable after add the 256 probe points. In order to find the root cause, I want to verify which probe point has problem, so it is necessary to save kprobe_events to test log. With this patch, we can get the 256 probe points in the test log through the following command: # ./ftracetest test.d/kprobe/multiple_kprobes.tc -vvv -k Signed-off-by: Tiezhu Yang --- tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc b/tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc index 312d237..be754f5 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc @@ -25,6 +25,8 @@ if [ $L -ne 256 ]; then exit_fail fi +cat kprobe_events >> $testlog + echo 1 > events/kprobes/enable echo 0 > events/kprobes/enable echo > kprobe_events -- 2.1.0