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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F322C04A68 for ; Thu, 28 Jul 2022 16:52:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231659AbiG1QwF (ORCPT ); Thu, 28 Jul 2022 12:52:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231523AbiG1QwB (ORCPT ); Thu, 28 Jul 2022 12:52:01 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CEFC70E53; Thu, 28 Jul 2022 09:52:00 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id y15so2269833plp.10; Thu, 28 Jul 2022 09:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc; bh=fUVrK6g6lEQcJgvUhuFR+4LVGwptL3CDZhDO7VRmNOg=; b=TOhl89jKQ+CkKM87tj1vWT5uQe8ni61gDVjTKzKPd+UpFyilcZ9zwRWS+IPM5TGXaU u4OZN8NerzC0JJFwL/LMrixY61CQxOavVDHVnFiRXhWoqiKIS84crWtf2ADSbsopoDx9 CqQVo0FPvxJzSOYl/kChHOYJRiYCXURZQu8o9ZpkYt7W9Jc0yqedeTqfNgiIUSdvNoKH 2xPMnNg3Z1+5kPRZ2bfAL3VxeSVJUXCxZbwDO0jc3uxzGND46zHX0Q20Wi38L9P+V6EH CfgH6pPNiN77F64BMbn4ufnL8wVhgVcbTodO/fXy6GyeF4xIHvXyxZkVykVSklWTTq82 5KGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc; bh=fUVrK6g6lEQcJgvUhuFR+4LVGwptL3CDZhDO7VRmNOg=; b=MLoXuuj5D/rYPDff1wjOE18+tMr8vUPZu5hlC4sOn+wceMfVQcxwtUPGEUA5yLBAux DeACz+xo+zValXWeNDSwdcV9EpPNe+9b0esL5fs72YZ900WMa2iuYbywCt6Mo7xtiduR U+ZJUOcfOqtPCkuYmD3s076I1lnRNgmlvnCKK9wDU3Lk6rLYO6gY8o4IU9PlUzMv6+dB X+OfYW1ttV4S4T9IYFLmv0aXt9Y6zkukISR3lOeCgxDcESRx7udywd5uESxAHpGT3Ecb yUtmMNECoejh/P2GLFS8nHox07dRg1lf9mb+kp2lcrDutgoy4LDXvec+wlaGp1gq0Cd9 Qx4w== X-Gm-Message-State: AJIora9Y6iL3/sTPi7700+45CrUaud5WwAoZWb3uacFcvwu2lLOicUFm xUPvYqX0PXrQDgFn+gFp5E8= X-Google-Smtp-Source: AGRyM1slV7f42a9r0z9ic0zdKmN0qYm12B5tomXz+oZofoxBS+pi5Tzha7NWrt/S4nWycAi7IgtjjA== X-Received: by 2002:a17:902:e84e:b0:16b:f773:4692 with SMTP id t14-20020a170902e84e00b0016bf7734692mr27142961plg.19.1659027119804; Thu, 28 Jul 2022 09:51:59 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id m13-20020a170902f64d00b0016bf2a4598asm1478509plg.229.2022.07.28.09.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 09:51:59 -0700 (PDT) Sender: Tejun Heo Date: Thu, 28 Jul 2022 06:51:57 -1000 From: Tejun Heo To: Yosry Ahmed Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , Hao Luo , Zefan Li , Johannes Weiner , Shuah Khan , Michal Hocko , KP Singh , Benjamin Tissoires , John Fastabend , Michal =?iso-8859-1?Q?Koutn=FD?= , Roman Gushchin , David Rientjes , Stanislav Fomichev , 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 v5 6/8] cgroup: bpf: enable bpf programs to integrate with rstat Message-ID: References: <20220722174829.3422466-1-yosryahmed@google.com> <20220722174829.3422466-7-yosryahmed@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220722174829.3422466-7-yosryahmed@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 22, 2022 at 05:48:27PM +0000, Yosry Ahmed wrote: > Enable bpf programs to make use of rstat to collect cgroup hierarchical > stats efficiently: > - Add cgroup_rstat_updated() kfunc, for bpf progs that collect stats. > - Add cgroup_rstat_flush() sleepable kfunc, for bpf progs that read stats. > - Add an empty bpf_rstat_flush() hook that is called during rstat > flushing, for bpf progs that flush stats to attach to. Attaching a bpf > prog to this hook effectively registers it as a flush callback. > > Signed-off-by: Yosry Ahmed Acked-by: Tejun Heo Thanks. -- tejun