[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAADnVQKz8fzvVfqozE2QePjXk4bG8gyTow8Nm+CRYcWM7pf6DA@mail.gmail.com>
Date: Fri, 12 Feb 2021 13:04:56 -0800
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Song Liu <songliubraving@...com>
Cc: bpf <bpf@...r.kernel.org>,
Network Development <netdev@...r.kernel.org>,
linux-mm <linux-mm@...ck.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Kernel Team <kernel-team@...com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH v7 bpf-next 0/3] introduce bpf_iter for task_vma
On Fri, Feb 12, 2021 at 10:31 AM Song Liu <songliubraving@...com> wrote:
>
> This set introduces bpf_iter for task_vma, which can be used to generate
> information similar to /proc/pid/maps. Patch 4/4 adds an example that
> mimics /proc/pid/maps.
>
> Current /proc/<pid>/maps and /proc/<pid>/smaps provide information of
> vma's of a process. However, these information are not flexible enough to
> cover all use cases. For example, if a vma cover mixed 2MB pages and 4kB
> pages (x86_64), there is no easy way to tell which address ranges are
> backed by 2MB pages. task_vma solves the problem by enabling the user to
> generate customize information based on the vma (and vma->vm_mm,
> vma->vm_file, etc.).
>
> Changes v6 => v7:
> 1. Let BPF iter program use bpf_d_path without specifying sleepable.
> (Alexei)
Applied. Thanks!
Powered by blists - more mailing lists