Andrii Nakryiko
41db5534d8
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 807b8f0e24e6004984094e1bcbbd2b297011a085
Checkpoint bpf-next commit: 372642ea83ff1c71a5d567a704c912359eb59776
Baseline bpf commit: d6371c76e20d7d3f61b05fd67b596af4d14a8886
Checkpoint bpf commit: a02215ce72a37a19a690803b23b091186ee4f7b2
Alexei Starovoitov (4):
libbpf: Cleanup the layering between CORE and bpf_program.
libbpf: Split bpf_core_apply_relo() into bpf_program independent
helper.
libbpf: Move CO-RE types into relo_core.h.
libbpf: Split CO-RE logic into relo_core.c.
Daniel Xu (1):
libbpf: Do not close un-owned FD 0 on errors
Evgeniy Litvinenko (1):
libbpf: Add bpf_map__pin_path function
Hengqi Chen (1):
libbpf: Add btf__load_vmlinux_btf/btf__load_module_btf
Jason Wang (1):
libbpf: Fix comment typo
Jiri Olsa (3):
libbpf: Fix func leak in attach_kprobe
libbpf: Allow decimal offset for kprobes
libbpf: Export bpf_program__attach_kprobe_opts function
Martynas Pumputis (1):
libbpf: Fix race when pinning maps in parallel
Quentin Monnet (4):
libbpf: Return non-null error on failures in libbpf_find_prog_btf_id()
libbpf: Rename btf__load() as btf__load_into_kernel()
libbpf: Rename btf__get_from_id() as btf__load_from_kernel_by_id()
libbpf: Add split BTF support for btf__load_from_kernel_by_id()
Robin Gögge (1):
libbpf: Fix probe for BPF_PROG_TYPE_CGROUP_SOCKOPT
src/btf.c | 50 +-
src/btf.h | 12 +-
src/libbpf.c | 1419 +++--------------------------------------
src/libbpf.h | 16 +
src/libbpf.map | 7 +
src/libbpf_internal.h | 81 +--
src/libbpf_probes.c | 4 +-
src/relo_core.c | 1295 +++++++++++++++++++++++++++++++++++++
src/relo_core.h | 100 +++
9 files changed, 1561 insertions(+), 1423 deletions(-)
create mode 100644 src/relo_core.c
create mode 100644 src/relo_core.h
--
2.30.2
2021-08-09 13:54:14 -07:00
Andrii Nakryiko
a603965dad
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 068dfc655b666b54e08fc3d7108b309d7f906d34
Checkpoint bpf-next commit: 08f71a1e39a1f07a464ac782d9b612d6a74c7015
Baseline bpf commit: a6c39de76d709f30982d4b80a9b9537e1d388858
Checkpoint bpf commit: d6371c76e20d7d3f61b05fd67b596af4d14a8886
Alan Maguire (3):
libbpf: Clarify/fix unaligned data issues for btf typed dump
libbpf: Fix compilation errors on ppc64le for btf dump typed data
libbpf: Btf typed dump does not need to allocate dump data
Martynas Pumputis (1):
libbpf: Fix removal of inner map in bpf_object__create_map
src/btf_dump.c | 41 ++++++++++++++++++++++++++++++-----------
src/libbpf.c | 10 ++++------
2 files changed, 34 insertions(+), 17 deletions(-)
--
2.30.2
2021-07-19 17:45:10 -07:00
Andrii Nakryiko
21f90f61b0
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: f42cfb469f9b4a1c002a03cce3d9329376800a6f
Checkpoint bpf-next commit: 068dfc655b666b54e08fc3d7108b309d7f906d34
Baseline bpf commit: 61e8aeda9398925f8c6fc290585bdd9727d154c4
Checkpoint bpf commit: a6c39de76d709f30982d4b80a9b9537e1d388858
Alan Maguire (2):
libbpf: Allow specification of "kprobe/function+offset"
libbpf: BTF dumper support for typed data
Alexei Starovoitov (2):
bpf: Sync tools/include/uapi/linux/bpf.h
bpf: Introduce bpf timers.
Jiri Olsa (3):
bpf: Add bpf_get_func_ip helper for tracing programs
bpf: Add bpf_get_func_ip helper for kprobe programs
libbpf: Add bpf_program__attach_kprobe_opts function
Jonathan Edwards (1):
libbpf: Add extra BPF_PROG_TYPE check to bpf_object__probe_loading
Kumar Kartikeya Dwivedi (2):
libbpf: Add request buffer type for netlink messages
libbpf: Switch to void * casting in netlink helpers
Kuniyuki Iwashima (1):
bpf: Fix a typo of reuseport map in bpf.h.
Martynas Pumputis (1):
libbpf: Fix reuse of pinned map on older kernel
Shuyi Cheng (2):
libbpf: Introduce 'btf_custom_path' to 'bpf_obj_open_opts'
libbpf: Fix the possible memory leak on error
Toke Høiland-Jørgensen (1):
libbpf: Restore errno return for functions that were already returning
it
include/uapi/linux/bpf.h | 85 +++-
src/btf.h | 19 +
src/btf_dump.c | 819 ++++++++++++++++++++++++++++++++++++++-
src/libbpf.c | 146 ++++++-
src/libbpf.h | 9 +-
src/libbpf.map | 1 +
src/netlink.c | 115 +++---
src/nlattr.c | 2 +-
src/nlattr.h | 38 +-
9 files changed, 1117 insertions(+), 117 deletions(-)
--
2.30.2
2021-07-16 17:05:44 -07:00
Andrii Nakryiko
db132757c9
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: cf68fa431d5da7ef0b5ea142dd603611696cbd44
Checkpoint bpf-next commit: f540a7d2c37f9ae0867de0a14bf06cf50b63d65e
Baseline bpf commit: 11fc79fc9f2e395aa39fa5baccae62767c5d8280
Checkpoint bpf commit: 61e8aeda9398925f8c6fc290585bdd9727d154c4
Kumar Kartikeya Dwivedi (2):
libbpf: Remove unneeded check for flags during tc detach
libbpf: Set NLM_F_EXCL when creating qdisc
Kuniyuki Iwashima (3):
bpf: Support BPF_FUNC_get_socket_cookie() for
BPF_PROG_TYPE_SK_REUSEPORT.
bpf: Support socket migration by eBPF.
libbpf: Set expected_attach_type for BPF_PROG_TYPE_SK_REUSEPORT.
Lorenz Bauer (1):
libbpf: Fail compilation if target arch is missing
Wang Hai (1):
libbpf: Simplify the return expression of bpf_object__init_maps
function
grantseltzer (1):
Add documentation for libbpf including API autogen
include/uapi/linux/bpf.h | 16 ++++
src/README.rst | 168 ---------------------------------------
src/bpf_tracing.h | 46 ++++++++++-
src/libbpf.c | 9 ++-
src/netlink.c | 4 +-
5 files changed, 64 insertions(+), 179 deletions(-)
delete mode 100644 src/README.rst
--
2.30.2
2021-06-18 13:05:10 -07:00
Andrii Nakryiko
13acc0af00
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: f18ba26da88a89db9b50cb4ff47fadb159f2810b
Checkpoint bpf-next commit: cf68fa431d5da7ef0b5ea142dd603611696cbd44
Baseline bpf commit: d0c0fe10ce6d87734b65c18dc8f4bcae3f4dbea4
Checkpoint bpf commit: 11fc79fc9f2e395aa39fa5baccae62767c5d8280
Alexei Starovoitov (12):
bpf: Introduce bpf_sys_bpf() helper and program type.
libbpf: Support for syscall program type
bpf: Introduce fd_idx
bpf: Add bpf_btf_find_by_name_kind() helper.
bpf: Add bpf_sys_close() helper.
libbpf: Change the order of data and text relocations.
libbpf: Add bpf_object pointer to kernel_supports().
libbpf: Preliminary support for fd_idx
libbpf: Generate loader program out of BPF ELF file.
libbpf: Cleanup temp FDs when intermediate sys_bpf fails.
libbpf: Introduce bpf_map__initial_value().
bpf: Add cmd alias BPF_PROG_RUN
Andrii Nakryiko (4):
libbpf: Add libbpf_set_strict_mode() API to turn on libbpf 1.0
behaviors
libbpf: Streamline error reporting for low-level APIs
libbpf: Streamline error reporting for high-level APIs
libbpf: Move few APIs from 0.4 to 0.5 version
Denis Salopek (2):
bpf: Add lookup_and_delete_elem support to hashtab
bpf: Extend libbpf with bpf_map_lookup_and_delete_elem_flags
Florent Revest (1):
libbpf: Move BPF_SEQ_PRINTF and BPF_SNPRINTF to bpf_helpers.h
Hangbin Liu (1):
xdp: Extend xdp_redirect_map with broadcast support
Kev Jackson (1):
libbpf: Fixes incorrect rx_ring_setup_done
Michal Suchanek (1):
libbpf: Fix pr_warn type warnings on 32bit
Stanislav Fomichev (1):
libbpf: Skip bpf_object__probe_loading for light skeleton
include/uapi/linux/bpf.h | 66 ++-
src/bpf.c | 179 +++++---
src/bpf.h | 2 +
src/bpf_gen_internal.h | 41 ++
src/bpf_helpers.h | 66 +++
src/bpf_prog_linfo.c | 18 +-
src/bpf_tracing.h | 62 +--
src/btf.c | 302 ++++++-------
src/btf_dump.c | 14 +-
src/gen_loader.c | 729 +++++++++++++++++++++++++++++++
src/libbpf.c | 909 +++++++++++++++++++++++++--------------
src/libbpf.h | 14 +
src/libbpf.map | 8 +
src/libbpf_errno.c | 7 +-
src/libbpf_internal.h | 55 +++
src/libbpf_legacy.h | 59 +++
src/linker.c | 22 +-
src/netlink.c | 81 ++--
src/ringbuf.c | 26 +-
src/skel_internal.h | 123 ++++++
src/xsk.c | 2 +-
21 files changed, 2135 insertions(+), 650 deletions(-)
create mode 100644 src/bpf_gen_internal.h
create mode 100644 src/gen_loader.c
create mode 100644 src/libbpf_legacy.h
create mode 100644 src/skel_internal.h
--
2.30.2
2021-06-08 13:04:27 -07:00
Andrii Nakryiko
57375504c6
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: c1cccec9c63637c4c5ee0aa2da2850d983c19e88
Checkpoint bpf-next commit: f18ba26da88a89db9b50cb4ff47fadb159f2810b
Baseline bpf commit: c9a7c013569d73881199a7a3011c03336f592cc8
Checkpoint bpf commit: d0c0fe10ce6d87734b65c18dc8f4bcae3f4dbea4
Andrii Nakryiko (1):
libbpf: Reject static entry-point BPF programs
Kumar Kartikeya Dwivedi (2):
libbpf: Add various netlink helpers
libbpf: Add low level TC-BPF management API
src/libbpf.c | 5 +
src/libbpf.h | 44 ++++
src/libbpf.map | 5 +
src/netlink.c | 568 +++++++++++++++++++++++++++++++++++++++++--------
src/nlattr.h | 48 +++++
5 files changed, 587 insertions(+), 83 deletions(-)
--
2.30.2
2021-05-17 17:12:06 -07:00
Andrii Nakryiko
68695d0173
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 9d31d2338950293ec19d9b095fbaa9030899dcb4
Checkpoint bpf-next commit: c1cccec9c63637c4c5ee0aa2da2850d983c19e88
Baseline bpf commit: 9683e5775c75097c46bd24e65411b16ac6c6cbb3
Checkpoint bpf commit: c9a7c013569d73881199a7a3011c03336f592cc8
Andrii Nakryiko (4):
libbpf: Add per-file linker opts
libbpf: Fix ELF symbol visibility update logic
libbpf: Treat STV_INTERNAL same as STV_HIDDEN for functions
libbpf: Reject static maps
Arnaldo Carvalho de Melo (1):
libbpf: Provide GELF_ST_VISIBILITY() define for older libelf
src/libbpf.c | 35 +++++++++++++++++++++++++----------
src/libbpf.h | 10 +++++++++-
src/libbpf_internal.h | 5 +++++
src/linker.c | 18 +++++++++++++-----
4 files changed, 52 insertions(+), 16 deletions(-)
--
2.30.2
2021-05-17 14:36:22 -07:00
Andrii Nakryiko
c5389a965b
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 87bd9e602e39585c5280556a2b6a6363bb334257
Checkpoint bpf-next commit: 9d31d2338950293ec19d9b095fbaa9030899dcb4
Baseline bpf commit: b02265429681c9c827c45978a61a9f00be5ea9aa
Checkpoint bpf commit: 9683e5775c75097c46bd24e65411b16ac6c6cbb3
Andrii Nakryiko (2):
libbpf: Support BTF_KIND_FLOAT during type compatibility checks in
CO-RE
selftests/bpf: Fix BPF_CORE_READ_BITFIELD() macro
Brendan Jackman (1):
libbpf: Fix signed overflow in ringbuf_process_ring
Ian Rogers (1):
libbpf: Add NULL check to add_dummy_ksym_var
src/bpf_core_read.h | 16 ++++++++++++----
src/libbpf.c | 9 +++++++--
src/ringbuf.c | 30 +++++++++++++++++++++---------
3 files changed, 40 insertions(+), 15 deletions(-)
--
2.30.2
2021-05-05 16:39:05 -07:00
Andrii Nakryiko
b9278634aa
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 1e1032b0c4afaed7739a6681ff6b4cb120b82994
Checkpoint bpf-next commit: 87bd9e602e39585c5280556a2b6a6363bb334257
Baseline bpf commit: a14d273ba15968495896a38b7b3399dba66d0270
Checkpoint bpf commit: b02265429681c9c827c45978a61a9f00be5ea9aa
Alexei Starovoitov (1):
libbpf: Remove unused field.
Andrii Nakryiko (11):
libbpf: Add bpf_map__inner_map API
libbpf: Suppress compiler warning when using SEC() macro with externs
libbpf: Mark BPF subprogs with hidden visibility as static for BPF
verifier
libbpf: Allow gaps in BPF program sections to support overriden weak
functions
libbpf: Refactor BTF map definition parsing
libbpf: Factor out symtab and relos sanity checks
libbpf: Make few internal helpers available outside of libbpf.c
libbpf: Extend sanity checking ELF symbols with externs validation
libbpf: Tighten BTF type ID rewriting with error checking
libbpf: Add linker extern resolution support for functions and global
variables
libbpf: Support extern resolution for BTF-defined maps in .maps
section
Ciara Loftus (1):
libbpf: Fix potential NULL pointer dereference
Daniel Borkmann (1):
bpf: Sync bpf headers in tooling infrastucture
Florent Revest (3):
bpf: Add a bpf_snprintf helper
libbpf: Initialize the bpf_seq_printf parameters array field by field
libbpf: Introduce a BPF_SNPRINTF helper macro
Pedro Tammela (1):
libbpf: Clarify flags in ringbuf helpers
Toke Høiland-Jørgensen (1):
bpf: Return target info when a tracing bpf_link is queried
include/uapi/linux/bpf.h | 83 ++-
src/bpf_helpers.h | 19 +-
src/bpf_tracing.h | 58 +-
src/btf.c | 5 -
src/libbpf.c | 396 +++++++-----
src/libbpf.h | 1 +
src/libbpf.map | 1 +
src/libbpf_internal.h | 45 ++
src/linker.c | 1270 ++++++++++++++++++++++++++++++++------
src/xsk.c | 3 +
10 files changed, 1512 insertions(+), 369 deletions(-)
--
2.30.2
2021-04-26 16:30:18 -07:00
Andrii Nakryiko
95f83b8b0c
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 155f556d64b1a48710f01305e14bb860734ed1e3
Checkpoint bpf-next commit: 1e1032b0c4afaed7739a6681ff6b4cb120b82994
Baseline bpf commit: 002322402dafd846c424ffa9240a937f49b48c42
Checkpoint bpf commit: a14d273ba15968495896a38b7b3399dba66d0270
Andrii Nakryiko (2):
libbpf: Preserve empty DATASEC BTFs during static linking
libbpf: Fix memory leak when emitting final btf_ext
Ciara Loftus (3):
libbpf: Ensure umem pointer is non-NULL before dereferencing
libbpf: Restore umem state after socket create failure
libbpf: Only create rx and tx XDP rings when necessary
Cong Wang (1):
sock_map: Introduce BPF_SK_SKB_VERDICT
Hengqi Chen (1):
libbpf: Fix KERNEL_VERSION macro
Maciej Fijalkowski (1):
libbpf: xsk: Use bpf_link
Martin KaFai Lau (6):
bpf: Support bpf program calling kernel function
libbpf: Refactor bpf_object__resolve_ksyms_btf_id
libbpf: Refactor codes for finding btf id of a kernel symbol
libbpf: Rename RELO_EXTERN to RELO_EXTERN_VAR
libbpf: Record extern sym relocation first
libbpf: Support extern kernel function
Pedro Tammela (1):
libbpf: Fix bail out from 'ringbuf_process_ring()' on error
Yang Yingliang (1):
libbpf: Remove redundant semi-colon
include/uapi/linux/bpf.h | 5 +
src/bpf_helpers.h | 2 +-
src/libbpf.c | 389 +++++++++++++++++++++++++++++----------
src/linker.c | 39 +++-
src/ringbuf.c | 2 +-
src/xsk.c | 315 ++++++++++++++++++++++++-------
6 files changed, 574 insertions(+), 178 deletions(-)
--
2.30.2
2021-04-05 11:30:05 -07:00
Andrii Nakryiko
3ea10e46cb
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 22541a9eeb0d968c133aaebd95fa59da3208e705
Checkpoint bpf-next commit: 155f556d64b1a48710f01305e14bb860734ed1e3
Baseline bpf commit: 6185266c5a853bb0f2a459e3ff594546f277609b
Checkpoint bpf commit: 002322402dafd846c424ffa9240a937f49b48c42
Andrii Nakryiko (11):
libbpf: Add explicit padding to bpf_xdp_set_link_opts
libbpf: provide NULL and KERNEL_VERSION macros in bpf_helpers.h
libbpf: Expose btf_type_by_id() internally
libbpf: Generalize BTF and BTF.ext type ID and strings iteration
libbpf: Rename internal memory-management helpers
libbpf: Extract internal set-of-strings datastructure APIs
libbpf: Add generic BTF type shallow copy API
libbpf: Add BPF static linker APIs
libbpf: Add BPF static linker BTF and BTF.ext support
libbpf: Skip BTF fixup if object file has no BTF
libbpf: Constify few bpf_program getters
Björn Töpel (3):
libbpf, xsk: Add libbpf_smp_store_release libbpf_smp_load_acquire
libbpf: xsk: Remove linux/compiler.h header
libbpf: xsk: Move barriers from libbpf_util.h to xsk.h
Jean-Philippe Brucker (2):
libbpf: Fix arm64 build
libbpf: Fix BTF dump of pointer-to-array-of-struct
Joe Stringer (2):
scripts/bpf: Abstract eBPF API target parameter
tools: Sync uapi bpf.h header with latest changes
KP Singh (1):
libbpf: Add explicit padding to btf_dump_emit_type_decl_opts
Kumar Kartikeya Dwivedi (1):
libbpf: Use SOCK_CLOEXEC when opening the netlink socket
Lorenz Bauer (1):
bpf: Add PROG_TEST_RUN support for sk_lookup programs
Maciej Fijalkowski (1):
libbpf: Clear map_info before each bpf_obj_get_info_by_fd
Namhyung Kim (1):
libbpf: Fix error path in bpf_object__elf_init()
Pedro Tammela (1):
libbpf: Avoid inline hint definition from 'linux/stddef.h'
Rafael David Tinoco (1):
libbpf: Add bpf object kern_version attribute setter
Xuesen Huang (1):
bpf: Add bpf_skb_adjust_room flag BPF_F_ADJ_ROOM_ENCAP_L2_ETH
include/uapi/linux/bpf.h | 724 +++++++++++++-
src/bpf_helpers.h | 21 +-
src/btf.c | 714 +++++++-------
src/btf.h | 3 +
src/btf_dump.c | 10 +-
src/libbpf.c | 32 +-
src/libbpf.h | 19 +-
src/libbpf.map | 6 +
src/libbpf_internal.h | 38 +-
src/libbpf_util.h | 47 -
src/linker.c | 1944 ++++++++++++++++++++++++++++++++++++++
src/netlink.c | 2 +-
src/strset.c | 176 ++++
src/strset.h | 21 +
src/xsk.c | 5 +-
src/xsk.h | 87 +-
16 files changed, 3379 insertions(+), 470 deletions(-)
delete mode 100644 src/libbpf_util.h
create mode 100644 src/linker.c
create mode 100644 src/strset.c
create mode 100644 src/strset.h
--
2.30.2
2021-03-25 23:31:23 -07:00
Ilya Leoshkevich
986962fade
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 303dcc25b5c782547eb13b9f29426de843dd6f34
Checkpoint bpf-next commit: 22541a9eeb0d968c133aaebd95fa59da3208e705
Baseline bpf commit: 6185266c5a853bb0f2a459e3ff594546f277609b
Checkpoint bpf commit: 22541a9eeb0d968c133aaebd95fa59da3208e705
Ilya Leoshkevich (3):
bpf: Add BTF_KIND_FLOAT to uapi
libbpf: Fix whitespace in btf_add_composite() comment
libbpf: Add BTF_KIND_FLOAT support
include/uapi/linux/btf.h | 5 ++--
src/btf.c | 51 +++++++++++++++++++++++++++++++++++++++-
src/btf.h | 6 +++++
src/btf_dump.c | 4 ++++
src/libbpf.c | 29 ++++++++++++++++++++++-
src/libbpf.map | 5 ++++
src/libbpf_internal.h | 2 ++
7 files changed, 98 insertions(+), 4 deletions(-)
--
2.25.1
2021-03-05 14:15:26 -08:00
Andrii Nakryiko
7065a809fc
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 86ce322d21eb032ed8fdd294d0fb095d2debb430
Checkpoint bpf-next commit: 303dcc25b5c782547eb13b9f29426de843dd6f34
Baseline bpf commit: 78031381ae9c88f4f914d66154f4745122149c58
Checkpoint bpf commit: 6185266c5a853bb0f2a459e3ff594546f277609b
Alexei Starovoitov (1):
bpf: Count the number of times recursion was prevented
Florent Revest (2):
bpf: Be less specific about socket cookies guarantees
bpf: Expose bpf_get_socket_cookie to tracing programs
Hangbin Liu (1):
bpf: Remove blank line in bpf helper description comment
Jesper Dangaard Brouer (2):
bpf: bpf_fib_lookup return MTU value as output when looked up
bpf: Add BPF-helper for MTU checking
Jonas Bonn (1):
Revert "GTP: add support for flow based tunneling API"
Martin KaFai Lau (1):
libbpf: Ignore non function pointer member in struct_ops
Stanislav Fomichev (1):
libbpf: Use AF_LOCAL instead of AF_INET in xsk.c
Yonghong Song (3):
bpf: Add bpf_for_each_map_elem() helper
libbpf: Move function is_ldimm64() earlier in libbpf.c
libbpf: Support subprog address relocation
include/uapi/linux/bpf.h | 140 +++++++++++++++++++++++++++++++++--
include/uapi/linux/if_link.h | 1 -
src/libbpf.c | 98 +++++++++++++++++++-----
src/xsk.c | 2 +-
4 files changed, 213 insertions(+), 28 deletions(-)
--
2.24.1
2021-03-03 08:35:13 -08:00
Andrii Nakryiko
649f9dc746
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 3db1a3fa98808aa90f95ec3e0fa2fc7abf28f5c9
Checkpoint bpf-next commit: 86ce322d21eb032ed8fdd294d0fb095d2debb430
Baseline bpf commit: 1a3449c19407a28f7019a887cdf0d6ba2444751a
Checkpoint bpf commit: 78031381ae9c88f4f914d66154f4745122149c58
Andrii Nakryiko (5):
libbpf: Add user-space variants of BPF_CORE_READ() family of macros
libbpf: Add non-CO-RE variants of BPF_CORE_READ() macro family
libbpf: Clarify kernel type use with USER variants of CORE reading
macros
libbpf: Support kernel module ksym externs
libbpf: Allow loading empty BTFs
Björn Töpel (1):
libbpf, xsk: Select AF_XDP BPF program based on kernel version
Brendan Jackman (4):
bpf: Clarify return value of probe str helpers
bpf: Rename BPF_XADD and prepare to encode other atomics in .imm
bpf: Add BPF_FETCH field / create atomic_fetch_add instruction
bpf: Add instructions for atomic_[cmp]xchg
Ian Rogers (1):
bpf, libbpf: Avoid unused function warning on bpf_tail_call_static
Jiri Olsa (1):
libbpf: Use string table index from index table if needed
Pravin B Shelar (1):
GTP: add support for flow based tunneling API
include/uapi/linux/bpf.h | 20 +++--
include/uapi/linux/if_link.h | 1 +
src/bpf_core_read.h | 169 +++++++++++++++++++++++++++--------
src/bpf_helpers.h | 2 +-
src/btf.c | 17 ++--
src/libbpf.c | 50 +++++++----
src/xsk.c | 81 ++++++++++++++++-
7 files changed, 265 insertions(+), 75 deletions(-)
--
2.24.1
2021-01-26 19:32:13 -08:00
Andrii Nakryiko
8262be6034
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 5c667dca71095abec90420eb09503f35f66c9585
Checkpoint bpf-next commit: 3db1a3fa98808aa90f95ec3e0fa2fc7abf28f5c9
Baseline bpf commit: 12c8a8ca117f3d734babc3fba131fdaa329d2163
Checkpoint bpf commit: 1a3449c19407a28f7019a887cdf0d6ba2444751a
Andrii Nakryiko (2):
bpf: Fix enum names for bpf_this_cpu_ptr() and bpf_per_cpu_ptr()
helpers
libbpf: Support modules in bpf_program__set_attach_target() API
Brendan Jackman (1):
libbpf: Expose libbpf ring_buffer epoll_fd
Florent Revest (1):
bpf: Add a bpf_sock_from_file helper
include/uapi/linux/bpf.h | 13 ++++++--
src/libbpf.c | 64 +++++++++++++++++++++++++---------------
src/libbpf.h | 1 +
src/libbpf.map | 1 +
src/ringbuf.c | 6 ++++
5 files changed, 59 insertions(+), 26 deletions(-)
--
2.24.1
2020-12-20 17:00:58 -08:00
Andrii Nakryiko
2042df2fed
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: c6bde958a62b8ca5ee8d2c1fe429aec4ad54efad
Checkpoint bpf-next commit: 5c667dca71095abec90420eb09503f35f66c9585
Baseline bpf commit: d3bec0138bfbe58606fc1d6f57a4cdc1a20218db
Checkpoint bpf commit: 12c8a8ca117f3d734babc3fba131fdaa329d2163
Alan Maguire (1):
libbpf: bpf__find_by_name[_kind] should use btf__get_nr_types()
Andrei Matei (1):
libbpf: Fail early when loading programs with unspecified type
Andrii Nakryiko (11):
bpf: Assign ID to vmlinux BTF and return extra info for BTF in
GET_OBJ_INFO
libbpf: Don't attempt to load unused subprog as an entry-point BPF
program
libbpf: Add base BTF accessor
libbpf: Add internal helper to load BTF data by FD
libbpf: Refactor CO-RE relocs to not assume a single BTF object
libbpf: Add kernel module BTF support for CO-RE relocations
bpf: Allow to specify kernel module BTFs when attaching BPF programs
libbpf: Factor out low-level BPF program loading helper
libbpf: Support attachment of BPF tracing programs to kernel modules
libbpf: Use memcpy instead of strncpy to please GCC
libbpf: Fix ring_buffer__poll() to return number of consumed samples
Dmitrii Banshchikov (1):
bpf: Add bpf_ktime_get_coarse_ns helper
KP Singh (5):
bpf: Implement task local storage
libbpf: Add support for task local storage
bpf: Implement get_current_task_btf and RET_PTR_TO_BTF_ID
bpf: Add bpf_bprm_opts_set helper
bpf: Add a BPF helper for getting the IMA hash of an inode
Li RongQing (1):
libbpf: Add support for canceling cached_cons advance
Magnus Karlsson (1):
libbpf: Replace size_t with __u32 in xsk interfaces
Mariusz Dudek (1):
libbpf: Separate XDP program load with xsk socket creation
Stanislav Fomichev (1):
libbpf: Cap retries in sys_bpf_prog_load
Thomas Karlsson (1):
macvlan: Support for high multicast packet rate
Toke Høiland-Jørgensen (1):
libbpf: Sanitise map names before pinning
include/uapi/linux/bpf.h | 96 +++++-
include/uapi/linux/if_link.h | 2 +
src/bpf.c | 104 +++++--
src/btf.c | 74 +++--
src/btf.h | 1 +
src/libbpf.c | 550 +++++++++++++++++++++++++++--------
src/libbpf.map | 3 +
src/libbpf_internal.h | 31 ++
src/libbpf_probes.c | 1 +
src/ringbuf.c | 2 +-
src/xsk.c | 92 +++++-
src/xsk.h | 22 +-
12 files changed, 771 insertions(+), 207 deletions(-)
--
2.24.1
2020-12-04 20:04:52 -08:00
Andrii Nakryiko
c55abf0752
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 3cb12d27ff655e57e8efe3486dca2a22f4e30578
Checkpoint bpf-next commit: c6bde958a62b8ca5ee8d2c1fe429aec4ad54efad
Baseline bpf commit: c66dca98a24cb5f3493dd08d40bcfa94a220fa92
Checkpoint bpf commit: d3bec0138bfbe58606fc1d6f57a4cdc1a20218db
Andrii Nakryiko (6):
libbpf: Factor out common operations in BTF writing APIs
libbpf: Unify and speed up BTF string deduplication
libbpf: Implement basic split BTF support
libbpf: Fix BTF data layout checks and allow empty BTF
libbpf: Support BTF dedup of split BTFs
libbpf: Accomodate DWARF/compiler bug with duplicated identical arrays
Ian Rogers (1):
libbpf, hashmap: Fix undefined behavior in hash_bits
Magnus Karlsson (2):
libbpf: Fix null dereference in xsk_socket__delete
libbpf: Fix possible use after free in xsk_socket__delete
src/btf.c | 807 +++++++++++++++++++++++++++++--------------------
src/btf.h | 8 +
src/hashmap.h | 15 +-
src/libbpf.map | 9 +
src/xsk.c | 9 +-
5 files changed, 504 insertions(+), 344 deletions(-)
--
2.24.1
2020-11-05 21:20:45 -08:00
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