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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0547ECAAD3 for ; Fri, 2 Sep 2022 00:57:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 62C0D8008B; Thu, 1 Sep 2022 20:57:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5DBD88D0001; Thu, 1 Sep 2022 20:57:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 47C0D8008B; Thu, 1 Sep 2022 20:57:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 38D798D0001 for ; Thu, 1 Sep 2022 20:57:14 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 0EAD71C5DC8 for ; Fri, 2 Sep 2022 00:57:14 +0000 (UTC) X-FDA: 79865331588.22.2524F46 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by imf15.hostedemail.com (Postfix) with ESMTP id 63646A0050 for ; Fri, 2 Sep 2022 00:57:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662080233; x=1693616233; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sqI32UP29Yc5IxqawJxrzwP7cjo3i7gGmmmLnqaDDZc=; b=oDgsUt0Ve9iVEvcDUBkpzEGUmj7/fMlOEtLUpjYwgs0VX/eF4hRbsPZ/ bhS2olgN4eUJVXrR41qyMa7Hyi5BjvdDCAZDXz54eRnh9U36bAsnffDcG BlDE5AMlAapVmbebmS7rfMFrIe7HBgA86QMVmxczzDYwTPXtB2jnE+Vy7 XJA6HUE1jiXGM2rcTVtprKpC5Go2rlRZOjPh0Ro4zFDKeywwaHkPC42Z9 FTlKJRcbrakzrqa+qaRjHHu34j43dqgN5BJFXBLAJ8pfwHRXkIUmIQsS1 OKNFpNiZGwsNRuiX7JgcY30u+FwIA2N3xUh0yNauncE4woT3PiuiWIBXf A==; X-IronPort-AV: E=McAfee;i="6500,9779,10457"; a="282849828" X-IronPort-AV: E=Sophos;i="5.93,281,1654585200"; d="scan'208";a="282849828" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 17:57:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,281,1654585200"; d="scan'208";a="563733999" Received: from lkp-server02.sh.intel.com (HELO b138c9e8658c) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 01 Sep 2022 17:57:08 -0700 Received: from kbuild by b138c9e8658c with local (Exim 4.96) (envelope-from ) id 1oTuzc-0000xG-0s; Fri, 02 Sep 2022 00:57:08 +0000 Date: Fri, 2 Sep 2022 08:56:30 +0800 From: kernel test robot To: Oscar Salvador , Andrew Morton Cc: kbuild-all@lists.01.org, Linux Memory Management List , linux-kernel@vger.kernel.org, Michal Hocko , Vlastimil Babka , Eric Dumazet , Waiman Long , Suren Baghdasaryan , Oscar Salvador Subject: Re: [PATCH 2/3] mm, page_owner: Add page_owner_stacks file to print out only stacks and their counter Message-ID: <202209020818.s1RIxKyP-lkp@intel.com> References: <20220901044249.4624-3-osalvador@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220901044249.4624-3-osalvador@suse.de> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662080233; a=rsa-sha256; cv=none; b=yViTHh3b6yuberfEmNnWVAfZhzetWLmd/tqhE5OlUkv2nsy4aTz5+4NeXBmwqKL1yXRWuB O8nvtFXKxNRC58JXTaivkGzEaNWMNuTiCUpturRHRmpciP01Ni5+HzGz377+9eXEg5VHrK hnHekE702DgXexo+F9VwZOhC07EOLTw= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=oDgsUt0V; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf15.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662080233; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=vxOK9dKLPxvSlflRi89HaNsgtMD1BmDultzOSmH5iVc=; b=l/tzM6g13PcxhzFjXl0NVG7hZNNRCEER5GioFvE3eWHerHFhWD0RaBWqxlvf58+r8w9m12 E+MR8LfgqqniKdvvFSpUaTzOoik2UtPJrVlzhPqwANHUlG8qRHSt2hAvHejV4HFCqgDlrt XM5dpJ1z4LF3RfSWKjS2tXhV7Z3CWe8= X-Stat-Signature: fadrxmqrwnp5qjhcy9kqeywa5u4bzi8t X-Rspamd-Queue-Id: 63646A0050 X-Rspam-User: Authentication-Results: imf15.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=oDgsUt0V; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf15.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam08 X-HE-Tag: 1662080233-903441 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Oscar, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v6.0-rc3] [cannot apply to akpm-mm/mm-everything next-20220901] [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/Oscar-Salvador/page_owner-print-stacks-and-their-counter/20220901-124408 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git c5e4d5e99162ba8025d58a3af7ad103f155d2df7 config: arc-randconfig-r043-20220901 (https://download.01.org/0day-ci/archive/20220902/202209020818.s1RIxKyP-lkp@intel.com/config) compiler: arc-elf-gcc (GCC) 12.1.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/18d3054fb57a70676be763adab8c8881a1baa504 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Oscar-Salvador/page_owner-print-stacks-and-their-counter/20220901-124408 git checkout 18d3054fb57a70676be763adab8c8881a1baa504 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): lib/stackdepot.c: In function 'stack_depot_print_stacks_threshold': >> lib/stackdepot.c:603:17: error: 'STACK_HASH_SIZE' undeclared (first use in this function); did you mean 'STACK_HASH_SEED'? 603 | if (i < STACK_HASH_SIZE) | ^~~~~~~~~~~~~~~ | STACK_HASH_SEED lib/stackdepot.c:603:17: note: each undeclared identifier is reported only once for each function it appears in vim +603 lib/stackdepot.c 568 569 int stack_depot_print_stacks_threshold(char *buf, size_t size, loff_t *pos, 570 unsigned long *last_stack) 571 { 572 struct stack_record *stack = NULL, *last; 573 struct stack_record **stacks; 574 int i = *pos, ret = 0; 575 576 /* Continue from the last week if we have one */ 577 if (*last_stack) { 578 last = (struct stack_record *)*last_stack; 579 stack = last->next; 580 } else { 581 new_table: 582 stacks = &stack_table[i]; 583 stack = (struct stack_record *)stacks; 584 } 585 586 for (; stack; stack = stack->next) { 587 if (!stack->size || stack->size < 0 || 588 stack->size > size || stack->handle.valid != 1 || 589 refcount_read(&stack->count) < 1) 590 continue; 591 592 ret += stack_trace_snprint(buf, size, stack->entries, stack->size, 0); 593 ret += scnprintf(buf + ret, size - ret, "stack count: %d\n\n", 594 refcount_read(&stack->count)); 595 *last_stack = (unsigned long)stack; 596 return ret; 597 } 598 599 i++; 600 *pos = i; 601 602 /* Keep looking all tables for valid stacks */ > 603 if (i < STACK_HASH_SIZE) -- 0-DAY CI Kernel Test Service https://01.org/lkp