linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Yosry Ahmed <yosry.ahmed@linux.dev>
To: JP Kobryn <inwardvessel@gmail.com>
Cc: "Michal Koutný" <mkoutny@suse.com>,
	tj@kernel.org, shakeel.butt@linux.dev, hannes@cmpxchg.org,
	akpm@linux-foundation.org, linux-mm@kvack.org,
	cgroups@vger.kernel.org, kernel-team@meta.com
Subject: Re: [PATCH 1/4 v3] cgroup: use separate rstat api for bpf programs
Date: Wed, 26 Mar 2025 00:39:19 +0000	[thread overview]
Message-ID: <Z-NMtwBPXSLEu0xk@google.com> (raw)
In-Reply-To: <11a80d4a-9776-4a43-8c61-5cc1ad4abbc7@gmail.com>

On Tue, Mar 25, 2025 at 11:03:26AM -0700, JP Kobryn wrote:
> On 3/24/25 10:47 AM, Michal Koutný wrote:
> > On Wed, Mar 19, 2025 at 03:21:47PM -0700, JP Kobryn <inwardvessel@gmail.com> wrote:
> > > The rstat updated/flush API functions are exported as kfuncs so bpf
> > > programs can make the same calls that in-kernel code can. Split these API
> > > functions into separate in-kernel and bpf versions. Function signatures
> > > remain unchanged. The kfuncs are named with the prefix "bpf_". This
> > > non-functional change allows for future commits which will modify the
> > > signature of the in-kernel API without impacting bpf call sites. The
> > > implementations of the kfuncs serve as adapters to the in-kernel API.
> > 
> > This made me look up
> > https://docs.kernel.org/bpf/kfuncs.html#bpf-kfunc-lifecycle-expectations
> > 
> > The series reworks existing kfuncs anyway, is it necessary to have the
> > bpf_ versions? The semantics is changed too from base+all subsystems
> > flush to only base flush (bpf_rstat_flush()).
> 
> This patch was done based on some conversation in v2 around what to do
> with the kfuncs (bottom of [0]). It's true the kfunc API deviates from
> flush-specific-subsystem approach. Dropping this patch is fine by me and
> I assume it would be ok with Yosry (based on comments at end of [0]),
> but I'll wait and see if he has any input.

Yeah I am okay with dropping this as well.

> 
> [0] https://lore.kernel.org/all/Z8IIxUdRpqxZyIHO@google.com/


  reply	other threads:[~2025-03-26  0:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-19 22:21 [PATCH 0/4 v3] cgroup: separate rstat trees JP Kobryn
2025-03-19 22:21 ` [PATCH 1/4 v3] cgroup: use separate rstat api for bpf programs JP Kobryn
2025-03-24 17:47   ` Michal Koutný
2025-03-25 18:03     ` JP Kobryn
2025-03-26  0:39       ` Yosry Ahmed [this message]
2025-03-19 22:21 ` [PATCH 2/4 v3] cgroup: use separate rstat trees for each subsystem JP Kobryn
2025-03-20 21:31   ` Tejun Heo
2025-03-21 17:22     ` JP Kobryn
2025-03-24 17:48   ` Michal Koutný
2025-03-19 22:21 ` [PATCH 3/4 v3] cgroup: use subsystem-specific rstat locks to avoid contention JP Kobryn
2025-03-20 21:38   ` Tejun Heo
2025-03-24 17:48   ` Michal Koutný
2025-03-19 22:21 ` [PATCH 4/4 v3] cgroup: save memory by splitting cgroup_rstat_cpu into compact and full versions JP Kobryn
2025-03-20 21:44   ` Tejun Heo
2025-03-21 17:45     ` JP Kobryn
2025-03-24 17:49       ` Michal Koutný
2025-03-25 13:55       ` Shakeel Butt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z-NMtwBPXSLEu0xk@google.com \
    --to=yosry.ahmed@linux.dev \
    --cc=akpm@linux-foundation.org \
    --cc=cgroups@vger.kernel.org \
    --cc=hannes@cmpxchg.org \
    --cc=inwardvessel@gmail.com \
    --cc=kernel-team@meta.com \
    --cc=linux-mm@kvack.org \
    --cc=mkoutny@suse.com \
    --cc=shakeel.butt@linux.dev \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox