Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3618035iob; Sat, 7 May 2022 09:53:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqxjBaM33Up8y6ERiESQ9u31bjh+U1alJiGRHkOWv4R62A77/dWrzzHzLku4s/rr8ZKjPg X-Received: by 2002:a50:c31e:0:b0:425:e127:2901 with SMTP id a30-20020a50c31e000000b00425e1272901mr9167929edb.134.1651942430691; Sat, 07 May 2022 09:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651942430; cv=none; d=google.com; s=arc-20160816; b=svs+dMzalp7oMqiJwtzcjRYClp2VPjw35wNs7ot/tORoOpSlUOvhrPSzowxiu3cw0+ chQeZjs6/jPgGqxsYevimTAvvPIo9wNoJ6oI+Jgg1xpX4VoAL/88sN4kAfslATebwoXX tYvZB2W9dBVVDHLn79sV+0J8o9M7E20G0YmiRnL67RCWQMvhL4yek/9ZDUuVS47gNRxh 6mmLuVYScmSn5QOUAyR1sNV0OU/RSCz8KhpANsTzYrSmoHU3vGQB8gAuriLaLCpBwGiI SUMkjP+BQ+r6el+NbNhzU4fhw10gUSOzUJPJdV5Bookd0gA/kiIN43HhxTD9o7nFPHah sCNg== 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=btMCfH9Jo5Eku3a9mI7bO8eNOSJyEpNkn+jTDwEXGaY=; b=qn3cgDYaThpqIwqzPXtMF82IGJzXX/yVmVjuGz/dyap9iR3iTYgxOjY104EbNrdDG/ KGw+Qnjd7/puaAvR7UfaWwwRD3gybBGEG4OsTT5xgl8JUpP/7vOS1heyIkhs2fkcnPgq Y0Di7dWMFF76b9DVyy8IrDkSeHpwxH4spCdqbuyiZ9RDpvJ3iSfkGNYX9c/8w+XdJJ91 Z0PbgLcfYZyyspZmjKBBRoDEFubm4ju7aoPTXiEEFf64F2UgxfCd/D8gvPHazvRVeZlj Iu0A61KbbiAYd8asQxaAYk4sYgM4pNYSA8zUEHr+ms/7XBL9PTvwkWQZXTdgKi9sXIln 12Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FdtiNxtx; 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 hp10-20020a1709073e0a00b006f4408bfffbsi9022724ejc.779.2022.05.07.09.53.27; Sat, 07 May 2022 09:53: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; dkim=pass header.i=@intel.com header.s=Intel header.b=FdtiNxtx; 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 S1443414AbiEFUmS (ORCPT + 99 others); Fri, 6 May 2022 16:42:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443211AbiEFUmK (ORCPT ); Fri, 6 May 2022 16:42:10 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D9112D1F1; Fri, 6 May 2022 13:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651869503; x=1683405503; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=2b+dWfxndlwKVu8r56BjaXCpV9WofllYiBZQXaA0tCY=; b=FdtiNxtxPPI7oayfk7MZSOfzKi6uV/5pJlzpqtJksnsObAAS3DMnn4Qo VTzIZ9V7E2v+gIbJ5H/ke4mjrwWJtXfnANFJAf7hUU+SHvyWkGgeqNp7H IH9p/5Byw64Fan43xSC9JlSyQkVzHdf93C5gIJxSwXl2NxSoI2/2jJNjX ahTJMD2s672iPNpeUlUKPGFlwwv286z5Xu7wZZqxG0z9hzZut1153gkUw CFQpAwWqGRv3YPTVHo8FyyyYBAtt4VkMvFu5hlrz+bOMDtnS5lKkI/ASk lEtTnCMix2Jce0Ts0IlJ8jNI9SuOehqtjBg5tFN/mLKJqyadNGl56CIVU w==; X-IronPort-AV: E=McAfee;i="6400,9594,10339"; a="248474801" X-IronPort-AV: E=Sophos;i="5.91,205,1647327600"; d="scan'208";a="248474801" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 13:38:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,205,1647327600"; d="scan'208";a="564011788" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 06 May 2022 13:38:18 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nn4iQ-000DsG-38; Fri, 06 May 2022 20:38:18 +0000 Date: Sat, 7 May 2022 04:38:04 +0800 From: kernel test robot To: Vasily Averin , Shakeel Butt , Steven Rostedt , Ingo Molnar Cc: kbuild-all@lists.01.org, kernel@openvz.org, linux-kernel@vger.kernel.org, Roman Gushchin , Vlastimil Babka , Michal Hocko , cgroups@vger.kernel.org, Andrew Morton , Linux Memory Management List , Dennis Zhou , Tejun Heo , Christoph Lameter Subject: Re: [PATCH] percpu: improve percpu_alloc_percpu event trace Message-ID: <202205070420.aAhuqpYk-lkp@intel.com> References: <8d627f02-183f-c4e7-7c15-77b2b438536b@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8d627f02-183f-c4e7-7c15-77b2b438536b@openvz.org> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Vasily, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on rostedt-trace/for-next] [also build test WARNING on hnaz-mm/master v5.18-rc5] [cannot apply to dennis-percpu/for-next] [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] url: https://github.com/intel-lab-lkp/linux/commits/Vasily-Averin/percpu-improve-percpu_alloc_percpu-event-trace/20220506-124742 base: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next config: i386-randconfig-s001 (https://download.01.org/0day-ci/archive/20220507/202205070420.aAhuqpYk-lkp@intel.com/config) compiler: gcc-11 (Debian 11.2.0-20) 11.2.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/intel-lab-lkp/linux/commit/dee6876db0a7a4715516e673f9edaca2ba40677c git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Vasily-Averin/percpu-improve-percpu_alloc_percpu-event-trace/20220506-124742 git checkout dee6876db0a7a4715516e673f9edaca2ba40677c # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) mm/percpu.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/percpu.h): >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast from restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned long flags @@ got restricted gfp_t [usertype] gfp_flags @@ include/trace/events/percpu.h:11:1: sparse: expected unsigned long flags include/trace/events/percpu.h:11:1: sparse: got restricted gfp_t [usertype] gfp_flags mm/percpu.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/percpu.h): >> include/trace/events/percpu.h:11:1: sparse: sparse: cast to restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: cast to restricted gfp_t >> include/trace/events/percpu.h:11:1: sparse: sparse: restricted gfp_t degrades to integer >> include/trace/events/percpu.h:11:1: sparse: sparse: restricted gfp_t degrades to integer mm/percpu.c:2012:24: sparse: sparse: context imbalance in 'pcpu_balance_free' - unexpected unlock vim +11 include/trace/events/percpu.h df95e795a72289 Dennis Zhou 2017-06-19 10 df95e795a72289 Dennis Zhou 2017-06-19 @11 TRACE_EVENT(percpu_alloc_percpu, df95e795a72289 Dennis Zhou 2017-06-19 12 df95e795a72289 Dennis Zhou 2017-06-19 13 TP_PROTO(bool reserved, bool is_atomic, size_t size, dee6876db0a7a4 Vasily Averin 2022-05-06 14 size_t align, void *base_addr, int off, dee6876db0a7a4 Vasily Averin 2022-05-06 15 void __percpu *ptr, size_t bytes_alloc, gfp_t gfp_flags), df95e795a72289 Dennis Zhou 2017-06-19 16 dee6876db0a7a4 Vasily Averin 2022-05-06 17 TP_ARGS(reserved, is_atomic, size, align, base_addr, off, ptr, dee6876db0a7a4 Vasily Averin 2022-05-06 18 bytes_alloc, gfp_flags), df95e795a72289 Dennis Zhou 2017-06-19 19 df95e795a72289 Dennis Zhou 2017-06-19 20 TP_STRUCT__entry( df95e795a72289 Dennis Zhou 2017-06-19 21 __field( bool, reserved ) df95e795a72289 Dennis Zhou 2017-06-19 22 __field( bool, is_atomic ) df95e795a72289 Dennis Zhou 2017-06-19 23 __field( size_t, size ) df95e795a72289 Dennis Zhou 2017-06-19 24 __field( size_t, align ) df95e795a72289 Dennis Zhou 2017-06-19 25 __field( void *, base_addr ) df95e795a72289 Dennis Zhou 2017-06-19 26 __field( int, off ) df95e795a72289 Dennis Zhou 2017-06-19 27 __field( void __percpu *, ptr ) dee6876db0a7a4 Vasily Averin 2022-05-06 28 __field( size_t, bytes_alloc ) dee6876db0a7a4 Vasily Averin 2022-05-06 29 __field( gfp_t, gfp_flags ) df95e795a72289 Dennis Zhou 2017-06-19 30 ), df95e795a72289 Dennis Zhou 2017-06-19 31 TP_fast_assign( df95e795a72289 Dennis Zhou 2017-06-19 32 __entry->reserved = reserved; df95e795a72289 Dennis Zhou 2017-06-19 33 __entry->is_atomic = is_atomic; df95e795a72289 Dennis Zhou 2017-06-19 34 __entry->size = size; df95e795a72289 Dennis Zhou 2017-06-19 35 __entry->align = align; df95e795a72289 Dennis Zhou 2017-06-19 36 __entry->base_addr = base_addr; df95e795a72289 Dennis Zhou 2017-06-19 37 __entry->off = off; df95e795a72289 Dennis Zhou 2017-06-19 38 __entry->ptr = ptr; dee6876db0a7a4 Vasily Averin 2022-05-06 39 __entry->bytes_alloc = bytes_alloc; dee6876db0a7a4 Vasily Averin 2022-05-06 40 __entry->gfp_flags = gfp_flags; df95e795a72289 Dennis Zhou 2017-06-19 41 ), df95e795a72289 Dennis Zhou 2017-06-19 42 dee6876db0a7a4 Vasily Averin 2022-05-06 43 TP_printk("reserved=%d is_atomic=%d size=%zu align=%zu base_addr=%p off=%d ptr=%p bytes_alloc=%zu gfp_flags=%s", df95e795a72289 Dennis Zhou 2017-06-19 44 __entry->reserved, __entry->is_atomic, df95e795a72289 Dennis Zhou 2017-06-19 45 __entry->size, __entry->align, dee6876db0a7a4 Vasily Averin 2022-05-06 46 __entry->base_addr, __entry->off, __entry->ptr, dee6876db0a7a4 Vasily Averin 2022-05-06 47 __entry->bytes_alloc, show_gfp_flags(__entry->gfp_flags)) df95e795a72289 Dennis Zhou 2017-06-19 48 ); df95e795a72289 Dennis Zhou 2017-06-19 49 -- 0-DAY CI Kernel Test Service https://01.org/lkp