Andrii Nakryiko
f0c6b6bdfb
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 376dcfe3a4e5a5475a84e6b5f926066a8614f887
Checkpoint bpf-next commit: 3cb12d27ff655e57e8efe3486dca2a22f4e30578
Baseline bpf commit: 28802e7c0c9954218d1830f7507edc9d49b03a00
Checkpoint bpf commit: c66dca98a24cb5f3493dd08d40bcfa94a220fa92
Daniel Borkmann (1):
bpf, libbpf: Guard bpf inline asm from bpf_tail_call_static
Toke Høiland-Jørgensen (1):
bpf: Fix bpf_redirect_neigh helper api to support supplying nexthop
include/uapi/linux/bpf.h | 22 ++++++++++++++++++----
src/bpf_helpers.h | 2 ++
2 files changed, 20 insertions(+), 4 deletions(-)
--
2.24.1
2020-10-28 09:08:35 -07:00
Andrii Nakryiko
6fa81d4dbe
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: f4d385e4d51d035c7f0d68a3e9564c9453c13aa4
Checkpoint bpf-next commit: 376dcfe3a4e5a5475a84e6b5f926066a8614f887
Baseline bpf commit: 9cf51446e68607136e42a4e531a30c888c472463
Checkpoint bpf commit: 28802e7c0c9954218d1830f7507edc9d49b03a00
Andrii Nakryiko (3):
libbpf: Skip CO-RE relocations for not loaded BPF programs
libbpf: Support safe subset of load/store instruction resizing with
CO-RE
libbpf: Allow specifying both ELF and raw BTF for CO-RE BTF override
Daniel Borkmann (3):
bpf: Improve bpf_redirect_neigh helper description
bpf: Add redirect_peer helper
bpf: Allow for map-in-map with dynamic inner array map entries
Hangbin Liu (2):
libbpf: Close map fd if init map slots failed
libbpf: Check if pin_path was set even map fd exist
Hao Luo (4):
bpf: Introduce pseudo_btf_id
bpf/libbpf: BTF support for typed ksyms
bpf: Introduce bpf_per_cpu_ptr()
bpf: Introducte bpf_this_cpu_ptr()
Jakub Wilk (1):
bpf: Fix typo in uapi/linux/bpf.h
Luigi Rizzo (1):
bpf, libbpf: Use valid btf in bpf_program__set_attach_target
Magnus Karlsson (1):
libbpf: Fix compatibility problem in xsk_socket__create
Nikita V. Shirokov (1):
bpf: Add tcp_notsent_lowat bpf setsockopt
Song Liu (1):
bpf: Introduce BPF_F_PRESERVE_ELEMS for perf event array
include/uapi/linux/bpf.h | 104 ++++++++++--
src/libbpf.c | 348 ++++++++++++++++++++++++++++++++-------
src/xsk.c | 7 +-
3 files changed, 385 insertions(+), 74 deletions(-)
--
2.24.1
2020-10-12 14:27:04 -07:00
Andrii Nakryiko
21ea184818
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 2f7de9865ba3cbfcf8b504f07154fdb6124176a4
Checkpoint bpf-next commit: b0efc216f577997bf563d76d51673ed79c3d5f71
Baseline bpf commit: 87f92ac4c12758c4da3bbe4393f1d884b610b8a6
Checkpoint bpf commit: 9cf51446e68607136e42a4e531a30c888c472463
Alan Maguire (2):
bpf: Add bpf_snprintf_btf helper
bpf: Add bpf_seq_printf_btf helper
Andrii Nakryiko (11):
libbpf: Refactor internals of BTF type index
libbpf: Remove assumption of single contiguous memory for BTF data
libbpf: Generalize common logic for managing dynamically-sized arrays
libbpf: Extract generic string hashing function for reuse
libbpf: Allow modification of BTF and add btf__add_str API
libbpf: Add btf__new_empty() to create an empty BTF object
libbpf: Add BTF writing APIs
libbpf: Add btf__str_by_offset() as a more generic variant of
name_by_offset
selftests/bpf: Test BTF writing APIs
libbpf: Support BTF loading and raw data output in both endianness
libbpf: Fix uninitialized variable in btf_parse_type_sec
Martin KaFai Lau (4):
bpf: Change bpf_sk_release and bpf_sk_*cgroup_id to accept
ARG_PTR_TO_BTF_ID_SOCK_COMMON
bpf: Change bpf_sk_storage_*() to accept ARG_PTR_TO_BTF_ID_SOCK_COMMON
bpf: Change bpf_tcp_*_syncookie to accept
ARG_PTR_TO_BTF_ID_SOCK_COMMON
bpf: Change bpf_sk_assign to accept ARG_PTR_TO_BTF_ID_SOCK_COMMON
Song Liu (3):
bpf: Fix comment for helper bpf_current_task_under_cgroup()
bpf: Enable BPF_PROG_TEST_RUN for raw_tracepoint
libbpf: Support test run of raw tracepoint programs
Toke Høiland-Jørgensen (2):
bpf: Support attaching freplace programs to multiple attach points
libbpf: Add support for freplace attachment in bpf_link_create
YiFei Zhu (2):
bpf: Add BPF_PROG_BIND_MAP syscall
libbpf: Add BPF_PROG_BIND_MAP syscall and use it on .rodata section
Yonghong Song (1):
libbpf: Fix a compilation error with xsk.c for ubuntu 16.04
include/uapi/linux/bpf.h | 118 ++-
src/bpf.c | 67 +-
src/bpf.h | 39 +-
src/btf.c | 1851 ++++++++++++++++++++++++++++++++------
src/btf.h | 51 ++
src/btf_dump.c | 9 +-
src/hashmap.h | 12 +
src/libbpf.c | 113 ++-
src/libbpf.h | 3 +
src/libbpf.map | 28 +
src/libbpf_internal.h | 8 +
src/xsk.c | 1 +
12 files changed, 1997 insertions(+), 303 deletions(-)
--
2.24.1
2020-09-29 18:29:49 -07:00
Andrii Nakryiko
37c5973bb7
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 2f7de9865ba3cbfcf8b504f07154fdb6124176a4
Checkpoint bpf-next commit: 2f7de9865ba3cbfcf8b504f07154fdb6124176a4
Baseline bpf commit: 746f534a4809e07f427f7d13d10f3a6a9641e5c3
Checkpoint bpf commit: 87f92ac4c12758c4da3bbe4393f1d884b610b8a6
Andrii Nakryiko (1):
libbpf: Fix XDP program load regression for old kernels
Tony Ambardar (1):
libbpf: Fix native endian assumption when parsing BTF
src/btf.c | 6 ++++++
src/libbpf.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
--
2.24.1
2020-09-24 10:56:51 -07:00
Andrii Nakryiko
820813bd1b
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: f9bec5d756b30d5b21aa5ff9b7d5d115741517c1
Checkpoint bpf-next commit: 2f7de9865ba3cbfcf8b504f07154fdb6124176a4
Baseline bpf commit: e6135df45e21f1815a5948f452593124b1544a3e
Checkpoint bpf commit: 746f534a4809e07f427f7d13d10f3a6a9641e5c3
Quentin Monnet (1):
tools, bpf: Synchronise BPF UAPI header with tools
include/uapi/linux/bpf.h | 87 +++++++++++++++++++++-------------------
1 file changed, 45 insertions(+), 42 deletions(-)
--
2.24.1
2020-09-11 10:09:12 -07:00
Andrii Nakryiko
6384ee1968
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 2e80be60c465a4f8559327340eaf40845dd7797a
Checkpoint bpf-next commit: 95cec14b0308085c028c4d4fb3d09fad3902b4c3
Baseline bpf commit: 7787b6fc938e16aa418613c4a765c1dbb268ed9f
Checkpoint bpf commit: e6135df45e21f1815a5948f452593124b1544a3e
Alexei Starovoitov (3):
bpf: Introduce sleepable BPF programs
bpf: Add bpf_copy_from_user() helper.
libbpf: Support sleepable progs
Andrii Nakryiko (7):
libbpf: Ensure ELF symbols table is found before further ELF
processing
libbpf: Parse multi-function sections into multiple BPF programs
libbpf: Support CO-RE relocations for multi-prog sections
libbpf: Make RELO_CALL work for multi-prog sections and sub-program
calls
libbpf: Implement generalized .BTF.ext func/line info adjustment
libbpf: Add multi-prog section support for struct_ops
libbpf: Deprecate notion of BPF program "title" in favor of "section
name"
Magnus Karlsson (1):
libbpf: Support shared umems between queues and devices
Tony Ambardar (1):
libbpf: Fix build failure from uninitialized variable warning
Yonghong Song (1):
bpf: Make bpf_link_info.iter similar to bpf_iter_link_info
include/uapi/linux/bpf.h | 22 +-
src/btf.h | 18 +-
src/libbpf.c | 1314 +++++++++++++++++++++++++-------------
src/libbpf.h | 5 +-
src/libbpf.map | 2 +
src/libbpf_common.h | 2 +
src/xsk.c | 376 +++++++----
src/xsk.h | 9 +
8 files changed, 1156 insertions(+), 592 deletions(-)
--
2.24.1
2020-09-03 21:21:34 -07:00
Andrii Nakryiko
5a913e9401
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: dca5612f8eb9d0cf1dc254eb2adff1f16a588a7d
Checkpoint bpf-next commit: 0fcdfffe80346d015b920228203d0269284d8b13
Baseline bpf commit: 4af7b32f84aa4cd60e39b355bc8a1eab6cd8d8a4
Checkpoint bpf commit: 7787b6fc938e16aa418613c4a765c1dbb268ed9f
Andrii Nakryiko (6):
libbpf: Factor out common ELF operations and improve logging
libbpf: Add __noinline macro to bpf_helpers.h
libbpf: Skip well-known ELF sections when iterating ELF
libbpf: Normalize and improve logging across few functions
libbpf: Avoid false unuinitialized variable warning in
bpf_core_apply_relo
libbpf: Fix type compatibility check copy-paste error
Martin KaFai Lau (6):
tcp: bpf: Add TCP_BPF_DELACK_MAX setsockopt
tcp: bpf: Add TCP_BPF_RTO_MIN for bpf_setsockopt
bpf: tcp: Add bpf_skops_parse_hdr()
bpf: tcp: Add bpf_skops_hdr_opt_len() and bpf_skops_write_hdr_opt()
bpf: tcp: Allow bpf prog to write and parse TCP header option
tcp: bpf: Optionally store mac header in TCP_SAVE_SYN
include/uapi/linux/bpf.h | 306 ++++++++++++++++++++++-
src/bpf_helpers.h | 3 +
src/libbpf.c | 525 +++++++++++++++++++++++----------------
3 files changed, 623 insertions(+), 211 deletions(-)
--
2.24.1
2020-08-25 00:53:18 -07:00
Andrii Nakryiko
a44116bb1f
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
Checkpoint bpf-next commit: dca5612f8eb9d0cf1dc254eb2adff1f16a588a7d
Baseline bpf commit: 3fb1a96a91120877488071a167d26d76be4be977
Checkpoint bpf commit: 4af7b32f84aa4cd60e39b355bc8a1eab6cd8d8a4
Andrii Nakryiko (17):
libbpf: Make kernel feature probing lazy
libbpf: Factor out common logic of testing and closing FD
libbpf: Sanitize BPF program code for bpf_probe_read_{kernel,
user}[_str]
libbpf: Switch tracing and CO-RE helper macros to
bpf_probe_read_kernel()
libbpf: Detect minimal BTF support and skip BTF loading, if missing
libbpf: Improve error logging for mismatched BTF kind cases
libbpf: Clean up and improve CO-RE reloc logging
libbpf: Improve relocation ambiguity detection
libbpf: Remove any use of reallocarray() in libbpf
tools/bpftool: Remove libbpf_internal.h usage in bpftool
libbpf: Centralize poisoning and poison reallocarray()
tools: Remove feature-libelf-mmap feature detection
libbpf: Implement type-based CO-RE relocations support
libbpf: Implement enum value-based CO-RE relocations
libbpf: Fix detection of BPF helper call instruction
libbpf: Fix libbpf build on compilers missing __builtin_mul_overflow
libbpf: Add perf_buffer APIs for better integration with outside epoll
loop
Tobias Klauser (1):
bpf: Fix two typos in uapi/linux/bpf.h
Toke Høiland-Jørgensen (1):
libbpf: Fix map index used in error message
Xu Wang (2):
libbpf: Convert comma to semicolon
libbpf: Simplify the return expression of build_map_pin_path()
Yonghong Song (1):
bpf: Implement link_query for bpf iterators
include/uapi/linux/bpf.h | 17 +-
src/bpf.c | 3 -
src/bpf_core_read.h | 120 +++-
src/bpf_prog_linfo.c | 3 -
src/bpf_tracing.h | 4 +-
src/btf.c | 31 +-
src/btf.h | 38 --
src/btf_dump.c | 9 +-
src/hashmap.c | 3 +
src/libbpf.c | 1177 ++++++++++++++++++++++++++++----------
src/libbpf.h | 4 +
src/libbpf.map | 8 +
src/libbpf_internal.h | 138 ++++-
src/libbpf_probes.c | 3 -
src/netlink.c | 128 +----
src/nlattr.c | 9 +-
src/ringbuf.c | 8 +-
src/xsk.c | 3 -
18 files changed, 1149 insertions(+), 557 deletions(-)
--
2.24.1
2020-08-21 18:22:15 -07:00
Andrii Nakryiko
93959e4e43
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: bfdd5aaa54b0a44d9df550fe4c9db7e1470a11b8
Checkpoint bpf-next commit: 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
Baseline bpf commit: 929e54a989680c6f134b02293732030b897475dc
Checkpoint bpf commit: 3fb1a96a91120877488071a167d26d76be4be977
Andrii Nakryiko (4):
libbpf: Fix BTF-defined map-in-map initialization on 32-bit host
arches
libbpf: Handle BTF pointer sizes more carefully
libbpf: Enforce 64-bitness of BTF for BPF object files
libbpf: Fix build on ppc64le architecture
Jean-Philippe Brucker (1):
libbpf: Handle GCC built-in types for Arm NEON
Toke Høiland-Jørgensen (1):
libbpf: Prevent overriding errno when logging errors
Yonghong Song (1):
libbpf: Do not use __builtin_offsetof for offsetof
src/bpf_helpers.h | 2 +-
src/btf.c | 83 +++++++++++++++++++++++++++++++++++++++++++++--
src/btf.h | 2 ++
src/btf_dump.c | 39 ++++++++++++++++++++--
src/libbpf.c | 32 +++++++++++-------
src/libbpf.map | 2 ++
6 files changed, 143 insertions(+), 17 deletions(-)
--
2.24.1
2020-08-18 11:37:43 -07:00
Andrii Nakryiko
80453d4b2d
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 3c4f850e8441ac8b3b6dbaa6107604c4199ef01f
Checkpoint bpf-next commit: bfdd5aaa54b0a44d9df550fe4c9db7e1470a11b8
Baseline bpf commit: 5b801dfb7feb2738975d80223efc2fc193e55573
Checkpoint bpf commit: 929e54a989680c6f134b02293732030b897475dc
Andrii Nakryiko (3):
libbpf: Make destructors more robust by handling ERR_PTR(err) cases
libbpf: Add bpf_link detach APIs
libbpf: Add btf__parse_raw() and generic btf__parse() APIs
Daniel T. Lee (1):
libbf: Fix uninitialized pointer at btf__parse_raw()
Jerry Crunchtime (1):
libbpf: Fix register in PT_REGS MIPS macros
Yonghong Song (1):
tools/bpf: Support new uapi for map element bpf iterator
include/uapi/linux/bpf.h | 20 ++++---
src/bpf.c | 13 +++++
src/bpf.h | 7 ++-
src/bpf_tracing.h | 4 +-
src/btf.c | 118 ++++++++++++++++++++++++++-------------
src/btf.h | 5 +-
src/btf_dump.c | 2 +-
src/libbpf.c | 20 ++++---
src/libbpf.h | 6 +-
src/libbpf.map | 4 ++
10 files changed, 137 insertions(+), 62 deletions(-)
--
2.24.1
2020-08-07 16:37:09 -07:00
Andrii Nakryiko
ab01213b35
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 5c3320d7fece4612d4a413aa3c8e82cdb5b49fcb
Checkpoint bpf-next commit: 9a97c9d2af5ca798377342debf7f0f44281d050e
Baseline bpf commit: b2f9f1535bb93ee5fa2ea30ac1c26fa0d676154c
Checkpoint bpf commit: 5b801dfb7feb2738975d80223efc2fc193e55573
Andrii Nakryiko (3):
libbpf: Support stripping modifiers for btf_dump
tools/bpftool: Strip away modifiers from global variables
libbpf: Add support for BPF XDP link
Ciara Loftus (1):
xsk: Add new statistics
Horatiu Vultur (1):
net: bridge: Add port attribute IFLA_BRPORT_MRP_IN_OPEN
Ian Rogers (1):
libbpf bpf_helpers: Use __builtin_offsetof for offsetof
Jakub Sitnicki (2):
bpf: Sync linux/bpf.h to tools/
libbpf: Add support for SK_LOOKUP program type
Lorenzo Bianconi (3):
cpumap: Formalize map value as a named struct
bpf: cpumap: Add the possibility to attach an eBPF program to cpumap
libbpf: Add SEC name for xdp programs attached to CPUMAP
Quentin Monnet (1):
bpf: Fix formatting in documentation for BPF helpers
Randy Dunlap (1):
bpf: Drop duplicated words in uapi helper comments
Song Liu (1):
libbpf: Print hint when PERF_EVENT_IOC_SET_BPF returns -EPROTO
Yonghong Song (2):
bpf: Implement bpf iterator for map elements
tools/libbpf: Add support for bpf map element iterator
include/uapi/linux/bpf.h | 155 +++++++++++++++++++++++++++++------
include/uapi/linux/if_link.h | 1 +
include/uapi/linux/if_xdp.h | 5 +-
src/bpf.c | 1 +
src/bpf.h | 3 +-
src/bpf_helpers.h | 2 +-
src/btf.h | 4 +-
src/btf_dump.c | 10 ++-
src/libbpf.c | 27 +++++-
src/libbpf.h | 7 +-
src/libbpf.map | 3 +
src/libbpf_probes.c | 3 +
12 files changed, 188 insertions(+), 33 deletions(-)
--
2.24.1
2020-07-28 14:03:17 -07:00
Andrii Nakryiko
8b5e81a17a
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 2977282b63c3b6f112145ecf0bcefff0c65bd3ac
Checkpoint bpf-next commit: 2977282b63c3b6f112145ecf0bcefff0c65bd3ac
Baseline bpf commit: 0f57a1e522f413e87852e632f55de4723e511939
Checkpoint bpf commit: b2f9f1535bb93ee5fa2ea30ac1c26fa0d676154c
Jakub Bogusz (1):
libbpf: Fix libbpf hashmap on (I)LP32 architectures
src/hashmap.h | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
--
2.24.1
2020-07-09 22:00:15 -07:00
Andrii Nakryiko
e47ebc895d
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 6b207d66aa9fad0deed13d5f824e1ea193b0a777
Checkpoint bpf-next commit: 2977282b63c3b6f112145ecf0bcefff0c65bd3ac
Baseline bpf commit: e708e2bd55c921f5bb554fa5837d132a878951cf
Checkpoint bpf commit: 0f57a1e522f413e87852e632f55de4723e511939
Andrii Nakryiko (4):
libbpf: Make BTF finalization strict
libbpf: Add btf__set_fd() for more control over loaded BTF FD
libbpf: Improve BTF sanitization handling
libbpf: Handle missing BPF_OBJ_GET_INFO_BY_FD gracefully in
perf_buffer
Stanislav Fomichev (1):
libbpf: Add support for BPF_CGROUP_INET_SOCK_RELEASE
include/uapi/linux/bpf.h | 1 +
src/btf.c | 7 +-
src/btf.h | 1 +
src/libbpf.c | 154 ++++++++++++++++++++++-----------------
src/libbpf.map | 1 +
5 files changed, 95 insertions(+), 69 deletions(-)
--
2.24.1
2020-07-08 17:12:53 -07:00
Andrii Nakryiko
7b9d71b21d
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: ca4db6389d611eee2eb7c1dfe710b62d8ea06772
Checkpoint bpf-next commit: 6b207d66aa9fad0deed13d5f824e1ea193b0a777
Baseline bpf commit: 2bdeb3ed547d8822b2566797afa6c2584abdb119
Checkpoint bpf commit: e708e2bd55c921f5bb554fa5837d132a878951cf
Andrii Nakryiko (1):
libbpf: Make bpf_endian co-exist with vmlinux.h
Song Liu (1):
bpf: Introduce helper bpf_get_task_stack()
include/uapi/linux/bpf.h | 37 +++++++++++++++++++++++++++++++++-
src/bpf_endian.h | 43 ++++++++++++++++++++++++++++++++--------
2 files changed, 71 insertions(+), 9 deletions(-)
--
2.24.1
2020-07-01 14:36:55 -07:00
Andrii Nakryiko
803243cc33
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: b3eece09e2e69f528a1ab6104861550dec149083
Checkpoint bpf-next commit: afa12644c877d3f627281bb6493d7ca8f9976e3d
Baseline bpf commit: 4e15507fea70c0c312d79610efa46b6853ccf8e0
Checkpoint bpf commit: 2bdeb3ed547d8822b2566797afa6c2584abdb119
Andrii Nakryiko (4):
bpf: Switch most helper return values from 32-bit int to 64-bit long
libbpf: Prevent loading vmlinux BTF twice
libbpf: Support disabling auto-loading BPF programs
libbpf: Fix CO-RE relocs against .text section
Colin Ian King (1):
libbpf: Fix spelling mistake "kallasyms" -> "kallsyms"
Dmitry Yakunin (1):
bpf: Add SO_KEEPALIVE and related options to bpf_setsockopt
Jesper Dangaard Brouer (1):
libbpf: Adjust SEC short cut for expected attach type BPF_XDP_DEVMAP
Quentin Monnet (1):
bpf: Fix formatting in documentation for BPF helpers
Yonghong Song (3):
bpf: Add bpf_skc_to_tcp6_sock() helper
bpf: Add bpf_skc_to_{tcp, tcp_timewait, tcp_request}_sock() helpers
bpf: Add bpf_skc_to_udp6_sock() helper
include/uapi/linux/bpf.h | 277 ++++++++++++++++++++++-----------------
src/libbpf.c | 93 +++++++++----
src/libbpf.h | 2 +
src/libbpf.map | 2 +
4 files changed, 233 insertions(+), 141 deletions(-)
--
2.24.1
2020-06-29 13:46:33 -07:00
Andrii Nakryiko
d7b2934cf9
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 69119673bd50b176ded34032fadd41530fb5af21
Checkpoint bpf-next commit: 4e15507fea70c0c312d79610efa46b6853ccf8e0
Baseline bpf commit: 6903cdae9f9f08d61e49c16cbef11c293e33a615
Checkpoint bpf commit: 4e15507fea70c0c312d79610efa46b6853ccf8e0
Andrii Nakryiko (1):
libbpf: Forward-declare bpf_stats_type for systems with outdated UAPI
headers
src/bpf.h | 2 ++
1 file changed, 2 insertions(+)
--
2.24.1
2020-06-22 15:43:44 -07:00
Andrii Nakryiko
d6ae406429
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: cb8e59cc87201af93dfbb6c3dccc8fcad72a09c2
Checkpoint bpf-next commit: 69119673bd50b176ded34032fadd41530fb5af21
Baseline bpf commit: 47f6bc4ce1ff70d7ba0924c2f1c218c96cd585fb
Checkpoint bpf commit: 6903cdae9f9f08d61e49c16cbef11c293e33a615
Andrii Nakryiko (2):
libbpf: Support pre-initializing .bss global variables
bpf: Fix definition of bpf_ringbuf_output() helper in UAPI comments
include/uapi/linux/bpf.h | 2 +-
src/libbpf.c | 4 ----
2 files changed, 1 insertion(+), 5 deletions(-)
--
2.24.1
2020-06-17 11:48:22 -07:00
Andrii Nakryiko
a975d8ea28
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 9bc499befeef07a4d79f4924bfca05634ad8fc97
Checkpoint bpf-next commit: cb8e59cc87201af93dfbb6c3dccc8fcad72a09c2
Baseline bpf commit: bdc48fa11e46f867ea4d75fa59ee87a7f48be144
Checkpoint bpf commit: 47f6bc4ce1ff70d7ba0924c2f1c218c96cd585fb
Andrii Nakryiko (1):
libbpf: Handle GCC noreturn-turned-volatile quirk
Arnaldo Carvalho de Melo (1):
libbpf: Define __WORDSIZE if not available
Jesper Dangaard Brouer (1):
bpf: Selftests and tools use struct bpf_devmap_val from uapi
include/uapi/linux/bpf.h | 13 +++++++++++++
src/btf_dump.c | 33 ++++++++++++++++++++++++---------
src/hashmap.h | 7 +++----
3 files changed, 40 insertions(+), 13 deletions(-)
--
2.24.1
2020-06-10 13:58:45 -07:00
Andrii Nakryiko
2fdbf42f98
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: dda18a5c0b75461d1ed228f80b59c67434b8d601
Checkpoint bpf-next commit: 9a25c1df24a6fea9dc79eec950453c4e00f707fd
Baseline bpf commit: f85c1598ddfe83f61d0656bd1d2025fa3b148b99
Checkpoint bpf commit: bdc48fa11e46f867ea4d75fa59ee87a7f48be144
Alexei Starovoitov (1):
tools/bpf: sync bpf.h
Andrii Nakryiko (3):
bpf: Implement BPF ring buffer and verifier support for it
libbpf: Add BPF ring buffer support
libbpf: Add _GNU_SOURCE for reallocarray to ringbuf.c
David Ahern (3):
bpf: Add support to attach bpf program to a devmap entry
xdp: Add xdp_txq_info to xdp_buff
libbpf: Add SEC name for xdp programs attached to device map
Eelco Chaudron (2):
libbpf: Add API to consume the perf ring buffer content
libbpf: Fix perf_buffer__free() API for sparse allocs
Jakub Sitnicki (2):
bpf: Add link-based BPF program attachment to network namespace
libbpf: Add support for bpf_link-based netns attachment
John Fastabend (1):
bpf, sk_msg: Add get socket storage helpers
include/uapi/linux/bpf.h | 95 ++++++++++++-
src/libbpf.c | 49 ++++++-
src/libbpf.h | 24 ++++
src/libbpf.map | 7 +
src/libbpf_probes.c | 5 +
src/ringbuf.c | 288 +++++++++++++++++++++++++++++++++++++++
6 files changed, 461 insertions(+), 7 deletions(-)
create mode 100644 src/ringbuf.c
--
2.24.1
2020-06-01 22:22:32 -07:00
Andrii Nakryiko
90941cde5f
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: c321022244708aec4675de4f032ef1ba9ff0c640
Checkpoint bpf-next commit: dda18a5c0b75461d1ed228f80b59c67434b8d601
Baseline bpf commit: 7f645462ca01d01abb94d75e6768c8b3ed3a188b
Checkpoint bpf commit: f85c1598ddfe83f61d0656bd1d2025fa3b148b99
Alexei Starovoitov (1):
tools/bpf: sync bpf.h
Andrey Ignatov (2):
bpf: Support narrow loads from bpf_sock_addr.user_port
bpf: Introduce bpf_sk_{, ancestor_}cgroup_id helpers
Daniel Borkmann (2):
bpf: Add get{peer, sock}name attach types for sock_addr
bpf, libbpf: Enable get{peer, sock}name attach types
Eelco Chaudron (1):
libbpf: Fix probe code to return EPERM if encountered
Gustavo A. R. Silva (1):
bpf, libbpf: Replace zero-length array with flexible-array
Horatiu Vultur (1):
net: bridge: Add port attribute IFLA_BRPORT_MRP_RING_OPEN
Ian Rogers (2):
libbpf, hashmap: Remove unused #include
libbpf, hashmap: Fix signedness warnings
Quentin Monnet (1):
tools, bpf: Synchronise BPF UAPI header with tools
Song Liu (2):
bpf: Sharing bpf runtime stats with BPF_ENABLE_STATS
libbpf: Add support for command BPF_ENABLE_STATS
Stanislav Fomichev (2):
bpf: Bpf_{g,s}etsockopt for struct bpf_sock_addr
bpf: Allow any port in bpf_bind helper
Sumanth Korikkar (1):
libbpf: Fix register naming in PT_REGS s390 macros
Yonghong Song (7):
bpf: Allow loading of a bpf_iter program
bpf: Support bpf tracing/iter programs for BPF_LINK_CREATE
bpf: Create anonymous bpf iterator
bpf: Add bpf_seq_printf and bpf_seq_write helpers
tools/libbpf: Add bpf_iter support
tools/libpf: Add offsetof/container_of macro in bpf_helpers.h
bpf: Change btf_iter func proto prefix to "bpf_iter_"
include/uapi/linux/bpf.h | 208 +++++++++++++++++++++++++++--------
include/uapi/linux/if_link.h | 1 +
src/bpf.c | 20 ++++
src/bpf.h | 3 +
src/bpf_helpers.h | 14 +++
src/bpf_tracing.h | 20 +++-
src/hashmap.c | 5 +-
src/hashmap.h | 1 -
src/libbpf.c | 98 +++++++++++++++--
src/libbpf.h | 9 ++
src/libbpf.map | 3 +
src/libbpf_internal.h | 2 +-
12 files changed, 322 insertions(+), 62 deletions(-)
--
2.24.1
2020-05-20 01:00:06 -07:00
Andrii Nakryiko
bd9e2feb2a
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 2fcd80144b93ff90836a44f2054b4d82133d3a85
Checkpoint bpf-next commit: c321022244708aec4675de4f032ef1ba9ff0c640
Baseline bpf commit: edadedf1c5b4e4404192a0a4c3c0c05e3b7672ab
Checkpoint bpf commit: 7f645462ca01d01abb94d75e6768c8b3ed3a188b
Andrii Nakryiko (8):
bpf: Add support for BPF_OBJ_GET_INFO_BY_FD for bpf_link
libbpf: Add low-level APIs for new bpf_link commands
libbpf: Refactor BTF-defined map definition parsing logic
libbpf: Refactor map creation logic and fix cleanup leak
libbpf: Add BTF-defined map-in-map support
libbpf: Fix memory leak and possible double-free in hashmap__clear
libbpf: Fix huge memory leak in libbpf_find_vmlinux_btf_id()
libbpf: Fix false uninitialized variable warning
David Ahern (1):
libbpf: Only check mode flags in get_xdp_id
Jakub Wilk (1):
bpf: Fix reStructuredText markup
Maciej Żenczykowski (1):
bpf: add bpf_ktime_get_boot_ns()
Mao Wenan (1):
libbpf: Return err if bpf_object__load failed
Yoshiki Komachi (1):
bpf_helpers.h: Add note for building with vmlinux.h or linux/types.h
Zou Wei (1):
libbpf: Remove unneeded semicolon in btf_dump_emit_type
include/uapi/linux/bpf.h | 46 ++-
src/bpf.c | 19 +-
src/bpf.h | 4 +-
src/bpf_helpers.h | 7 +
src/btf_dump.c | 2 +-
src/hashmap.c | 7 +
src/libbpf.c | 705 +++++++++++++++++++++++++++------------
src/libbpf.map | 6 +
src/netlink.c | 2 +
9 files changed, 572 insertions(+), 226 deletions(-)
--
2.24.1
2020-05-01 18:58:47 -07:00
Andrii Nakryiko
e66d297441
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 1a323ea5356edbb3073dc59d51b9e6b86908857d
Checkpoint bpf-next commit: 2fcd80144b93ff90836a44f2054b4d82133d3a85
Baseline bpf commit: 94b18a87efdd1626a1e6aef87271af4a7c616d36
Checkpoint bpf commit: edadedf1c5b4e4404192a0a4c3c0c05e3b7672ab
Andrey Ignatov (1):
libbpf: Fix bpf_get_link_xdp_id flags handling
Andrii Nakryiko (1):
libbpf: Always specify expected_attach_type on program load if
supported
Jeremy Cline (1):
libbpf: Initialize *nl_pid so gcc 10 is happy
Toke Høiland-Jørgensen (1):
libbpf: Fix type of old_fd in bpf_xdp_set_link_opts
src/libbpf.c | 126 ++++++++++++++++++++++++++++++++------------------
src/libbpf.h | 2 +-
src/netlink.c | 6 +--
3 files changed, 86 insertions(+), 48 deletions(-)
--
2.24.1
2020-04-17 15:31:03 -07:00
Andrii Nakryiko
e53dd1c436
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 9b79c0be350d3825ef26ed9eebac6ae50df506bc
Checkpoint bpf-next commit: 483d7a30f538e2f8addd32aa9a3d2e94ae55fa65
Baseline bpf commit: 90db6d772f749e38171d04619a5e3cd8804a6d02
Checkpoint bpf commit: 94b18a87efdd1626a1e6aef87271af4a7c616d36
Andrii Nakryiko (2):
libbpf: Ignore incompatible types with matching name during CO-RE
relocation
libbpf: Provide CO-RE variants of PT_REGS macros
Wenbo Zhang (1):
bpf, libbpf: Fix ___bpf_kretprobe_args1(x) macro definition
src/bpf_tracing.h | 105 +++++++++++++++++++++++++++++++++++++++++++++-
src/libbpf.c | 4 ++
2 files changed, 108 insertions(+), 1 deletion(-)
--
2.17.1
2020-03-17 14:56:36 -07:00
Andrii Nakryiko
cd87f1568e
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: abbc61a5f26d52a5d3abbbe552b275360b2c6631
Checkpoint bpf-next commit: 9b79c0be350d3825ef26ed9eebac6ae50df506bc
Baseline bpf commit: 542bf38f11d11bf98c69b2f83f3519ada8a76e95
Checkpoint bpf commit: 90db6d772f749e38171d04619a5e3cd8804a6d02
Andrii Nakryiko (4):
libbpf: Fix handling of optional field_name in
btf_dump__emit_type_decl
bpf: Switch BPF UAPI #define constants used from BPF program side to
enums
libbpf: Assume unsigned values for BTF_KIND_ENUM
libbpf: Split BTF presence checks into libbpf- and kernel-specific
parts
Carlos Neira (1):
bpf: Added new helper bpf_get_ns_current_pid_tgid
Eelco Chaudron (1):
bpf: Add bpf_xdp_output() helper
KP Singh (2):
bpf: Introduce BPF_MODIFY_RETURN
tools/libbpf: Add support for BPF_MODIFY_RETURN
Willem de Bruijn (1):
bpf: Sync uapi bpf.h to tools/
include/uapi/linux/bpf.h | 223 +++++++++++++++++++++++++++------------
src/btf_dump.c | 10 +-
src/libbpf.c | 21 +++-
3 files changed, 176 insertions(+), 78 deletions(-)
--
2.17.1
2020-03-12 22:57:51 -07:00
Andrii Nakryiko
7e7a15321e
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 503d539a6e417b018616bf3060e0b5814fafce47
Checkpoint bpf-next commit: abbc61a5f26d52a5d3abbbe552b275360b2c6631
Baseline bpf commit: 41f57cfde186dba6e357f9db25eafbed017e4487
Checkpoint bpf commit: 542bf38f11d11bf98c69b2f83f3519ada8a76e95
Andrii Nakryiko (3):
libbpf: Fix use of PT_REGS_PARM macros with vmlinux.h
libbpf: Merge selftests' bpf_trace_helpers.h into libbpf's
bpf_tracing.h
libbpf: Add bpf_link pinning/unpinning
src/bpf_tracing.h | 120 +++++++++++++++++++++++++++++++++++++++++-
src/libbpf.c | 131 ++++++++++++++++++++++++++++++++++++----------
src/libbpf.h | 5 ++
src/libbpf.map | 5 ++
4 files changed, 233 insertions(+), 28 deletions(-)
--
2.17.1
2020-03-03 00:05:56 -08:00
Andrii Nakryiko
e287979374
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 35b9211c0a2427e8f39e534f442f43804fc8d5ca
Checkpoint bpf-next commit: 5327644614a18f5d0ff845844a4e9976210b3d8d
Baseline bpf commit: 08dc225d8868d5094ada62f471ebdfcce9dbc298
Checkpoint bpf commit: 41f57cfde186dba6e357f9db25eafbed017e4487
Andrii Nakryiko (1):
libbpf: Relax check whether BTF is mandatory
Daniel Xu (1):
selftests/bpf: Add bpf_read_branch_records() selftest
Toke Høiland-Jørgensen (2):
bpf, uapi: Remove text about bpf_redirect_map() giving higher
performance
libbpf: Sanitise internal map names so they are not rejected by the
kernel
include/uapi/linux/bpf.h | 41 ++++++++++++++++++++++++++++++----------
src/libbpf.c | 12 ++++++++----
2 files changed, 39 insertions(+), 14 deletions(-)
--
2.17.1
2020-02-20 17:56:42 -08:00
Andrii Nakryiko
e5dbc1a96f
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: a6ed02cac690b635dbb938690e795812ce1e14ca
Checkpoint bpf-next commit: 35b9211c0a2427e8f39e534f442f43804fc8d5ca
Baseline bpf commit: 1712b2fff8c682d145c7889d2290696647d82dab
Checkpoint bpf commit: 08dc225d8868d5094ada62f471ebdfcce9dbc298
Alexei Starovoitov (1):
libbpf: Add support for program extensions
Andrii Nakryiko (2):
libbpf: Improve handling of failed CO-RE relocations
libbpf: Fix realloc usage in bpf_core_find_cands
Antoine Tenart (1):
net: macsec: introduce the macsec_context structure
Martin KaFai Lau (1):
bpf: Sync uapi bpf.h to tools/
include/uapi/linux/bpf.h | 10 +++-
include/uapi/linux/if_link.h | 7 +++
src/bpf.c | 3 +-
src/libbpf.c | 112 +++++++++++++++++++++--------------
src/libbpf.h | 8 ++-
src/libbpf.map | 2 +
src/libbpf_probes.c | 1 +
7 files changed, 97 insertions(+), 46 deletions(-)
--
2.17.1
2020-01-24 14:08:27 -08:00
Andrii Nakryiko
080fd68e9c
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 1d1a3bcffe360a56fd8cc287ed74d4c3066daf42
Checkpoint bpf-next commit: 858e284f0ec18bff2620d9a6afe764dc683f8ba1
Baseline bpf commit: e7a5f1f1cd0008e5ad379270a8657e121eedb669
Checkpoint bpf commit: 1712b2fff8c682d145c7889d2290696647d82dab
Andrii Nakryiko (2):
tools: Sync uapi/linux/if_link.h
libbpf: Support .text sub-calls relocations
Brian Vazquez (1):
libbpf: Fix unneeded extra initialization in bpf_map_batch_common
Martin KaFai Lau (1):
libbpf: Expose bpf_find_kernel_btf as a LIBBPF_API
Yonghong Song (3):
bpf: Add bpf_send_signal_thread() helper
tools/bpf: Sync uapi header bpf.h
libbpf: Add libbpf support to batch ops
include/uapi/linux/bpf.h | 40 +++++++++++-
include/uapi/linux/if_link.h | 1 +
src/bpf.c | 58 +++++++++++++++++
src/bpf.h | 22 +++++++
src/btf.c | 102 +++++++++++++++++++++++++++--
src/btf.h | 2 +
src/libbpf.c | 122 +++++++----------------------------
src/libbpf.map | 5 ++
8 files changed, 247 insertions(+), 105 deletions(-)
--
2.17.1
2020-01-16 10:38:48 -08:00
Andrii Nakryiko
8687395198
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 2bbc078f812d45b8decb55935dab21199bd21489
Checkpoint bpf-next commit: 1d1a3bcffe360a56fd8cc287ed74d4c3066daf42
Baseline bpf commit: 3c2f450e553ce47fcb0d6141807a8858e3213c9c
Checkpoint bpf commit: e7a5f1f1cd0008e5ad379270a8657e121eedb669
Alexei Starovoitov (1):
libbpf: Sanitize global functions
Andrey Ignatov (1):
bpf: Document BPF_F_QUERY_EFFECTIVE flag
Andrii Nakryiko (3):
libbpf: Make bpf_map order and indices stable
selftests/bpf: Ensure bpf_helper_defs.h are taken from selftests dir
libbpf: Poison kernel-only integer types
Martin KaFai Lau (2):
bpf: Synch uapi bpf.h to tools/
bpf: libbpf: Add STRUCT_OPS support
Michal Rostecki (1):
libbpf: Add probe for large INSN limit
include/uapi/linux/bpf.h | 26 +-
include/uapi/linux/btf.h | 6 +
src/bpf.c | 13 +-
src/bpf.h | 5 +-
src/bpf_helpers.h | 2 +-
src/bpf_prog_linfo.c | 3 +
src/btf.c | 3 +
src/btf_dump.c | 3 +
src/hashmap.c | 3 +
src/libbpf.c | 701 +++++++++++++++++++++++++++++++++++++--
src/libbpf.h | 6 +-
src/libbpf.map | 4 +
src/libbpf_errno.c | 3 +
src/libbpf_probes.c | 26 ++
src/netlink.c | 3 +
src/nlattr.c | 3 +
src/str_error.c | 3 +
src/xsk.c | 3 +
18 files changed, 784 insertions(+), 32 deletions(-)
--
2.17.1
2020-01-10 11:15:12 -08:00
Andrii Nakryiko
5033d7177e
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 7745ff9842617323adbe24e71c495d5ebd9aa352
Checkpoint bpf-next commit: 2bbc078f812d45b8decb55935dab21199bd21489
Baseline bpf commit: 1148f9adbe71415836a18a36c1b4ece999ab0973
Checkpoint bpf commit: 3c2f450e553ce47fcb0d6141807a8858e3213c9c
Andrey Ignatov (2):
bpf: Support replacing cgroup-bpf program in MULTI mode
libbpf: Introduce bpf_prog_attach_xattr
Andrii Nakryiko (1):
libbpf: Support CO-RE relocations for LDX/ST/STX instructions
include/uapi/linux/bpf.h | 10 ++++++++++
src/bpf.c | 17 ++++++++++++++++-
src/bpf.h | 11 +++++++++++
src/libbpf.c | 31 ++++++++++++++++++++++++++++---
src/libbpf.map | 1 +
5 files changed, 66 insertions(+), 4 deletions(-)
--
2.17.1
2019-12-30 12:05:19 -08:00
Andrii Nakryiko
7c5583ab2d
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 679152d3a32e305c213f83160c328c37566ae8bc
Checkpoint bpf-next commit: 7745ff9842617323adbe24e71c495d5ebd9aa352
Baseline bpf commit: fe3300897cbfd76c6cb825776e5ac0ca50a91ca4
Checkpoint bpf commit: 1148f9adbe71415836a18a36c1b4ece999ab0973
Andrii Nakryiko (26):
libbpf: Extract and generalize CPU mask parsing logic
libbpf: Don't attach perf_buffer to offline/missing CPUs
libbpf: Don't require root for bpf_object__open()
libbpf: Add generic bpf_program__attach()
libbpf: Move non-public APIs from libbpf.h to libbpf_internal.h
libbpf: Add BPF_EMBED_OBJ macro for embedding BPF .o files
libbpf: Extract common user-facing helpers
libbpf: Expose btf__align_of() API
libbpf: Expose BTF-to-C type declaration emitting API
libbpf: Expose BPF program's function name
libbpf: Refactor global data map initialization
libbpf: Postpone BTF ID finding for TRACING programs to load phase
libbpf: Reduce log level of supported section names dump
libbpf: Add BPF object skeleton support
libbpf: Extract internal map names into constants
libbpf: Support libbpf-provided extern variables
bpftool: Generate externs datasec in BPF skeleton
libbpf: Support flexible arrays in CO-RE
libbpf: Add zlib as a dependency in pkg-config template
libbpf: Reduce log level for custom section names
libbpf: Remove BPF_EMBED_OBJ macro from libbpf.h
libbpf: Add bpf_link__disconnect() API to preserve underlying BPF
resource
libbpf: Put Kconfig externs into .kconfig section
libbpf: Allow to augment system Kconfig through extra optional config
libbpf: BTF is required when externs are present
libbpf: Fix another __u64 printf warning
Jakub Sitnicki (1):
libbpf: Recognize SK_REUSEPORT programs from section name
Prashant Bhole (1):
libbpf: Fix build by renaming variables
Toke Høiland-Jørgensen (4):
libbpf: Print hint about ulimit when getting permission denied error
libbpf: Fix libbpf_common.h when installing libbpf through 'make
install'
libbpf: Add missing newline in opts validation macro
libbpf: Fix printing of ulimit value
include/uapi/linux/btf.h | 7 +-
src/bpf.h | 6 +-
src/bpf_helpers.h | 11 +
src/btf.c | 48 +-
src/btf.h | 29 +-
src/btf_dump.c | 115 ++-
src/libbpf.c | 1673 ++++++++++++++++++++++++++++++++------
src/libbpf.h | 107 +--
src/libbpf.map | 12 +
src/libbpf.pc.template | 2 +-
src/libbpf_common.h | 40 +
src/libbpf_internal.h | 21 +-
12 files changed, 1678 insertions(+), 393 deletions(-)
create mode 100644 src/libbpf_common.h
--
2.17.1
2019-12-19 15:34:27 -08:00
Andrii Nakryiko
c2fc7c15a3
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: e7096c131e5161fa3b8e52a650d7719d2857adfd
Checkpoint bpf-next commit: 679152d3a32e305c213f83160c328c37566ae8bc
Baseline bpf commit: e42617b825f8073569da76dc4510bfa019b1c35a
Checkpoint bpf commit: fe3300897cbfd76c6cb825776e5ac0ca50a91ca4
Andrii Nakryiko (2):
libbpf: Bump libpf current version to v0.0.7
libbpf: Fix printf compilation warnings on ppc64le arch
src/libbpf.c | 37 +++++++++++++++++++------------------
src/libbpf.map | 3 +++
2 files changed, 22 insertions(+), 18 deletions(-)
--
2.17.1
2019-12-12 14:40:26 -08:00
Andrii Nakryiko
ab067ed371
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: b615e5a1e067dcb327482d1af7463268b89b1629
Checkpoint bpf-next commit: e7096c131e5161fa3b8e52a650d7719d2857adfd
Baseline bpf commit: 34e59836565e36fade1464e054a3551c1a0364be
Checkpoint bpf commit: e42617b825f8073569da76dc4510bfa019b1c35a
Alexei Starovoitov (2):
libbpf: Fix sym->st_value print on 32-bit arches
selftests/bpf: Add test for BPF trampoline
Andrii Nakryiko (1):
libbpf: Fix global variable relocation
Martin KaFai Lau (1):
bpf: Introduce BPF_TRACE_x helper for the tracing tests
src/libbpf.c | 45 ++++++++++++++++++++-------------------------
1 file changed, 20 insertions(+), 25 deletions(-)
--
2.17.1
2019-12-09 09:44:20 -08:00
Andrii Nakryiko
9f519af7f4
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: e47a179997ceee6864fbae620eee09ea9c345a4d
Checkpoint bpf-next commit: b615e5a1e067dcb327482d1af7463268b89b1629
Baseline bpf commit: d0fbb51dfaa612f960519b798387be436e8f83c5
Checkpoint bpf commit: 34e59836565e36fade1464e054a3551c1a0364be
Alexei Starovoitov (4):
libbpf: Introduce btf__find_by_name_kind()
libbpf: Add support to attach to fentry/fexit tracing progs
selftests/bpf: Add test for BPF trampoline
libbpf: Add support for attaching BPF programs to other BPF programs
Andrii Nakryiko (8):
bpf: Add mmap() support for BPF_MAP_TYPE_ARRAY
libbpf: Make global data internal arrays mmap()-able, if possible
libbpf: Fix call relocation offset calculation bug
libbpf: Refactor relocation handling
libbpf: Fix various errors and warning reported by checkpatch.pl
libbpf: Support initialized global variables
libbpf: Fix bpf_object name determination for bpf_object__open_file()
libbpf: Fix usage of u32 in userspace code
Luigi Rizzo (1):
net-af_xdp: Use correct number of channels from ethtool
Martin KaFai Lau (1):
bpf: Introduce BPF_TRACE_x helper for the tracing tests
include/uapi/linux/bpf.h | 6 +
src/bpf.c | 8 +-
src/bpf.h | 5 +-
src/btf.c | 22 ++
src/btf.h | 2 +
src/libbpf.c | 478 ++++++++++++++++++++++++++-------------
src/libbpf.h | 7 +-
src/libbpf.map | 3 +
src/xsk.c | 11 +-
9 files changed, 371 insertions(+), 171 deletions(-)
--
2.17.1
2019-11-25 16:55:44 -08:00
Andrii Nakryiko
c51c492a65
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: ed578021210e14f15a654c825fba6a700c9a39a7
Checkpoint bpf-next commit: e47a179997ceee6864fbae620eee09ea9c345a4d
Baseline bpf commit: 7de086909365cd60a5619a45af3f4152516fd75c
Checkpoint bpf commit: d0fbb51dfaa612f960519b798387be436e8f83c5
Andrii Nakryiko (6):
libbpf: Fix negative FD close() in xsk_setup_xdp_prog()
libbpf: Fix memory leak/double free issue
libbpf: Fix potential overflow issue
libbpf: Fix another potential overflow issue in bpf_prog_linfo
libbpf: Make btf__resolve_size logic always check size error condition
libbpf: Improve handling of corrupted ELF during map initialization
Magnus Karlsson (2):
libbpf: Support XDP_SHARED_UMEM with external XDP program
libbpf: Allow for creating Rx or Tx only AF_XDP sockets
Toke Høiland-Jørgensen (5):
libbpf: Unpin auto-pinned maps if loading fails
libbpf: Propagate EPERM to caller on program load
libbpf: Use pr_warn() when printing netlink errors
libbpf: Add bpf_get_link_xdp_info() function to get more XDP
information
libbpf: Add getter for program size
src/bpf.c | 2 +-
src/bpf_prog_linfo.c | 14 +++----
src/btf.c | 3 +-
src/libbpf.c | 47 ++++++++++++++----------
src/libbpf.h | 13 +++++++
src/libbpf.map | 2 +
src/netlink.c | 87 +++++++++++++++++++++++++++++---------------
src/nlattr.c | 10 ++---
src/xsk.c | 34 +++++++++++------
9 files changed, 136 insertions(+), 76 deletions(-)
--
2.17.1
2019-11-13 16:39:58 -08:00
Andrii Nakryiko
6d4abdda08
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: a566e35f1e8b4b3be1e96a804d1cca38b578167c
Checkpoint bpf-next commit: f23c7ce341c2dfd187d4e3712ba6c110969463a0
Baseline bpf commit: fc11078dd3514c65eabce166b8431a56d8a667cb
Checkpoint bpf commit: 7de086909365cd60a5619a45af3f4152516fd75c
Alexei Starovoitov (1):
libbpf: Add support for prog_tracing
Andrii Nakryiko (2):
libbpf: Add support for relocatable bitfields
libbpf: Add support for field size relocations
Daniel Borkmann (1):
bpf: Add probe_read_{user, kernel} and probe_read_{user, kernel}_str
helpers
Toke Høiland-Jørgensen (4):
libbpf: Fix error handling in bpf_map__reuse_fd()
libbpf: Store map pin path and status in struct bpf_map
libbpf: Move directory creation into _pin() functions
libbpf: Add auto-pinning of maps when loading BPF objects
include/uapi/linux/bpf.h | 124 ++++---
src/bpf.c | 8 +-
src/bpf.h | 5 +-
src/bpf_core_read.h | 79 +++++
src/bpf_helpers.h | 6 +
src/libbpf.c | 707 ++++++++++++++++++++++++++++++---------
src/libbpf.h | 23 +-
src/libbpf.map | 5 +
src/libbpf_internal.h | 4 +
src/libbpf_probes.c | 1 +
10 files changed, 749 insertions(+), 213 deletions(-)
--
2.17.1
2019-11-05 16:00:11 -08:00
Andrii Nakryiko
05346cfd90
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 3820729160440158a014add69cc0d371061a96b2
Checkpoint bpf-next commit: a566e35f1e8b4b3be1e96a804d1cca38b578167c
Baseline bpf commit: 2afd23f78f39da84937006ecd24aa664a4ab052b
Checkpoint bpf commit: fc11078dd3514c65eabce166b8431a56d8a667cb
Andrii Nakryiko (2):
libbpf: Fix off-by-one error in ELF sanity check
libbpf: Don't use kernel-side u32 type in xsk.c
Magnus Karlsson (1):
libbpf: Fix compatibility for kernels without need_wakeup
src/libbpf.c | 2 +-
src/xsk.c | 83 ++++++++++++++++++++++++++++++++++++++++++++--------
2 files changed, 72 insertions(+), 13 deletions(-)
--
2.17.1
2019-10-29 09:25:36 -07:00
Andrii Nakryiko
f02e248ae1
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 5e5b03d163e15a40b0fa57c70b4e8edd549b0b98
Checkpoint bpf-next commit: 3820729160440158a014add69cc0d371061a96b2
Baseline bpf commit: cd7455f1013ef96d5cbf5c05d2b7c06f273810a6
Checkpoint bpf commit: 2afd23f78f39da84937006ecd24aa664a4ab052b
Björn Töpel (1):
libbpf: Use implicit XSKMAP lookup from AF_XDP XDP program
KP Singh (1):
libbpf: Fix strncat bounds error in libbpf_prog_type_by_name
src/libbpf.c | 2 +-
src/xsk.c | 42 ++++++++++++++++++++++++++++++++----------
2 files changed, 33 insertions(+), 11 deletions(-)
--
2.17.1
2019-10-24 22:59:06 -07:00
Andrii Nakryiko
e441f55089
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: da927466a152a9497c05926a95c6aebba6d3ad5b
Checkpoint bpf-next commit: 5e5b03d163e15a40b0fa57c70b4e8edd549b0b98
Baseline bpf commit: 9e8acd9c44a0dd52b2922eeb82398c04e356c058
Checkpoint bpf commit: cd7455f1013ef96d5cbf5c05d2b7c06f273810a6
Alexei Starovoitov (3):
bpf: Add attach_btf_id attribute to program load
libbpf: Auto-detect btf_id of BTF-based raw_tracepoints
bpf: Check types of arguments passed into helpers
Andrii Nakryiko (5):
tools: Sync if_link.h
libbpf: Add bpf_program__get_{type, expected_attach_type) APIs
libbpf: Add uprobe/uretprobe and tp/raw_tp section suffixes
libbpf: Teach bpf_object__open to guess program types
libbpf: Make DECLARE_LIBBPF_OPTS macro strictly a variable declaration
John Fastabend (1):
bpf, libbpf: Add kernel version section parsing back
Kefeng Wang (1):
tools, bpf: Rename pr_warning to pr_warn to align with kernel logging
include/uapi/linux/bpf.h | 28 +-
include/uapi/linux/if_link.h | 2 +
src/bpf.c | 3 +
src/btf.c | 56 +--
src/btf_dump.c | 18 +-
src/libbpf.c | 830 +++++++++++++++++++----------------
src/libbpf.h | 24 +-
src/libbpf.map | 2 +
src/libbpf_internal.h | 8 +-
src/xsk.c | 4 +-
10 files changed, 539 insertions(+), 436 deletions(-)
--
2.17.1
2019-10-22 16:15:55 -07:00
Andrii Nakryiko
ade4409352
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: f05c2001ecc98629cecd47728e4db11e5a17e58d
Checkpoint bpf-next commit: da927466a152a9497c05926a95c6aebba6d3ad5b
Baseline bpf commit: 106c35dda32f8b63f88cad7433f1b8bb0056958a
Checkpoint bpf commit: 9e8acd9c44a0dd52b2922eeb82398c04e356c058
Andrii Nakryiko (7):
libbpf: Fix struct end padding in btf_dump
libbpf: Generate more efficient BPF_CORE_READ code
libbpf: Handle invalid typedef emitted by old GCC
libbpf: Update BTF reloc support to latest Clang format
libbpf: Refactor bpf_object__open APIs to use common opts
libbpf: Add support for field existance CO-RE relocation
libbpf: Add BPF-side definitions of supported field relocation kinds
Ilya Maximets (1):
libbpf: Fix passing uninitialized bytes to setsockopt
src/bpf_core_read.h | 28 ++++++-
src/btf.c | 16 ++--
src/btf.h | 4 +-
src/btf_dump.c | 19 ++++-
src/libbpf.c | 169 ++++++++++++++++++++++++++----------------
src/libbpf.h | 4 +-
src/libbpf_internal.h | 25 +++++--
src/xsk.c | 1 +
8 files changed, 180 insertions(+), 86 deletions(-)
--
2.17.1
2019-10-15 19:43:48 -07:00
Andrii Nakryiko
46688687d5
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 02dc96ef6c25f990452c114c59d75c368a1f4c8f
Checkpoint bpf-next commit: f05c2001ecc98629cecd47728e4db11e5a17e58d
Baseline bpf commit: 1bd63524593b964934a33afd442df16b8f90e2b5
Checkpoint bpf commit: 106c35dda32f8b63f88cad7433f1b8bb0056958a
Andrii Nakryiko (7):
libbpf: Bump current version to v0.0.6
libbpf: stop enforcing kern_version, populate it for users
libbpf: add bpf_object__open_{file, mem} w/ extensible opts
libbpf: fix bpf_object__name() to actually return object name
uapi/bpf: fix helper docs
libbpf: Move bpf_{helpers, helper_defs, endian, tracing}.h into libbpf
libbpf: Add BPF_CORE_READ/BPF_CORE_READ_INTO helpers
include/uapi/linux/bpf.h | 32 +++----
src/bpf_core_read.h | 167 +++++++++++++++++++++++++++++++++
src/bpf_endian.h | 72 +++++++++++++++
src/bpf_helpers.h | 41 ++++++++
src/bpf_tracing.h | 195 +++++++++++++++++++++++++++++++++++++++
src/libbpf.c | 183 ++++++++++++++++++------------------
src/libbpf.h | 48 +++++++++-
src/libbpf.map | 6 ++
src/libbpf_internal.h | 32 +++++++
9 files changed, 661 insertions(+), 115 deletions(-)
create mode 100644 src/bpf_core_read.h
create mode 100644 src/bpf_endian.h
create mode 100644 src/bpf_helpers.h
create mode 100644 src/bpf_tracing.h
--
2.17.1
2019-10-09 14:42:45 -07:00
Andrii Nakryiko
886e8149a0
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: b41dae061bbd722b9d7fa828f35d22035b218e18
Checkpoint bpf-next commit: 02dc96ef6c25f990452c114c59d75c368a1f4c8f
Baseline bpf commit: e3439af4a339acd7fddbd6d59b8ecefaac07a611
Checkpoint bpf commit: 1bd63524593b964934a33afd442df16b8f90e2b5
Yonghong Song (1):
libbpf: handle symbol versioning properly for libbpf.a
src/libbpf_internal.h | 16 ++++++++++++++++
src/xsk.c | 4 ++--
2 files changed, 18 insertions(+), 2 deletions(-)
--
2.17.1
2019-09-30 16:10:45 -07:00
Andrii Nakryiko
d2f307c7f6
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 0bb52b0dfc88a155688f492aba8e686147600278
Checkpoint bpf-next commit: b41dae061bbd722b9d7fa828f35d22035b218e18
Baseline bpf commit: 2c238177bd7f4b14bdf7447cc1cd9bb791f147e6
Checkpoint bpf commit: e3439af4a339acd7fddbd6d59b8ecefaac07a611
Alexei Starovoitov (1):
tools/bpf: sync bpf.h
Andrii Nakryiko (2):
libbpf: fix false uninitialized variable warning
libbpf: Teach btf_dumper to emit stand-alone anonymous enum
definitions
Daniel Borkmann (1):
bpf: sync bpf.h to tools infrastructure
Kevin Laatz (1):
libbpf: add flags to umem config
Toke Høiland-Jørgensen (1):
libbpf: Remove getsockopt() check for XDP_OPTIONS
include/uapi/linux/bpf.h | 7 ++-
include/uapi/linux/if_xdp.h | 9 ++++
src/btf_dump.c | 94 ++++++++++++++++++++++++++++++++++---
src/libbpf.map | 1 +
src/xsk.c | 44 +++++++++++------
src/xsk.h | 27 +++++++++++
6 files changed, 160 insertions(+), 22 deletions(-)
--
2.17.1
2019-09-26 13:29:16 -07:00
Yonghong Song
476e158b07
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: b753c5a7f99f390fc100de18647ce0dcacdceafc
Checkpoint bpf-next commit: 0bb52b0dfc88a155688f492aba8e686147600278
Baseline bpf commit: 91b4db5313a2c793aabc2143efb8ed0cf0fdd097
Checkpoint bpf commit: 2c238177bd7f4b14bdf7447cc1cd9bb791f147e6
Andrii Nakryiko (1):
libbpf: make libbpf.map source of truth for libbpf version
Ivan Khoronzhuk (1):
libbpf: use LFS (_FILE_OFFSET_BITS) instead of direct mmap2 syscall
Magnus Karlsson (1):
libbpf: add support for need_wakeup flag in AF_XDP part
Peter Wu (1):
bpf: sync bpf.h to tools/
Quentin Monnet (3):
tools: bpf: synchronise BPF UAPI header with tools
libbpf: refactor bpf_*_get_next_id() functions
libbpf: add bpf_btf_get_next_id() to cycle through BTF objects
Stanislav Fomichev (1):
bpf: sync bpf.h to tools/
include/uapi/linux/bpf.h | 12 ++++++---
include/uapi/linux/if_xdp.h | 13 +++++++++
src/bpf.c | 24 ++++++++---------
src/bpf.h | 1 +
src/libbpf.map | 5 ++++
src/xsk.c | 53 +++++++++++++------------------------
src/xsk.h | 6 +++++
7 files changed, 64 insertions(+), 50 deletions(-)
--
2.17.1
2019-08-27 13:58:15 -07:00
Andrii Nakryiko
c8a7eb06bd
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: b707659213d3c70f2c704ec950df6263b4bffe84
Checkpoint bpf-next commit: b753c5a7f99f390fc100de18647ce0dcacdceafc
Baseline bpf commit: f1fc7249dddc0e52d9e805e2e661caa118649509
Checkpoint bpf commit: 91b4db5313a2c793aabc2143efb8ed0cf0fdd097
Andrii Nakryiko (2):
libbpf: fix missing __WORDSIZE definition
libbpf: attempt to load kernel BTF from sysfs first
Arnaldo Carvalho de Melo (1):
tools headers UAPI: Sync if_link.h with the kernel
Daniel Borkmann (1):
bpf: sync bpf.h to tools infrastructure
include/uapi/linux/bpf.h | 4 +--
include/uapi/linux/if_link.h | 5 +++
src/hashmap.h | 5 +++
src/libbpf.c | 64 ++++++++++++++++++++++++++++++++----
4 files changed, 69 insertions(+), 9 deletions(-)
--
2.17.1
2019-08-14 09:52:47 -07:00
Andrii Nakryiko
c020432531
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 66b5f1c439843bcbab01cc7f3854ae2742f3d1e3
Checkpoint bpf-next commit: b707659213d3c70f2c704ec950df6263b4bffe84
Baseline bpf commit: 53db1cced401e4c65d49edf198e00daa9fc837e6
Checkpoint bpf commit: f1fc7249dddc0e52d9e805e2e661caa118649509
Andrii Nakryiko (8):
libbpf: provide more helpful message on uninitialized global var
libbpf: return previous print callback from libbpf_set_print
libbpf: add helpers for working with BTF types
libbpf: convert libbpf code to use new btf helpers
libbpf: add .BTF.ext offset relocation section loading
libbpf: implement BPF CO-RE offset relocation algorithm
libbpf: fix SIGSEGV when BTF loading fails, but .BTF.ext exists
libbpf: sanitize VAR to conservative 1-byte INT
Petar Penkov (1):
bpf: sync bpf.h to tools/
Stanislav Fomichev (2):
tools/bpf: sync bpf_flow_keys flags
bpf/flow_dissector: support ipv6 flow_label and
BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL
Toke Høiland-Jørgensen (2):
tools/include/uapi: Add devmap_hash BPF map type
tools/libbpf_probes: Add new devmap_hash type
include/uapi/linux/bpf.h | 44 +-
src/btf.c | 250 +++++-----
src/btf.h | 182 ++++++++
src/btf_dump.c | 138 ++----
src/libbpf.c | 972 ++++++++++++++++++++++++++++++++++++---
src/libbpf.h | 3 +-
src/libbpf_internal.h | 105 +++++
src/libbpf_probes.c | 1 +
8 files changed, 1405 insertions(+), 290 deletions(-)
--
2.17.1
2019-08-09 08:40:44 -07:00