Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp160906rwb; Fri, 4 Aug 2023 10:35:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEvrbn6bGv7BiGHl4BA00d/uMRRS8cjVnyfrM1Nm7lNFCIGKppBEO58a3xOKjkQVxDFnzP1 X-Received: by 2002:a17:902:7d98:b0:1b8:865d:6e1d with SMTP id a24-20020a1709027d9800b001b8865d6e1dmr2027534plm.51.1691170509430; Fri, 04 Aug 2023 10:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691170509; cv=none; d=google.com; s=arc-20160816; b=D17aT3xHK1XfyRO0xZqFMDGCJEq7Y2YslFUi8OjGeH6YiW+rUoOXtKSuYvWpZ/LOY8 kGBFTLiBk97Dnobnalc9BGcQB4lJ5QD7eCH/RaImfZwaSTLi9erYPJkZfmKOY9YA77Oz 8EULv6eVkH4N7ZNuWjEurz8fNk3g3Y2EcHqHBZ7arS4QI/mH5Ew1bZGEorFRfZOiNW2+ qgsw4SaRd7w4PxaIHApGvtsg/S2RbgFcDI0b685eOhbQCurwF//zSLOhGVLhqXnMPTe+ PzSgoRYOP8bPTzUnvVnitg/v0dJChpHv7Orbf6q455jF3iQK2leix1QcuesGRPi29vsD f2sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uwrtPNYzCLrCXw82jj8cYg9k3OmWgsQyyAh29xEph88=; fh=pWQdTZB43zC/eeeM0svlQ1z2d6ErnEx8PkqZpB+rRzY=; b=irJcGe05kyNEV2LIGnfg+lhCWmHRdBihbdSC4Pb49jzD3YJSu7Pw0nXUxHsF244tMw 5wOuX7PTpL4opa7CdmZy6LcZvJPlcev9GP1VO1MOaqaqy1N1d9628WIgWAk6MXYQdFRl 2JbtnleNKHvsrUDAup4x8mmO4lZKfvWCAoTwWadE/3wEGISpzdFJ7b8FoTOkemOmOc/b 4PqWn9FLDVAgX5qIXrwSjqnFkvQVVlugg1VJo5wpFsreX/K+PSvITeVRYj+1eDsyIn8H eT1UbMc81LjbS9Y7ABcoF9yJyiMDXuDQtkxh1HkNh9kvrJqhj9cJi1HO0CIF9ghel+5X VhDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BycgGkIF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020a170902c40c00b001bb94b312ecsi2111958plk.296.2023.08.04.10.34.54; Fri, 04 Aug 2023 10:35:09 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=BycgGkIF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230148AbjHDQmd (ORCPT + 99 others); Fri, 4 Aug 2023 12:42:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230263AbjHDQmW (ORCPT ); Fri, 4 Aug 2023 12:42:22 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05323B2; Fri, 4 Aug 2023 09:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691167341; x=1722703341; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Aix0fhmGUEkDVxFMY9z2Bt8WwWhM6K8bS2ydJILJ5a0=; b=BycgGkIFJ1Eaw+ikFmhB73QrtDTeBpcUWFdrpD2VK4Uwm+IDwu9Hf+dR Pw/c20sWihUkQBCNqM2O4qiYk0IQG0YcGwCjcCGC465liN4SkLXVzsec1 w94r16NzRg0TvvJxgKLZknHozhqP0IJWuxgcEJR6Tey+2Z2vktRv35zU/ OXWjOIxJfRM9WdMhYHymo+Jn0zOd9nYcLIAxxZsKZ36HDS1BT5PP0ZNpD 8OMWP6DCbYlEBqEk8emecQq/7IvgpjIosJQBO9Kq/4jOtXi2RnIXkoY2w NVnoBGQk+HYdhG5IJ40IJhPvGEa4pXhKUUs9bZsVxTcPNghc4SGiAVjTk Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10792"; a="372940334" X-IronPort-AV: E=Sophos;i="6.01,255,1684825200"; d="scan'208";a="372940334" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2023 09:42:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10792"; a="733314163" X-IronPort-AV: E=Sophos;i="6.01,255,1684825200"; d="scan'208";a="733314163" Received: from lkp-server01.sh.intel.com (HELO d1ccc7e87e8f) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 04 Aug 2023 09:41:42 -0700 Received: from kbuild by d1ccc7e87e8f with local (Exim 4.96) (envelope-from ) id 1qRxry-0002zL-09; Fri, 04 Aug 2023 16:41:42 +0000 Date: Sat, 5 Aug 2023 00:41:13 +0800 From: kernel test robot To: Zheng Yejian , rostedt@goodmis.org, mhiramat@kernel.org, vnagarnaik@google.com, shuah@kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 1/2] tracing: Fix cpu buffers unavailable due to 'record_disabled' messed Message-ID: <202308050048.bUnVeBjV-lkp@intel.com> References: <20230804124549.2562977-2-zhengyejian1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230804124549.2562977-2-zhengyejian1@huawei.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Zheng, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [cannot apply to rostedt-trace/for-next-urgent] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Zheng-Yejian/tracing-Fix-cpu-buffers-unavailable-due-to-record_disabled-messed/20230804-204751 base: linus/master patch link: https://lore.kernel.org/r/20230804124549.2562977-2-zhengyejian1%40huawei.com patch subject: [PATCH 1/2] tracing: Fix cpu buffers unavailable due to 'record_disabled' messed config: i386-randconfig-r025-20230731 (https://download.01.org/0day-ci/archive/20230805/202308050048.bUnVeBjV-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce: (https://download.01.org/0day-ci/archive/20230805/202308050048.bUnVeBjV-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202308050048.bUnVeBjV-lkp@intel.com/ All errors (new ones prefixed by >>): >> kernel/trace/trace.c:5280:39: error: no member named 'max_buffer' in 'struct trace_array' ring_buffer_record_disable_cpu(tr->max_buffer.buffer, cpu); ~~ ^ kernel/trace/trace.c:5286:38: error: no member named 'max_buffer' in 'struct trace_array' ring_buffer_record_enable_cpu(tr->max_buffer.buffer, cpu); ~~ ^ 2 errors generated. vim +5280 kernel/trace/trace.c 5260 5261 int tracing_set_cpumask(struct trace_array *tr, 5262 cpumask_var_t tracing_cpumask_new) 5263 { 5264 int cpu; 5265 5266 if (!tr) 5267 return -EINVAL; 5268 5269 local_irq_disable(); 5270 arch_spin_lock(&tr->max_lock); 5271 for_each_tracing_cpu(cpu) { 5272 /* 5273 * Increase/decrease the disabled counter if we are 5274 * about to flip a bit in the cpumask: 5275 */ 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); 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); 5290 local_irq_enable(); 5291 5292 cpumask_copy(tr->tracing_cpumask, tracing_cpumask_new); 5293 5294 return 0; 5295 } 5296 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki