Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp798758lqh; Fri, 31 May 2024 18:36:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNAr51dgwCbgYVpfF9R/Ni74uRSDSEndPKF2kIIZCTIJGJJ6aqDsKfLj2f/9glKdEG5rvBw3N5Ym7/tTLrEKjN1QXnc18PIR7F6NGGEA== X-Google-Smtp-Source: AGHT+IGdpbDjZ48kuGG+VjCxW/zXQeto0Czk9runGHeq5TEGldsbtcZNl+HddikWuN8FOl2diNsZ X-Received: by 2002:a05:6a20:7f8c:b0:1af:cbd3:ab48 with SMTP id adf61e73a8af0-1b26f0f188emr3753535637.3.1717205790500; Fri, 31 May 2024 18:36:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717205790; cv=pass; d=google.com; s=arc-20160816; b=fHuELTtUCc8aM7YWvLi9YnSes4atBaXCLDmgdBHl1O+tGPGA+fqhcC6DC1FNoRZbZt lF8inNV475EIDztUoCR/GmVFBYufVK+YYfC3Y5hpSMSGOJg9UMT+f5bQE1shcdjjWwkV deFXVyJlVWgYxO08WqHfYRs4nbf3QlYNbEAYXheoUgxxRrAQnZ1Xpn4R5ol936M/ZO8d gomBgvQ0RBouprAoQudeyXce2waXuoI25rjwzmmOgIbUf7X5/wCAdz6wRuj2RirdUyuK Y8aeh3FWDaf1z71nYXu+4SVi5T1jE/ykBf2INzDNtWGmPsnbz0vPsnNu/JJCbQToiCwg Y5xQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=MnaC3Vq2Zq9/bPxQa2T+YkGjOWyMAtZE++EJiwcz59k=; fh=lLvUzH6JCi7Mgzr4BD3hXWjfN46RikxwTdzDjSkTRpA=; b=kjvQx4vxQeXCd74yacQ25UN8WRD/nIivu32l5GOXYwQotLFNQgE3VoPn79LJavjekL hcnvGg1rtJ2JwYaLM7Fntx+nVMW/9g2UjPbuE1vt9UGaFO+sl00ogLvCJjh9rPMib/t9 Cc5WrBDOd4o/9/++wODIaRR1W88W2vEKidi8qdQCSDEpaCAE98nEcLGQqCoB2Ohz+gaE 04+g0YZnZ9rZxVHJxt2qcVH4/g0t/pbiKMvpcqPMXzIGzXy2ybxT8QEX6hg/vp6piSkP TaRkNQMfQPUDrJx4hftthfUN8gwyYAHURvvi3FwwS/9gbPYKRl16fAvVEdeNFXdS74Oe m3zg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VM/3Pc57"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197631-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197631-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242e667cesi2426847b3a.403.2024.05.31.18.36.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 18:36:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197631-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VM/3Pc57"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197631-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197631-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AEF7FB21759 for ; Sat, 1 Jun 2024 01:36:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE18EE541; Sat, 1 Jun 2024 01:35:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VM/3Pc57" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEE0EB645; Sat, 1 Jun 2024 01:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717205755; cv=none; b=VjBqyjtbdRocXDNu4uniZ2XpxFtdJNlqpfgYsTrGZ64odaYOOx8iaA5rWj1GE5jC73PSxRLGnWhvcZ5hiwtmOlwv86JuFv97GmAwrUAYctFAaHlX05gogVyzVeHq9BZNz+HtAtGRApoUAInyZl+E6AWFIX2KOnTemkjB7F3tn1k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717205755; c=relaxed/simple; bh=pm+Pa3NNlbtKgktm3W+jGGufJv5cuomBQKWgb866zbk=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=skZiz2TmRApHjXBOoNRsNLzg8PJ49kW34DbWPpQQWq7K5t02mXeZxPezcsKIPFYfSCTa+B6MBqzUeTuZfQwoCQRlbb4B36Qt4ZHQlSDxiajqQQVXSBYRsuw1mAA3xxFN36W2NXwmgJD+5g4JuFbq9LbdR5bzlU6TOu73uQ2tjNg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VM/3Pc57; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A8CFC116B1; Sat, 1 Jun 2024 01:35:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717205754; bh=pm+Pa3NNlbtKgktm3W+jGGufJv5cuomBQKWgb866zbk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VM/3Pc57q2jCQe4jMoNFxSlA/0yFFxSbxYwak/mjuY/wOeDU99NycqHazcZAlff+9 2YLLr1vWxWQMNR3uiPvW6nUEaw+mBJqAyoU7gx9KUiwHGw8t7bh+s386sVxvmwH6oD KmXxJCWQHGXzINajM/ywiCVTtpRh53ywqvXzBOS2MuR06TOlEjkmeCCeGQsoqg1nVf IKgjJU2nzC2lAkvW43a9dRrt0a4+otP5Mf0i3HfK9MAlEytClqZtlNxEvRkRzZHDOP J3pwExvGhSANyL8JK6N4FGAeWJWPMhuUNZ5I6iX/gI/NoxGlpegcsIP8yd0HvrgPOY bUSVecZWxF/ZA== Date: Sat, 1 Jun 2024 10:35:50 +0900 From: Masami Hiramatsu (Google) To: kernel test robot Cc: Steven Rostedt , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, don , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH] tracing/fprobe: Support raw tracepoint events on modules Message-Id: <20240601103550.b2db29606319440d51af9753@kernel.org> In-Reply-To: <202406010034.fsNP9Rsq-lkp@intel.com> References: <171714888633.198965.13093663631481169611.stgit@devnote2> <202406010034.fsNP9Rsq-lkp@intel.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 1 Jun 2024 01:01:26 +0800 kernel test robot wrote: > Hi Masami, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on linus/master] > [also build test ERROR on v6.10-rc1 next-20240531] > [cannot apply to rostedt-trace/for-next 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/Masami-Hiramatsu-Google/tracing-fprobe-Support-raw-tracepoint-events-on-modules/20240531-175013 > base: linus/master > patch link: https://lore.kernel.org/r/171714888633.198965.13093663631481169611.stgit%40devnote2 > patch subject: [PATCH] tracing/fprobe: Support raw tracepoint events on modules > config: s390-defconfig (https://download.01.org/0day-ci/archive/20240601/202406010034.fsNP9Rsq-lkp@intel.com/config) > compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project bafda89a0944d947fc4b3b5663185e07a397ac30) > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240601/202406010034.fsNP9Rsq-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/202406010034.fsNP9Rsq-lkp@intel.com/ OK, I must be tired... let me fix that. And I'll add a selftest for this case. Thanks! > > All errors (new ones prefixed by >>): > > In file included from kernel/tracepoint.c:5: > In file included from include/linux/module.h:19: > In file included from include/linux/elf.h:6: > In file included from arch/s390/include/asm/elf.h:173: > In file included from arch/s390/include/asm/mmu_context.h:11: > In file included from arch/s390/include/asm/pgalloc.h:18: > In file included from include/linux/mm.h:2253: > include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] > 500 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + > | ~~~~~~~~~~~~~~~~~~~~~ ^ > 501 | item]; > | ~~~~ > include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] > 507 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + > | ~~~~~~~~~~~~~~~~~~~~~ ^ > 508 | NR_VM_NUMA_EVENT_ITEMS + > | ~~~~~~~~~~~~~~~~~~~~~~ > include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] > 514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" > | ~~~~~~~~~~~ ^ ~~~ > include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] > 519 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + > | ~~~~~~~~~~~~~~~~~~~~~ ^ > 520 | NR_VM_NUMA_EVENT_ITEMS + > | ~~~~~~~~~~~~~~~~~~~~~~ > include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] > 528 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + > | ~~~~~~~~~~~~~~~~~~~~~ ^ > 529 | NR_VM_NUMA_EVENT_ITEMS + > | ~~~~~~~~~~~~~~~~~~~~~~ > >> kernel/tracepoint.c:751:34: error: no member named '__start___tracepoints_ptrs' in 'struct module' > 751 | for_each_tracepoint_range(mod->__start___tracepoints_ptrs, > | ~~~ ^ > 5 warnings and 1 error generated. > > > vim +751 kernel/tracepoint.c > > 738 > 739 void for_each_module_tracepoint(void (*fct)(struct tracepoint *tp, void *priv), > 740 void *priv) > 741 { > 742 struct tp_module *tp_mod; > 743 struct module *mod; > 744 > 745 if (!mod->num_tracepoints) > 746 return; > 747 > 748 mutex_lock(&tracepoint_module_list_mutex); > 749 list_for_each_entry(tp_mod, &tracepoint_module_list, list) { > 750 mod = tp_mod->mod; > > 751 for_each_tracepoint_range(mod->__start___tracepoints_ptrs, > 752 mod->tracepoints_ptrs + mod->num_tracepoints, > 753 fct, priv); > 754 } > 755 mutex_unlock(&tracepoint_module_list_mutex); > 756 } > 757 #endif /* CONFIG_MODULES */ > 758 > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki -- Masami Hiramatsu (Google)