Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2424259iof; Wed, 8 Jun 2022 04:50:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIitDUBnFDOFoGf7qBkJ3F1GxuRMj6FDpUhMIGSkFJRD68Q4VYKbMO0qzotGQeoDT2yykQ X-Received: by 2002:a17:903:1d2:b0:165:fd6:6ab6 with SMTP id e18-20020a17090301d200b001650fd66ab6mr33582479plh.41.1654689002543; Wed, 08 Jun 2022 04:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654689002; cv=none; d=google.com; s=arc-20160816; b=QtILx6XsrvOxKFMlEOGyX43wOf5tCL+lkqYoDtnD4NmjpJ+Zl0HzmhVX5Wn7/9vpv2 cZ+L0xr/XuEs5VedHr6pdbGdvq0f49ulNZd4Oc7W9X5+CzWdFz565d+MoeXynej4YdcA 3jn9Ss1t/7r2Ja1If8S1LI+3eYGOMJSGXukHL/dvGjVy+LXhdyzdOUf3TcHo41RtzwiU iYcL/u/8xZgqMgOu1bgIw51V6oCjNaL/8wM88RSvOybeHRilweVmaEaBJ2uL8zVnht31 CjZRnhyO5Dn8BMSMlAeMifkNxTSxCTllatZGk1ilUTzJD7ZOzoYOOa31TRgnFfLhdprk 3zyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=a6bf/XKIswMmhT0/MxqBFChdpkZvDy8EKPj+RsAd1+M=; b=xoV/AasWPE54fFS2Cl6PYImT/UT2H9VL//rVv3pmLo85kGyrhq+wBDEuUYqEz/TkU/ u7QCeCik5fOxWm3MtTlVTA6LJaSZmp6YK2yegVilSYnHxOYpfiYjDb5AvbXoAWqqG1f/ nSzGlZsBlJ6puiA+gLzvBU3mYHzVdSEV6LYjM+aVE/aYJSv2/in2CAOiLdrRDR/E+OR2 fv2IljaAdJQJJMs//qfjiOGyFFeHc95X+flr0a+a7JW9ye7RhspSPdf0g1h3xNuc9Rsf Hb914JKZHuFhtjf3x2bNnZmYetFrrSOhb/HAbm93arqzhbRVuxJ6OahUU5a9dp72O4O+ v2yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=fBte7kUP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y4-20020a170902b48400b0016774f58f04si13020448plr.178.2022.06.08.04.50.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 04:50:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=fBte7kUP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D455F3A697A; Wed, 8 Jun 2022 04:17:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238014AbiFHLRp (ORCPT + 99 others); Wed, 8 Jun 2022 07:17:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237780AbiFHLRn (ORCPT ); Wed, 8 Jun 2022 07:17:43 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1D5A397B8C; Wed, 8 Jun 2022 04:17:38 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 652F521BED; Wed, 8 Jun 2022 11:17:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1654687057; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=a6bf/XKIswMmhT0/MxqBFChdpkZvDy8EKPj+RsAd1+M=; b=fBte7kUPCjB2wXrYzPa9lBNyOS1Uqd5BrWTaIy5APcQPd676v4dk9jugTV1GTK9et//N67 n6/XIeuOiXycHc+0OvVgNJ7gXBnlvz6672DsZUmJvRhPu3IRAqVx8bIQzg2HzobuOb2/m9 u0DQh0SfHOB6vkc72pxxKqfn1iJbDII= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id ED6F713AD9; Wed, 8 Jun 2022 11:17:36 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id HMT0OFCFoGLTGgAAMHmgww (envelope-from ); Wed, 08 Jun 2022 11:17:36 +0000 Date: Wed, 8 Jun 2022 13:17:35 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Yosry Ahmed Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Hao Luo , Tejun Heo , Zefan Li , Johannes Weiner , Shuah Khan , Roman Gushchin , Michal Hocko , Stanislav Fomichev , David Rientjes , Greg Thelen , Shakeel Butt , Linux Kernel Mailing List , Networking , bpf , Cgroups Subject: Re: [PATCH bpf-next v1 5/5] bpf: add a selftest for cgroup hierarchical stats collection Message-ID: <20220608111735.GE8747@blackbody.suse.cz> References: <20220520012133.1217211-1-yosryahmed@google.com> <20220520012133.1217211-6-yosryahmed@google.com> <20220603162339.GA25043@blackbody.suse.cz> <20220606123222.GA4377@blackbody.suse.cz> <20220607121237.GC31717@blackbody.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, Jun 07, 2022 at 10:43:35AM -0700, Yosry Ahmed wrote: > memory_cgrp_id is defined in "vmlinux.h" (generated from BTF) which is > included through "bpf_iter.h". If the kernel is not compiled with > CONFIG_MEMCG then this enum value will not be defined and the bpf prog > should not compile. Cool. Then it works as I would have expected. Michal