linux/include/uapi
Dave Marchevsky ca34ce29fc bpf: Improve docstring for BPF_F_USER_BUILD_ID flag
Most tools which use bpf_get_stack or bpf_get_stackid symbolicate the
stack - meaning the stack of addresses in the target process' address
space is transformed into meaningful symbol names. The
BPF_F_USER_BUILD_ID flag eases this process by finding the build_id of
the file-backed vma which the address falls in and translating the
address to an offset within the backing file.

To be more specific, the offset is a "file offset" from the beginning of
the backing file. The symbols in ET_DYN ELF objects have a st_value
which is also described as an "offset" - but an offset in the process
address space, relative to the base address of the object.

It's necessary to translate between the "file offset" and "virtual
address offset" during symbolication before they can be directly
compared. Failure to do so can lead to confusing bugs, so this patch
clarifies language in the documentation in an attempt to keep this from
happening.

Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220808164723.3107500-1-davemarchevsky@fb.com
2022-08-08 15:15:05 -07:00
..
asm-generic tools: Fixed MIPS builds due to struct flock re-definition 2022-07-20 12:55:33 +02:00
drm flexible-array transformations in UAPI for 6.0-rc1 2022-08-02 19:50:47 -07:00
linux bpf: Improve docstring for BPF_F_USER_BUILD_ID flag 2022-08-08 15:15:05 -07:00
misc habanalabs: add support for notification via eventfd 2022-05-22 21:01:20 +02:00
mtd
rdma Networking changes for 6.0. 2022-08-03 16:29:08 -07:00
scsi treewide: uapi: Replace zero-length arrays with flexible-array members 2022-06-28 21:26:05 +02:00
sound treewide: uapi: Replace zero-length arrays with flexible-array members 2022-06-28 21:26:05 +02:00
video
xen Improve docs for IOCTL_GNTDEV_MAP_GRANT_REF 2022-02-03 08:23:32 +01:00
Kbuild