Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3304665lfo; Mon, 23 May 2022 01:11:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbo2sXH8zASmzcMAns7LTK6m5twHGjCNZxy6jeUQkqNVw4Gb4ENj5SDuBdT9LStIVV9+UZ X-Received: by 2002:a17:902:8303:b0:15f:86f:70a with SMTP id bd3-20020a170902830300b0015f086f070amr22248628plb.5.1653293517157; Mon, 23 May 2022 01:11:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653293517; cv=none; d=google.com; s=arc-20160816; b=WcP1RtvYC9jbPdRqCgPFpsy7Sb1p4ZKmG9ZgzBwFRk2/V/Ew9fja2eR436dXk02s/R 7yvHkXuQ7Z+LP+C1vgfVk5Bt7D7125KNSTTYH/sZxv0PTMD/7jviN76VNYxQWG9tpitL +SnuiqFxxorVUDkp2fP1rkk5MR7HO8ASF4bSPD1t37JTqVcA4kOlY/9QgOueSQXcmKcp 9gnWeNtLDAAVGm07L7TMzqLRQ7VcgUlgoxrl0q/uCkBR0OTm855Kd7U4HiuXmuajsfBI jsaIXvBPk5TLkB1MW8szsUgCFnw8tthgb1lMZU8nhiIAWn0MaSUvl52JQV5l8TIXiB78 4kFA== 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:sender:dkim-signature; bh=XeafRqcB/dUPhMnvYlhk8N3gK6kHX7tikPF48apxqmw=; b=dXrkQMXSk/lmILNTWM/bBHTl4EGlAbqN9q+Ub0i5LHqzoyal8TguiDkRL76vc07CNZ DjNoIii06U2ORidd7uAUotfGNwkHjzv8MnMDrDvf7COaoM695JA52rddSO82Hx2g0175 vweLQQBj2YXfYn0PC2S2KyBcgBsLETkbD1yYdFzr1Y8nUEhBnvrHyuVVCFQkof9a2M7O zemWbuGs7rpf0hKdySMxDXlWCkVubnA5hkiN0pP4vMSUFjm13DntmTPEvaNbYxgaopbp 1/m0bas3oiWlHaThgrERD4UexsO7djlPWHcE35UHHMWvWa4a506WyvtlH8gjnpuNsFIF q9Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cJ9CJuPH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c18-20020a170902d49200b00153b2d1645dsi10563643plg.101.2022.05.23.01.11.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 01:11:57 -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=@gmail.com header.s=20210112 header.b=cJ9CJuPH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 210DF7B9D3; Mon, 23 May 2022 00:06:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346452AbiETHYz (ORCPT + 99 others); Fri, 20 May 2022 03:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242746AbiETHYt (ORCPT ); Fri, 20 May 2022 03:24:49 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F63214ACBE; Fri, 20 May 2022 00:24:48 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id z3so5553239pgn.4; Fri, 20 May 2022 00:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=XeafRqcB/dUPhMnvYlhk8N3gK6kHX7tikPF48apxqmw=; b=cJ9CJuPHHTubONmMlTRk8f+pyXocuBGlxy7/QoVBvkeelp7nLsvi/2E3QAn80sU9fj 4+NsAa9yCw5EJsUcLaGnbkELNj4M/LDEaF0eh9sNdGdaFnrl9yUV/qRnf+xr/JHuL66X a7S//c7Gqwn7LYFue2cBGcUPCnQNj+nqYBYPA13AGB0JJCnF+ZhmhOr+vA1Gc3m9FJfv oOppPDMGp9IXsXgwpZmbopLq6bc/3wyEzAbGJoe8O0NJ2x8dYrfNnCmE/w/dO+aqQLRN 04faEAXLVzkjgi7ZzoH2hzx9SmLt3TJZGDaGdojTLZUI7pKIuwka6ZaoiQzpOvdNURRZ 4sAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=XeafRqcB/dUPhMnvYlhk8N3gK6kHX7tikPF48apxqmw=; b=TD3iaCnScsw2nm+F2Z7l5ByCV1w8LJE115n5kJ44NwAYx/WCTF83ITbxL72Dftsi90 TgP/6YrOW85cVSK3xlAONbd2BN4Xa6HsvgMcTLdyQY/9uNAf7FxdQae6Ege6c76eZ3Wa H6apXhPxgoKgntSBdFAGNemCLUq++4+iqsFbLj35fqgjsHfTHhDWsxco9DpkQqnJB+jP ISZUjI2FPWwbn1QW8sUHeAz/1WhYYfFDVWSH87LjZs15804FMxV1xJiqAuqVrNiEOAqj mxeV6hyUrilAOeXPZpBgLD1DCtcluIY8gYTeC6RL9Us9dWo/+stlblXtQFAqxPHVlyWm Yl+Q== X-Gm-Message-State: AOAM531ogXiavwo1FOukdUFAabXCTyHsGzt7IfgGXgmLB9Z98qVmEoMy QGUDbIBsjDCZ6eAv91eoifk= X-Received: by 2002:a63:7d4a:0:b0:398:dad:6963 with SMTP id m10-20020a637d4a000000b003980dad6963mr7342754pgn.329.1653031487396; Fri, 20 May 2022 00:24:47 -0700 (PDT) Received: from localhost ([2620:10d:c090:400::4:1761]) by smtp.gmail.com with ESMTPSA id nk10-20020a17090b194a00b001df6ccdf3f6sm1062191pjb.47.2022.05.20.00.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 00:24:46 -0700 (PDT) Sender: Tejun Heo Date: Thu, 19 May 2022 21:24:45 -1000 From: Tejun Heo To: Yosry Ahmed Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Hao Luo , Zefan Li , Johannes Weiner , Shuah Khan , Roman Gushchin , Michal Hocko , Stanislav Fomichev , David Rientjes , Greg Thelen , Shakeel Butt , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH bpf-next v1 2/5] cgroup: bpf: add cgroup_rstat_updated() and cgroup_rstat_flush() kfuncs Message-ID: References: <20220520012133.1217211-1-yosryahmed@google.com> <20220520012133.1217211-3-yosryahmed@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220520012133.1217211-3-yosryahmed@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 Fri, May 20, 2022 at 01:21:30AM +0000, Yosry Ahmed wrote: > Add cgroup_rstat_updated() and cgroup_rstat_flush() kfuncs to bpf > tracing programs. bpf programs that make use of rstat can use these > functions to inform rstat when they update stats for a cgroup, and when > they need to flush the stats. > > Signed-off-by: Yosry Ahmed Do patch 1 and 2 need to be separate? Also, can you explain and comment why it's __weak? Thanks. -- tejun