Message ID | 20230805033816.3284594-1-zhengyejian1@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp255301vqr; Fri, 4 Aug 2023 21:09:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHFsoD29yj1mr5cx5qdegrPxJI/DOWvNiCUCWigp90ZGVXzG3cw3RalTQ4YKcwSp8pl5jfc X-Received: by 2002:a17:906:51c8:b0:991:c566:979 with SMTP id v8-20020a17090651c800b00991c5660979mr2990050ejk.36.1691208559697; Fri, 04 Aug 2023 21:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691208559; cv=none; d=google.com; s=arc-20160816; b=sWhlSWsdv66oeREUWJy+pctbqlEdXDh9nt0e/Al0bUXiwCe6LlqG6+YOXF2nu+ElsH S/YGTgt9uKpkM5rfQTLeXD+mqWPnqIR+AW06VKKMEkQef2UEzULYdrUGH6fjn1h7jlG6 WHhvNrldkSY77HGDmP1/i8pNstLhwaW3TPOnvYYuepNj6v6cMB4ieB5xmv2Is/40oygA 129fpXUeO/ixmi2wDbG4qUl+rPsvKmDRVI9mqSNmECXEXk0JJvdiTuTvYnkuflgP7Yup JBNBJx4llIaTTGizPo6EJAiSVASX51H4xwMl5bQSje//C/QXTTUrolWfox38yJrWFANa e8bA== 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=cdGPnUygmt89l8efJsba1SpS4Yr/+DqDrjmcl81O41Q=; fh=6BCBHd+wd9sM5I7f3nZwXI5uSly3s62mQle808OwsEg=; b=JD0/hu63kJVHhlNapOUP2Rh9OZ0oNqVOMAL/9BL97FWA3XYnsFTqsVDPdzln9e8Jgv YJTFSmvuAurjYPg18Xn5Cl/4MrX7PRCb2YTPfD6MRorA7wvU4UGh5pu98c+wL5Nzdbdt QCl3MjeJZt+HgJpFKWxtmfIwUrcPyQD49dJ4hb0aMw0VIoyKiJcBVCLbt6NLwzFj0bse UvwA+LySkXRiSDqJ3pYj1FHy6jrJiZXXQiDvSz6mSotKxMFLpA4uoVV0FLa92wHWdy1C hfKCXr8JMNLoPJ7TLIJR0NBDQ8KZvAD41KZIV6k5Dghu5ROT+dG1lxDMuYAlADTYKY1k BdDQ== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020a170906a21000b0099bcb187a0bsi2553875ejy.387.2023.08.04.21.08.51; Fri, 04 Aug 2023 21:09:19 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229679AbjHEDi6 (ORCPT <rfc822;liqunnana@gmail.com> + 99 others); Fri, 4 Aug 2023 23:38:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbjHEDi4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 4 Aug 2023 23:38:56 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE31B4ED9; Fri, 4 Aug 2023 20:38:54 -0700 (PDT) Received: from dggpeml500012.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RHpF61563zrS4w; Sat, 5 Aug 2023 11:37:46 +0800 (CST) Received: from localhost.localdomain (10.67.175.61) by dggpeml500012.china.huawei.com (7.185.36.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sat, 5 Aug 2023 11:38:52 +0800 From: Zheng Yejian <zhengyejian1@huawei.com> To: <rostedt@goodmis.org>, <mhiramat@kernel.org>, <vnagarnaik@google.com>, <shuah@kernel.org> CC: <linux-kernel@vger.kernel.org>, <linux-trace-kernel@vger.kernel.org>, <linux-kselftest@vger.kernel.org> Subject: [PATCH v2 0/2] tracing: Fix cpu buffers unavailable problem and add its testcase Date: Sat, 5 Aug 2023 11:38:14 +0800 Message-ID: <20230805033816.3284594-1-zhengyejian1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.175.61] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500012.china.huawei.com (7.185.36.15) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773360707104180684 X-GMAIL-MSGID: 1773360707104180684 |
Series |
tracing: Fix cpu buffers unavailable problem and add its testcase
|
|
Message
Zheng Yejian
Aug. 5, 2023, 3:38 a.m. UTC
Hi, This is the v2 to fix cpu buffers unavailable problem after some operations on file 'tracing_cpumask' and 'snapshot', also upload its testcase. Changes show as below. v2: - Fix compile issue reported-by kernel test robot <lkp@intel.com> with suggestion from Steve: - Link: https://lore.kernel.org/all/202308050731.PQutr3r0-lkp@intel.com/ - Link: https://lore.kernel.org/all/20230804125107.41d6cdb1@gandalf.local.home/ - Add a step to set tracing_on in testcase (see patch 2) and add descriptions of each step. v1: - Link: https://lore.kernel.org/all/20230804124549.2562977-1-zhengyejian1@huawei.com/ Zheng Yejian (2): tracing: Fix cpu buffers unavailable due to 'record_disabled' messed selftests/ftrace: Add a basic testcase for snapshot kernel/trace/trace.c | 6 ++++ .../ftrace/test.d/00basic/snapshot1.tc | 31 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 tools/testing/selftests/ftrace/test.d/00basic/snapshot1.tc