Thread (5 messages) 5 messages, 2 authors, 2021-02-12

Re: [PATCH v7 bpf-next 0/3] introduce bpf_iter for task_vma

From: Alexei Starovoitov <hidden>
Date: 2021-02-12 21:05:12
Also in: linux-mm, netdev

On Fri, Feb 12, 2021 at 10:31 AM Song Liu [off-list ref] 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!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help