From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5DC65C433F5 for ; Fri, 27 May 2022 14:25:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3EhdUxdNqEfa0kc8EFRp4bET1bc6uDI8NdZRKuF75pU=; b=Nh3bTUAjUcljUT 7100z/Ntx+KsMO+rhvJsy5Wrsl6Moc3oBAokeiE2GnxMMCJv50w69xP0MX3wzP1ZUX/9xNVBO6Fr7 9JJEyqCvefm6yVFp1RVtjG3noKZBHKV32dEbL5jAMIeaMzemxLt0OJeG1SaBbvUzK9J3G+8EcCrhx Rrz1e+3rK0R++haoGEnjJ5DvN3hYOLsulBmN0Fd2LzFATpGlcOdheJlMoQaBt9wLE0Vhocs2LGZZ9 9hWx6H2Y9crAbBFas4ny//GFiTWd3JmdZgd6A4IE5Ry02e6CI9bVIxAvk9W9AOteibKbZuFHTTNI+ N8BoyVMqopOYenflrr3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nuasy-000F65-UM; Fri, 27 May 2022 14:24:17 +0000 Received: from mga18.intel.com ([134.134.136.126]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nuasu-000F4u-Lr for linux-arm-kernel@lists.infradead.org; Fri, 27 May 2022 14:24:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653661452; x=1685197452; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8EpuGnusmRkbVa3/ggOWrpg5luflE/dlqIUDi652zT4=; b=JBtNOjHplFRblkwrnkvSsDPa5xpVf8BNHDl/oyykI7KIWQcbpxJSJvCJ S/OfGl7QAixbds06DhFPl0x4gOLrYyAd6wp4QgYqYwQnbT/UyvBHF8AMS m02Qeho5TNmholzHd5OdHlW12pGiLEm2LRCZ/sxnfx5otz8mC6ezrg99Q cZ8KzYvag5K5SQ2Yuga/dpxbSvIEjpUyA0FmjciH/bQWZEHBWkNYQyk9F obSB+YWMkAvaGOEbp+vMV0Y7vmqgzWCj3JCsyhwoxe32n4CUUE1XjLKDx KMX1l+WKBIoGSlINRevb0m7AuVtogot5VijELhLVPfFSErtcCFfPF8BZ/ w==; X-IronPort-AV: E=McAfee;i="6400,9594,10359"; a="256562291" X-IronPort-AV: E=Sophos;i="5.91,255,1647327600"; d="scan'208";a="256562291" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2022 07:24:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,255,1647327600"; d="scan'208";a="574857026" Received: from lkp-server01.sh.intel.com (HELO db63a1be7222) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 27 May 2022 07:24:06 -0700 Received: from kbuild by db63a1be7222 with local (Exim 4.95) (envelope-from ) id 1nuasn-0004qu-Bg; Fri, 27 May 2022 14:24:05 +0000 Date: Fri, 27 May 2022 22:23:55 +0800 From: kernel test robot To: Zhang Yuchen , akpm@linux-foundation.org, david@redhat.com, mingo@redhat.com, ast@kernel.org Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, linux-api@vger.kernel.org, fam.zheng@bytedance.com, Zhang Yuchen Subject: Re: [PATCH] procfs: add syscall statistics Message-ID: <202205272216.w7dE4biW-lkp@intel.com> References: <20220527110959.54559-1-zhangyuchen.lcr@bytedance.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220527110959.54559-1-zhangyuchen.lcr@bytedance.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220527_072412_835453_D4A7823E X-CRM114-Status: GOOD ( 15.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Zhang, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on next-20220527] [cannot apply to akpm-mm/mm-everything arm64/for-next/core s390/features tip/x86/core v5.18] [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/Zhang-Yuchen/procfs-add-syscall-statistics/20220527-191241 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 7e284070abe53d448517b80493863595af4ab5f0 config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220527/202205272216.w7dE4biW-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/979bf5b1b085588caab1cbdce55e40e823c12db9 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Zhang-Yuchen/procfs-add-syscall-statistics/20220527-191241 git checkout 979bf5b1b085588caab1cbdce55e40e823c12db9 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash fs/proc/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> fs/proc/syscall.c:13:5: warning: no previous prototype for 'show_syscalls' [-Wmissing-prototypes] 13 | int show_syscalls(struct seq_file *p, void *v) | ^~~~~~~~~~~~~ vim +/show_syscalls +13 fs/proc/syscall.c 12 > 13 int show_syscalls(struct seq_file *p, void *v) 14 { 15 int i = *(loff_t *)v, j; 16 static int prec; 17 const char *syscall_name = get_syscall_name(i); 18 19 if (i > NR_syscalls) 20 return 0; 21 22 /* print header and calculate the width of the first column */ 23 if (i == 0) { 24 for (prec = 3, j = 1000; prec < 10 && j <= NR_syscalls; ++prec) 25 j *= 10; 26 seq_printf(p, "%*s", prec + 8, ""); 27 for_each_online_cpu(j) 28 seq_printf(p, "CPU%-8d", j); 29 seq_putc(p, '\n'); 30 } 31 32 if (syscall_name == NULL) 33 return 0; 34 35 seq_printf(p, "%*d: ", prec, i); 36 for_each_online_cpu(j) 37 seq_printf(p, "%10llu ", 38 per_cpu(__per_cpu_syscall_count, j)[i]); 39 seq_printf(p, " %s", syscall_name); 40 seq_putc(p, '\n'); 41 42 return 0; 43 } 44 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel