Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp137391rdb; Wed, 1 Nov 2023 21:04:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJy96KhnXTsSbt8jIxOEuak4jmuBo2YMh00as3s3zkSz5j2pSFwlLHnT3VD70dyWrkHXX2 X-Received: by 2002:a17:902:d2c7:b0:1cc:4efc:c87d with SMTP id n7-20020a170902d2c700b001cc4efcc87dmr11891502plc.55.1698897890529; Wed, 01 Nov 2023 21:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698897890; cv=none; d=google.com; s=arc-20160816; b=dIA6qCxz0P34ZkWNZJ4y7REIE4l6LkSl2vssJoLAEYkT9USNCJUnbG9wjYjM4lh6wS g82epOLDW0CbRfQeeU8fqS0Z0c1ILBzeb6e1dBrZ7w+EZA1DNqUQl+r6iBuBG1OfU9/j 9wZttU/gxAkEsO4UQj3N4teeEL8d1AnYJcj5IM1UqnMSdBbeaHRJbTzZdXMR1JCwsNgI qN3XnJEqGTGhYrW/Uthlk+HpHSleZ2pAzVD+zFw69Yx7896yKKPuxcGP+/XzYjEsO1AQ H9ZrfEUDs8TJxa222szXpCKSl9dTjTVLYlhCrWgXrTcH25WfmQfd2s/asq+HDtOCADYJ FJ6A== 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=+f1gZoTa3Iz2Aa/NZNXx9gSkWu07ZzoRSIp5UXEoexk=; fh=jbRHcK0T9UXo2eAKTgNsQV54da4lyx2ETPEzOlvMiLA=; b=zK5ilh8zDUqKXkWVHnDkZDFMzhtbCo4c7Lx6yCFoQEqevjPUBavQwwHJ+twgMVTABT lWIYueuzBk9cSMX5TKjIZ0pzymHfjXu9Tahpr5vidM+tasH2IGlOdY8bTxro/vCi2wr2 ys+Qo/3dwVx3WoYcJMX5188kK0S4wi3sN4B3Gc2DrE0A3O7sjI2KpwJ64XognDRnrGqI dOwWJ5ExOODdsHDTAcsfEPUSQHvQkjDI2Dqgtc3DfSg+q+JgNkPIv0EawY/2n80wovVB ACt1QLnAZgnz2v2gZuTeOgcccGIb+/qFH1pcWC2Q+SZskN0kvW+LUyHc8Wu18VuywS0x LjEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IuKr9Zvm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id t5-20020a170902dcc500b001cc5420241bsi4247519pll.413.2023.11.01.21.04.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 21:04:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IuKr9Zvm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 89698802B178; Wed, 1 Nov 2023 21:04:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232300AbjKBED3 (ORCPT + 99 others); Thu, 2 Nov 2023 00:03:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbjKBED2 (ORCPT ); Thu, 2 Nov 2023 00:03:28 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB7DC127; Wed, 1 Nov 2023 21:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698897801; x=1730433801; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZAhTTJPnwNh7IED7EgXf3uaooCsbRednT45HuNxBBu4=; b=IuKr9Zvm/wvAGpp3Hg7eb3B5k8/lD3F/QXJWv/tsS/fFGd6zKSGkPVKg 0HYisRJ/qp42XUtKppZ5L9u2+XJUc/gLKfuYt+HnNSWRjrpFIfv1ggQZ/ g/4CcPNVYrGK+GoM5WvQv0kASJ8Y9VDJfqH+Mstg7tkxQqOfNH3WP6AIm dnzWxcexRDFZjiFAN8JlaO4IeNFGysLAiMsvuvtvVixxFDGL3rX7++yBl QLFIlf0LH9r3KV5uGBy14LomV/EdfX7GbpiUrn9CrlT1SgzUzM5K8HKb6 T9u/qZDk9t9pZm4ttmSioUi82TIa7ai6x8ozGbaT+0s1yLH30qLgL7vPv A==; X-IronPort-AV: E=McAfee;i="6600,9927,10881"; a="388448262" X-IronPort-AV: E=Sophos;i="6.03,270,1694761200"; d="scan'208";a="388448262" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2023 21:03:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10881"; a="851785059" X-IronPort-AV: E=Sophos;i="6.03,270,1694761200"; d="scan'208";a="851785059" Received: from lkp-server01.sh.intel.com (HELO 17d9e85e5079) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 01 Nov 2023 21:03:17 -0700 Received: from kbuild by 17d9e85e5079 with local (Exim 4.96) (envelope-from ) id 1qyOvK-000166-2h; Thu, 02 Nov 2023 04:03:14 +0000 Date: Thu, 2 Nov 2023 12:03:06 +0800 From: kernel test robot To: Dmitry Rokosov , rostedt@goodmis.org, mhiramat@kernel.org, hannes@cmpxchg.org, mhocko@kernel.org, roman.gushchin@linux.dev, shakeelb@google.com, muchun.song@linux.dev, akpm@linux-foundation.org Cc: oe-kbuild-all@lists.linux.dev, kernel@sberdevices.ru, rockosov@gmail.com, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Dmitry Rokosov Subject: Re: [PATCH v1 2/2] mm: memcg: introduce new event to trace shrink_memcg Message-ID: <202311021126.DNKIAcbq-lkp@intel.com> References: <20231101102837.25205-3-ddrokosov@salutedevices.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231101102837.25205-3-ddrokosov@salutedevices.com> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 01 Nov 2023 21:04:32 -0700 (PDT) Hi Dmitry, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Dmitry-Rokosov/mm-memcg-print-out-cgroup-name-in-the-memcg-tracepoints/20231101-183040 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20231101102837.25205-3-ddrokosov%40salutedevices.com patch subject: [PATCH v1 2/2] mm: memcg: introduce new event to trace shrink_memcg config: sh-allnoconfig (https://download.01.org/0day-ci/archive/20231102/202311021126.DNKIAcbq-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231102/202311021126.DNKIAcbq-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/202311021126.DNKIAcbq-lkp@intel.com/ All errors (new ones prefixed by >>): mm/vmscan.c: In function 'shrink_node_memcgs': >> mm/vmscan.c:5811:17: error: implicit declaration of function 'trace_mm_vmscan_memcg_shrink_begin'; did you mean 'trace_mm_vmscan_lru_shrink_active'? [-Werror=implicit-function-declaration] 5811 | trace_mm_vmscan_memcg_shrink_begin(memcg, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | trace_mm_vmscan_lru_shrink_active mm/vmscan.c:5845:17: error: implicit declaration of function 'trace_mm_vmscan_memcg_shrink_end'; did you mean 'trace_mm_vmscan_lru_shrink_active'? [-Werror=implicit-function-declaration] 5845 | trace_mm_vmscan_memcg_shrink_end(memcg, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | trace_mm_vmscan_lru_shrink_active cc1: some warnings being treated as errors vim +5811 mm/vmscan.c 5791 5792 static void shrink_node_memcgs(pg_data_t *pgdat, struct scan_control *sc) 5793 { 5794 struct mem_cgroup *target_memcg = sc->target_mem_cgroup; 5795 struct mem_cgroup *memcg; 5796 5797 memcg = mem_cgroup_iter(target_memcg, NULL, NULL); 5798 do { 5799 struct lruvec *lruvec = mem_cgroup_lruvec(memcg, pgdat); 5800 unsigned long reclaimed; 5801 unsigned long scanned; 5802 5803 /* 5804 * This loop can become CPU-bound when target memcgs 5805 * aren't eligible for reclaim - either because they 5806 * don't have any reclaimable pages, or because their 5807 * memory is explicitly protected. Avoid soft lockups. 5808 */ 5809 cond_resched(); 5810 > 5811 trace_mm_vmscan_memcg_shrink_begin(memcg, 5812 sc->order, 5813 sc->gfp_mask); 5814 5815 mem_cgroup_calculate_protection(target_memcg, memcg); 5816 5817 if (mem_cgroup_below_min(target_memcg, memcg)) { 5818 /* 5819 * Hard protection. 5820 * If there is no reclaimable memory, OOM. 5821 */ 5822 continue; 5823 } else if (mem_cgroup_below_low(target_memcg, memcg)) { 5824 /* 5825 * Soft protection. 5826 * Respect the protection only as long as 5827 * there is an unprotected supply 5828 * of reclaimable memory from other cgroups. 5829 */ 5830 if (!sc->memcg_low_reclaim) { 5831 sc->memcg_low_skipped = 1; 5832 continue; 5833 } 5834 memcg_memory_event(memcg, MEMCG_LOW); 5835 } 5836 5837 reclaimed = sc->nr_reclaimed; 5838 scanned = sc->nr_scanned; 5839 5840 shrink_lruvec(lruvec, sc); 5841 5842 shrink_slab(sc->gfp_mask, pgdat->node_id, memcg, 5843 sc->priority); 5844 5845 trace_mm_vmscan_memcg_shrink_end(memcg, 5846 sc->nr_reclaimed - reclaimed); 5847 5848 /* Record the group's reclaim efficiency */ 5849 if (!sc->proactive) 5850 vmpressure(sc->gfp_mask, memcg, false, 5851 sc->nr_scanned - scanned, 5852 sc->nr_reclaimed - reclaimed); 5853 5854 } while ((memcg = mem_cgroup_iter(target_memcg, memcg, NULL))); 5855 } 5856 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki