Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp621422rwb; Fri, 4 Aug 2023 20:06:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9cICZYuDGHHr/s3Smmz2smMpyfhgR8OeO90Qpv7wY80g4LaxQv9ZPoeXXU0PkWuVslORc X-Received: by 2002:a17:90b:fca:b0:268:46fb:df32 with SMTP id gd10-20020a17090b0fca00b0026846fbdf32mr3623930pjb.34.1691204810178; Fri, 04 Aug 2023 20:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691204810; cv=none; d=google.com; s=arc-20160816; b=yMNKqzIpNxauFVVVD6apYfm1ktbVPxyjIMm/tRjHA7cHHiGcRrH2R+BStR5SVH8y37 4yw//zesYJxA+wGzpKxb505BEIb/yLXYyn/q+7sBx05ecJGH4hEn5/kppYHr+gg8L1o1 tUPuksUhwjq5WOVTe4vqSWfPq/2RjVGMEpafHNJEwDyo+/lvG0cuMHMD0LeddxfEHIpj GAe1um+QFwSws8VjpjWQdR4xSK8XlyV5xJlniYKSC2lyAoB76sbXEOn4dEtky/fwuKkO IIGkUomqxso66q7xILYMqSSn63IUbBZ59oOph4c6KNZ1/QA3giwE/nc55hOeaTlsFHSJ jIGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=2yy8ozYBNnmDHC727iRCp6tvu9sB5j/huEx4QA7m6Qk=; fh=QEmN35AUIYEeOfHEHXeGQ9Qm9uZMU5nLYO3xNoHu0fY=; b=iAHubTmFXQsgxb5PBnLX/YtF/+aiBhiuIsOtP+Q+ByPXDPCzIbB7552zrf2kam/Aaf 7DVwvZoqpx3YrNlgTgyvUIvacX3tPGb1qiBATg1Ukza3kMJngs/klvjem5YsLJrXb90f OL8cmHlaktFW7aMOz4ctz5B96GjIw8p7DaXrjHt5vifHGI/DYq4ucZs6quou6AjjYVDR O/HJMxI4Qeopi6NFvUPDlBO/GfCjXI2dGslfjzU8seeYzxP+dYJAybL3kMAsmdwMi+el vZ/ZJ8Gq8Y9faSLLY80I6yalyjzyqUvYQKXesMxFzpdExDqCD82TwPWjJa2LU4d3MBLU gL5Q== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b69-20020a633448000000b00564be9cb7b3si1867716pga.268.2023.08.04.20.05.47; Fri, 04 Aug 2023 20:06:50 -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 S229712AbjHEB6S (ORCPT + 99 others); Fri, 4 Aug 2023 21:58:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbjHEB6R (ORCPT ); Fri, 4 Aug 2023 21:58:17 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8461510D4; Fri, 4 Aug 2023 18:58:16 -0700 (PDT) Received: from dggpeml500012.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RHlz35dSxz1Z1VS; Sat, 5 Aug 2023 09:55:27 +0800 (CST) Received: from [10.67.110.218] (10.67.110.218) 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 09:58:12 +0800 Message-ID: <77897888-bd4a-8fb7-36d0-2722402d5095@huawei.com> Date: Sat, 5 Aug 2023 09:58:12 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH 1/2] tracing: Fix cpu buffers unavailable due to 'record_disabled' messed Content-Language: en-US To: Steven Rostedt , kernel test robot CC: , , , , , , , References: <20230804124549.2562977-2-zhengyejian1@huawei.com> <202308050048.bUnVeBjV-lkp@intel.com> <20230804125107.41d6cdb1@gandalf.local.home> From: Zheng Yejian In-Reply-To: <20230804125107.41d6cdb1@gandalf.local.home> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.110.218] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500012.china.huawei.com (7.185.36.15) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,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: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/8/5 00:51, Steven Rostedt wrote: > On Sat, 5 Aug 2023 00:41:13 +0800 > kernel test robot wrote: > >> 5276 if (cpumask_test_cpu(cpu, tr->tracing_cpumask) && >> 5277 !cpumask_test_cpu(cpu, tracing_cpumask_new)) { >> 5278 atomic_inc(&per_cpu_ptr(tr->array_buffer.data, cpu)->disabled); >> 5279 ring_buffer_record_disable_cpu(tr->array_buffer.buffer, cpu); >>> 5280 ring_buffer_record_disable_cpu(tr->max_buffer.buffer, cpu); > > The access to max_buffer requires a: > > #ifdef CONFIG_TRACER_MAX_TRACE > > Around them. > > -- Steve Thanks, Steve, I'll add it in v2. -- Zheng Yejian > >> 5281 } >> 5282 if (!cpumask_test_cpu(cpu, tr->tracing_cpumask) && >> 5283 cpumask_test_cpu(cpu, tracing_cpumask_new)) { >> 5284 atomic_dec(&per_cpu_ptr(tr->array_buffer.data, cpu)->disabled); >> 5285 ring_buffer_record_enable_cpu(tr->array_buffer.buffer, cpu); >> 5286 ring_buffer_record_enable_cpu(tr->max_buffer.buffer, cpu); >> 5287 } >> 5288 } >> 5289 arch_spin_unlock(&tr->max_lock); >