OSDN Git Service

Merge branch 'introduce bpf_find_vma'
authorAlexei Starovoitov <ast@kernel.org>
Sun, 7 Nov 2021 19:54:51 +0000 (11:54 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 7 Nov 2021 19:54:51 +0000 (11:54 -0800)
commit0cc78dcca36de43f6ec4a94ddf64ddfa9bb36024
tree0adf410fb0caebdb0252f340a7fd0b27ff6c56e3
parent5fd79ed9bed1934de0ba0024e62eacaedb3c4c8a
parentf108662b27c96cdadfadd39f0c0d650704cd593d
Merge branch 'introduce bpf_find_vma'

Song Liu says:

====================

Changes v4 => v5:
1. Clean up and style change in 2/2. (Andrii)

Changes v3 => v4:
1. Move mmap_unlock_work to task_iter.c to fix build for .config without
   !CONFIG_PERF_EVENTS. (kernel test robot <lkp@intel.com>)

Changes v2 => v3:
1. Avoid using x86 only function in selftests. (Yonghong)
2. Add struct file and struct vm_area_struct to btf_task_struct_ids, and
   use it in bpf_find_vma and stackmap.c. (Yonghong)
3. Fix inaccurate comments. (Yonghong)

Changes v1 => v2:
1. Share irq_work with stackmap.c. (Daniel)
2. Add tests for illegal writes to task/vma from the callback function.
   (Daniel)
3. Other small fixes.

Add helper bpf_find_vma. This can be used in some profiling use cases. It
might also be useful for LSM.
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>