Home
last modified time | relevance | path

Searched hist:"71 dd77fd4bf7d1675a95dfe04a99669ce15b58f8" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/lib/bpf/
H A DMakefilediff 71dd77fd4bf7d1675a95dfe04a99669ce15b58f8 Thu Aug 15 07:13:54 CDT 2019 Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> libbpf: use LFS (_FILE_OFFSET_BITS) instead of direct mmap2 syscall

Drop __NR_mmap2 fork in flavor of LFS, that is _FILE_OFFSET_BITS=64
(glibc & bionic) / LARGEFILE64_SOURCE (for musl) decision. It allows
mmap() to use 64bit offset that is passed to mmap2 syscall. As result
pgoff is not truncated and no need to use direct access to mmap2 for
32 bits systems.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>