Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4807582iob; Mon, 9 May 2022 02:01:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx01Yz7waKwq7EQYReBr/ffodan9V/BBa8A9mPtNTrSClQxOA5mTTo6KSxFJ8UzukEKDUc9 X-Received: by 2002:a17:90b:1d90:b0:1dc:2e4b:37c3 with SMTP id pf16-20020a17090b1d9000b001dc2e4b37c3mr17169047pjb.117.1652086906008; Mon, 09 May 2022 02:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652086906; cv=none; d=google.com; s=arc-20160816; b=yK16HxU1r5X7zmsGcjS/9GyIfV18lP8oL4PEVvqSShB7FXM9xdL/FYEt2hYw6Fvl0+ Cb4A55ygS71CUBAKY4IuTrwl5fbVtpr66LEI/34Kfjb64kpl/eM3q8MQqSInOG7qG821 iuPb/IhZAfkjOIKG7u3w/BEO/gUrXOGU015mhslvHUw9BA1JfxIenU8ZvDWSXA2GAHgw 3rMlqmd6j4hjdcqU9Fb06ll2YVcGwrsX8bz/QyonxfP+BAkx3L9UhwhvoJt0RfnrfrPt dWQs1MDlvsOVz9OjBJUJDzqoGQ7V4cz350DrunpIc7HooV1ZFcGZuwbOu2kPx2vOLArT yPAw== 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:subject:cc:to:from:date :dkim-signature; bh=Y6wd+LNb8nj5EAwY6ub7bEgZZvA8cd6y+cm1HXH+zqM=; b=0BHCHuL+BcXqZhpdNfj6UGxZcR8IKbsKTMZgDIa4maiXBfjswfkuZuuzSe0yjcrwwR 3jmPsswNyyneZh+1wNlntqi+qTd7df+JDxEZbRTiYF4WTTBeFxH7eT4yeCg15EFr0/bc hHZQzauzvpIu2+TfbHpAErsMEQ3w0/CO7a0fuMRkUwHSImHgSb164G2e0MQIjHSemrtR Sp3MsSCODIBGqJIjunxWsN2kSnY3iNVRwyDZD2tNIBJu+155sl5rKfhp6j7yDoVWY4jV Hn2JQWnhIvmTXLhRf3NGwlGRrdXF6+AFUgUhFIu3Lt7IfxXAX4F0vnw6lr6ssAhZ8Yz0 nBbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MTsu0K+d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c3-20020a170902d48300b0015cf376f9e8si12569784plg.36.2022.05.09.02.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 02:01:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MTsu0K+d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0CE1C1FE3E6; Mon, 9 May 2022 01:48:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387983AbiEFBuK (ORCPT + 99 others); Thu, 5 May 2022 21:50:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234118AbiEFBuH (ORCPT ); Thu, 5 May 2022 21:50:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 857475DE7C; Thu, 5 May 2022 18:46:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 22B736202A; Fri, 6 May 2022 01:46:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CFCFC385A8; Fri, 6 May 2022 01:46:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651801585; bh=FJVmyrzscKRwOZCVrazEfpY2ik2lmDilP5a1DeRzKd4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MTsu0K+dGhH0R/zaYitWP9NJrB/Tn1awsvkYSVb0pjvuoST3dVnYyMqJhUb935aRT gSYNaZF2z2ZsNS2fSeQS9Bp11AMtV2kKPbT68ZUBCMJPtA3bvJo1P8mVP+zf5wmNS0 79EKid4bED/qX+zXfbxCH4rROqxZxHMKHNPgdELbGNZpxz+u+Hix8Esl3IN9gADavD 7DAhJq7La0HCzO8pxAhPDl7iYPDBa6iHIRCYbv4fdACM/mdkwzGVZqCt7bh/21g+ZV 6YGlviZsgju3X1v/RripVcFtkS9AK508BdzkWcs3c4o8NuTD0vsXc9TKEVPXmIm64C mqetWcNIGPMzw== Date: Fri, 6 May 2022 10:46:21 +0900 From: Masami Hiramatsu To: Tiezhu Yang Cc: Thomas Bogendoerfer , Steven Rostedt , Shuah Khan , Xuefeng Li , linux-mips@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] selftests/ftrace: Save kprobe_events to test log Message-Id: <20220506104621.bbeba7d977cdb5d95c3e7d87@kernel.org> In-Reply-To: <1651753148-1464-2-git-send-email-yangtiezhu@loongson.cn> References: <1651753148-1464-1-git-send-email-yangtiezhu@loongson.cn> <1651753148-1464-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, 5 May 2022 20:19:07 +0800 Tiezhu Yang wrote: > 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 This looks good to me. :) Acked-by: Masami Hiramatsu Thank you, > > 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 > -- Masami Hiramatsu