No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Martin KaFai Lau 60197cfb6e bpf: btf: Add BPF_OBJ_GET_INFO_BY_FD support to BTF fd
This patch adds BPF_OBJ_GET_INFO_BY_FD support to BTF fd.
The original BTF data, which was used to create the BTF fd during
the earlier BPF_BTF_LOAD call, will be returned.

The userspace is expected to allocate buffer
to info.info and the buffer size is set to info.info_len before
calling BPF_OBJ_GET_INFO_BY_FD.

The original BTF data is copied to the userspace buffer (info.info).
Only upto the user's specified info.info_len will be copied.

The original BTF data size is set to info.info_len.  The userspace
needs to check if it is bigger than its allocated buffer size.
If it is, the userspace should realloc with the kernel-returned
info.info_len and call the BPF_OBJ_GET_INFO_BY_FD again.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Alexei Starovoitov <ast@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-04-19 21:46:25 +02:00
arch xen: fixes for 4.17-rc1 2018-04-12 11:04:35 -07:00
block
certs
crypto
Documentation IOMMU Updates for Linux v4.17 2018-04-11 18:50:41 -07:00
drivers bpf: make virtio compatible w/ bpf_xdp_adjust_tail 2018-04-18 23:34:16 +02:00
firmware
fs This pull request contains updates for both UBI and UBIFS: 2018-04-11 16:39:34 -07:00
include bpf: btf: Add BPF_OBJ_GET_INFO_BY_FD support to BTF fd 2018-04-19 21:46:25 +02:00
init
ipc
kernel bpf: btf: Add BPF_OBJ_GET_INFO_BY_FD support to BTF fd 2018-04-19 21:46:25 +02:00
lib Fix for one swiotlb regression in 2.16 from Takashi. 2018-04-12 11:00:48 -07:00
LICENSES
mm
net bpf: reserve xdp_frame size in xdp headroom 2018-04-19 17:52:12 +02:00
samples bpf: add bpf_xdp_adjust_tail sample prog 2018-04-18 23:34:17 +02:00
scripts asm-generic fixes for v4.17-rc1 2018-04-12 09:15:48 -07:00
security
sound
tools bpf: add bpf_xdp_adjust_tail sample prog 2018-04-18 23:34:17 +02:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS ARM: SoC fixes for 4.17 2018-04-11 16:12:21 -07:00
Makefile
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.