mirror of
https://github.com/netdata/libbpf.git
synced 2026-09-07 20:16:49 +08:00
a0325403afa8a3eca0d3a3e43f43784dc6b47511
101
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
aec0b1cd7d |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 73cf09a36bf7bfb3e5a3ff23755c36d49137c44d Checkpoint bpf-next commit: e34cfee65ec891a319ce79797dda18083af33a76 Baseline bpf commit: e7c677bdd03d54e9a1bafcaf1faf5c573a506bba Checkpoint bpf commit: 14b20b784f59bdd95f6f1cfb112c9818bcec4d84 Andrii Nakryiko (3): libbpf: Fix potential NULL dereference when parsing ELF libbpf: Streamline bpf_attr and perf_event_attr initialization libbpf: Clean up deprecated and legacy aliases Hangbin Liu (2): libbpf: Add names for auxiliary maps libbpf: Making bpf_prog_load() ignore name if kernel doesn't support Hao Luo (1): libbpf: Allows disabling auto attach Quentin Monnet (1): bpf: Clear up confusion in bpf_skb_adjust_room()'s documentation include/uapi/linux/bpf.h | 6 +- src/bpf.c | 186 ++++++++++++++++++++++----------------- src/btf.c | 2 - src/btf.h | 1 - src/libbpf.c | 81 ++++++++++++----- src/libbpf.h | 2 + src/libbpf.map | 2 + src/libbpf_internal.h | 3 + src/libbpf_legacy.h | 2 + src/netlink.c | 3 +- src/skel_internal.h | 10 ++- 11 files changed, 183 insertions(+), 115 deletions(-) -- 2.30.2 |
||
|
|
13a26d78f3 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 71930846b36f8e4e68267f8a3d47e33435c3657a Checkpoint bpf-next commit: 73cf09a36bf7bfb3e5a3ff23755c36d49137c44d Baseline bpf commit: f946964a9f79f8dcb5a6329265281eebfc23aee5 Checkpoint bpf commit: e7c677bdd03d54e9a1bafcaf1faf5c573a506bba Alexei Starovoitov (1): bpf: Disallow bpf programs call prog_run command. Andrii Nakryiko (2): libbpf: Reject legacy 'maps' ELF section libbpf: preserve errno across pr_warn/pr_info/pr_debug Dave Marchevsky (1): bpf: Improve docstring for BPF_F_USER_BUILD_ID flag Florian Fainelli (1): libbpf: Initialize err in probe_map_create Gustavo A. R. Silva (1): treewide: uapi: Replace zero-length arrays with flexible-array members Hengqi Chen (1): libbpf: Do not require executable permission for shared libraries James Hilliard (2): libbpf: Skip empty sections in bpf_object__init_global_data_maps libbpf: Ensure functions with always_inline attribute are inline Jesper Dangaard Brouer (1): bpf: Add BPF-helper for accessing CLOCK_TAI Namhyung Kim (1): perf/core: Add a new read format to get a number of lost samples include/uapi/linux/bpf.h | 27 +++++++++++++++++++++++++-- include/uapi/linux/perf_event.h | 7 +++++-- include/uapi/linux/pkt_cls.h | 4 ++-- src/bpf_tracing.h | 14 +++++++------- src/libbpf.c | 25 +++++++++++++++++-------- src/libbpf_probes.c | 2 +- src/skel_internal.h | 4 ++-- src/usdt.bpf.h | 4 ++-- 8 files changed, 61 insertions(+), 26 deletions(-) -- 2.30.2 |
||
|
|
3fa2c28d2c |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: b0d93b44641a83c28014ca38001e85bf6dc8501e Checkpoint bpf-next commit: 71930846b36f8e4e68267f8a3d47e33435c3657a Baseline bpf commit: d28b25a62a47a8c8aa19bd543863aab6717e68c9 Checkpoint bpf commit: f946964a9f79f8dcb5a6329265281eebfc23aee5 Andrii Nakryiko (7): libbpf: add bpf_core_type_matches() helper macro libbpf: Remove unnecessary usdt_rel_ip assignments libbpf: generalize virtual __kconfig externs and use it for USDT libbpf: improve BPF_KPROBE_SYSCALL macro and rename it to BPF_KSYSCALL libbpf: add ksyscall/kretsyscall sections support for syscall kprobes libbpf: fallback to tracefs mount point if debugfs is not mounted libbpf: make RINGBUF map size adjustments more eagerly Anquan Wu (1): libbpf: Fix the name of a reused map Chuang Wang (3): libbpf: Cleanup the legacy kprobe_event on failed add/attach_event() libbpf: Fix wrong variable used in perf_event_uprobe_open_legacy() libbpf: Cleanup the legacy uprobe_event on failed add/attach_event() Dan Carpenter (3): libbpf: fix an snprintf() overflow check libbpf: Fix sign expansion bug in btf_dump_get_enum_value() libbpf: Fix str_has_sfx()'s return value Daniel Müller (4): bpf: Introduce TYPE_MATCH related constants/macros bpf, libbpf: Add type match support bpf: Correctly propagate errors up from bpf_core_composites_match libbpf: Support PPC in arch_specific_syscall_pfx Hangbin Liu (1): Bonding: add per-port priority for failover re-selection Hengqi Chen (1): libbpf: Error out when binary_path is NULL for uprobe and USDT Ilya Leoshkevich (1): libbpf: Extend BPF_KSYSCALL documentation James Hilliard (1): libbpf: Disable SEC pragma macro on GCC Joanne Koong (2): bpf: Add flags arg to bpf_dynptr_read and bpf_dynptr_write APIs bpf: fix bpf_skb_pull_data documentation Joe Burton (1): libbpf: Add bpf_obj_get_opts() Jon Doron (1): libbpf: perfbuf: Add API to get the ring buffer Pu Lehui (1): bpf, docs: Remove deprecated xsk libbpf APIs description Yixun Lan (1): libbpf, riscv: Use a0 for RC register docs/libbpf_naming_convention.rst | 13 +- include/uapi/linux/bpf.h | 15 +- include/uapi/linux/if_link.h | 1 + src/bpf.c | 9 + src/bpf.h | 11 + src/bpf_core_read.h | 11 + src/bpf_helpers.h | 13 + src/bpf_tracing.h | 60 +++- src/btf_dump.c | 2 +- src/gen_loader.c | 2 +- src/libbpf.c | 440 ++++++++++++++++++++++-------- src/libbpf.h | 62 +++++ src/libbpf.map | 3 + src/libbpf_internal.h | 8 +- src/relo_core.c | 286 ++++++++++++++++++- src/relo_core.h | 4 + src/usdt.bpf.h | 16 +- src/usdt.c | 6 +- 18 files changed, 793 insertions(+), 169 deletions(-) -- 2.30.2 |
||
|
|
f42d136c1c |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: bb7a4257892717caf82fe6da45b259b35f73445c
Checkpoint bpf-next commit: b0d93b44641a83c28014ca38001e85bf6dc8501e
Baseline bpf commit: a2b1a5d40bd12b44322c2ccd40bb0ec1699708b6
Checkpoint bpf commit: d28b25a62a47a8c8aa19bd543863aab6717e68c9
Andrii Nakryiko (14):
libbpf: move xsk.{c,h} into selftests/bpf
libbpf: remove deprecated low-level APIs
libbpf: remove deprecated XDP APIs
libbpf: remove deprecated probing APIs
libbpf: remove deprecated BTF APIs
libbpf: clean up perfbuf APIs
libbpf: remove prog_info_linear APIs
libbpf: remove most other deprecated high-level APIs
libbpf: remove multi-instance and custom private data APIs
libbpf: cleanup LIBBPF_DEPRECATED_SINCE supporting macros for v0.x
libbpf: remove internal multi-instance prog support
libbpf: clean up SEC() handling
libbpf: enforce strict libbpf 1.0 behaviors
libbpf: fix up few libbpf.map problems
Daniel Müller (1):
bpf: Merge "types_are_compat" logic into relo_core.c
Stanislav Fomichev (4):
bpf: per-cgroup lsm flavor
tools/bpf: Sync btf_ids.h to tools
libbpf: add lsm_cgoup_sock type
libbpf: implement bpf_prog_query_opts
include/uapi/linux/bpf.h | 4 +
src/bpf.c | 200 +----
src/bpf.h | 98 +--
src/btf.c | 183 +----
src/btf.h | 86 +--
src/btf_dump.c | 23 +-
src/libbpf.c | 1500 ++++----------------------------------
src/libbpf.h | 469 +-----------
src/libbpf.map | 114 +--
src/libbpf_common.h | 16 +-
src/libbpf_internal.h | 24 +-
src/libbpf_legacy.h | 28 +-
src/libbpf_probes.c | 125 +---
src/netlink.c | 62 +-
src/relo_core.c | 80 ++
src/relo_core.h | 2 +
src/xsk.c | 1260 --------------------------------
src/xsk.h | 336 ---------
18 files changed, 339 insertions(+), 4271 deletions(-)
delete mode 100644 src/xsk.c
delete mode 100644 src/xsk.h
--
2.30.2
|
||
|
|
bc3673cdd5 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 3e6fe5ce4d4860c3a111c246fddc6f31492f4fb0
Checkpoint bpf-next commit: bb7a4257892717caf82fe6da45b259b35f73445c
Baseline bpf commit: 5e0b0a4c52d30bb09659446f40b77a692361600d
Checkpoint bpf commit: a2b1a5d40bd12b44322c2ccd40bb0ec1699708b6
Delyan Kratunov (1):
libbpf: add support for sleepable uprobe programs
Maxim Mikityanskiy (2):
bpf: Fix documentation of th_len in bpf_tcp_{gen,check}_syncookie
bpf: Add helpers to issue and check SYN cookies in XDP
include/uapi/linux/bpf.h | 88 ++++++++++++++++++++++++++++++++++++++--
src/libbpf.c | 5 ++-
2 files changed, 88 insertions(+), 5 deletions(-)
--
2.30.2
|
||
|
|
e5ff285a44 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: fe92833524e368e59bba9c57e00f7359f133667f
Checkpoint bpf-next commit: 3e6fe5ce4d4860c3a111c246fddc6f31492f4fb0
Baseline bpf commit: 825464e79db4aac936e0fdae62cdfb7546d0028f
Checkpoint bpf commit: 5e0b0a4c52d30bb09659446f40b77a692361600d
Andrii Nakryiko (1):
libbpf: Fix internal USDT address translation logic for shared
libraries
Yonghong Song (1):
libbpf: Fix an unsigned < 0 bug
src/libbpf.c | 2 +-
src/usdt.c | 123 ++++++++++++++++++++++++++-------------------------
2 files changed, 64 insertions(+), 61 deletions(-)
--
2.30.2
|
||
|
|
5497411f48 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 02f4afebf8a54ba16f99f4f6ca10df3efeac6229 Checkpoint bpf-next commit: fe92833524e368e59bba9c57e00f7359f133667f Baseline bpf commit: d08af2c46881b62f4efad8ebb7eae381fa1f1033 Checkpoint bpf commit: 825464e79db4aac936e0fdae62cdfb7546d0028f Andrii Nakryiko (1): libbpf: Fix uprobe symbol file offset calculation logic Yonghong Song (10): bpf: Add btf enum64 support libbpf: Permit 64bit relocation value libbpf: Fix an error in 64bit relocation value computation libbpf: Refactor btf__add_enum() for future code sharing libbpf: Add enum64 parsing and new enum64 public API libbpf: Add enum64 deduplication support libbpf: Add enum64 support for btf_dump libbpf: Add enum64 sanitization libbpf: Add enum64 support for bpf linking libbpf: Add enum64 relocation support include/uapi/linux/btf.h | 17 +++- src/btf.c | 201 +++++++++++++++++++++++++++++++++++---- src/btf.h | 32 ++++++- src/btf_dump.c | 137 +++++++++++++++++++------- src/libbpf.c | 126 ++++++++++++++---------- src/libbpf.map | 2 + src/libbpf_internal.h | 2 + src/linker.c | 2 + src/relo_core.c | 105 ++++++++++++-------- src/relo_core.h | 4 +- 10 files changed, 483 insertions(+), 145 deletions(-) -- 2.30.2 |
||
|
|
eb1d1ad83f |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: ac6a65868a5a45db49d5ee8524df3b701110d844
Checkpoint bpf-next commit: 02f4afebf8a54ba16f99f4f6ca10df3efeac6229
Baseline bpf commit: f3f19f939c11925dadd3f4776f99f8c278a7017b
Checkpoint bpf commit: d08af2c46881b62f4efad8ebb7eae381fa1f1033
Andrii Nakryiko (2):
libbpf: start 1.0 development cycle
libbpf: remove bpf_create_map*() APIs
Daniel Müller (5):
libbpf: Introduce libbpf_bpf_prog_type_str
libbpf: Introduce libbpf_bpf_map_type_str
libbpf: Introduce libbpf_bpf_attach_type_str
libbpf: Introduce libbpf_bpf_link_type_str
libbpf: Fix a couple of typos
Douglas Raillard (1):
libbpf: Fix determine_ptr_size() guessing
Eric Dumazet (1):
net: add IFLA_TSO_{MAX_SIZE|SEGS} attributes
Geliang Tang (1):
bpf: Add bpf_skc_to_mptcp_sock_proto
Joanne Koong (5):
bpf: Add verifier support for dynptrs
bpf: Add bpf_dynptr_from_mem for local dynptrs
bpf: Dynptr support for ring buffers
bpf: Add bpf_dynptr_read and bpf_dynptr_write
bpf: Add dynptr data slices
Julia Lawall (1):
libbpf: Fix typo in comment
Yuze Chi (1):
libbpf: Fix is_pow_of_2
include/uapi/linux/bpf.h | 90 +++++++++++++++++++
include/uapi/linux/if_link.h | 2 +
src/bpf.c | 80 -----------------
src/bpf.h | 42 ---------
src/btf.c | 28 ++++--
src/libbpf.c | 167 +++++++++++++++++++++++++++++++++--
src/libbpf.h | 38 +++++++-
src/libbpf.map | 10 +++
src/libbpf_internal.h | 5 ++
src/libbpf_version.h | 4 +-
src/linker.c | 5 --
src/relo_core.c | 8 +-
12 files changed, 332 insertions(+), 147 deletions(-)
--
2.30.2
|
||
|
|
75452cd290 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: d54d06a4c4bc5d76815d02e4b041b31d9dbb3fef
Checkpoint bpf-next commit: b2531d4bdce19f28364b45aac9132e153b1f23a4
Baseline bpf commit: ba3beec2ec1d3b4fd8672ca6e781dac4b3267f6e
Checkpoint bpf commit: f3f19f939c11925dadd3f4776f99f8c278a7017b
Andrii Nakryiko (12):
libbpf: Allow "incomplete" basic tracing SEC() definitions
libbpf: Support target-less SEC() definitions for BTF-backed programs
libbpf: Append "..." in fixed up log if CO-RE spec is truncated
libbpf: Use libbpf_mem_ensure() when allocating new map
libbpf: Allow to opt-out from creating BPF maps
libbpf: Make __kptr and __kptr_ref unconditionally use btf_type_tag()
attr
libbpf: Improve usability of field-based CO-RE helpers
libbpf: Complete field-based CO-RE helpers with field offset helper
libbpf: Provide barrier() and barrier_var() in bpf_helpers.h
libbpf: Automatically fix up BPF_MAP_TYPE_RINGBUF size, if necessary
libbpf: Clean up ringbuf size adjustment implementation
libbpf: Add safer high-level wrappers for map operations
Feng Zhou (1):
bpf: add bpf_map_lookup_percpu_elem for percpu map
Jiri Olsa (1):
libbpf: Add bpf_program__set_insns function
Kaixi Fan (1):
bpf: Add source ip in "struct bpf_tunnel_key"
Kui-Feng Lee (3):
bpf, x86: Generate trampolines from bpf_tramp_links
bpf, x86: Attach a cookie to fentry/fexit/fmod_ret/lsm.
libbpf: Assign cookies to links in libbpf.
include/uapi/linux/bpf.h | 23 ++
src/bpf.c | 22 ++
src/bpf.h | 4 +
src/bpf_core_read.h | 37 ++-
src/bpf_helpers.h | 29 ++-
src/libbpf.c | 473 ++++++++++++++++++++++++++++++++-------
src/libbpf.h | 156 +++++++++++++
src/libbpf.map | 12 +-
8 files changed, 659 insertions(+), 97 deletions(-)
--
2.30.2
|
||
|
|
3a4e26307d |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 34ba23b44c664792a4308ec37b5788a3162944ec
Checkpoint bpf-next commit: d54d06a4c4bc5d76815d02e4b041b31d9dbb3fef
Baseline bpf commit: 8de8b71b787f38983d414d2dba169a3bfefa668a
Checkpoint bpf commit: ba3beec2ec1d3b4fd8672ca6e781dac4b3267f6e
Alan Maguire (1):
libbpf: Usdt aarch64 arg parsing support
Andrii Nakryiko (10):
libbpf: Support opting out from autoloading BPF programs declaratively
libbpf: Teach bpf_link_create() to fallback to
bpf_raw_tracepoint_open()
libbpf: Fix anonymous type check in CO-RE logic
libbpf: Drop unhelpful "program too large" guess
libbpf: Fix logic for finding matching program for CO-RE relocation
libbpf: Avoid joining .BTF.ext data with BPF programs by section name
libbpf: Record subprog-resolved CO-RE relocations unconditionally
libbpf: Refactor CO-RE relo human description formatting routine
libbpf: Simplify bpf_core_parse_spec() signature
libbpf: Fix up verifier log for unguarded failed CO-RE relos
Gaosheng Cui (1):
libbpf: Remove redundant non-null checks on obj_elf
Grant Seltzer (4):
libbpf: Add error returns to two API functions
libbpf: Update API functions usage to check error
libbpf: Add documentation to API functions
libbpf: Improve libbpf API documentation link position
Kumar Kartikeya Dwivedi (2):
bpf: Allow storing referenced kptr in map
libbpf: Add kptr type tag macros to bpf_helpers.h
Pu Lehui (2):
libbpf: Fix usdt_cookie being cast to 32 bits
libbpf: Support riscv USDT argument parsing logic
Runqing Yang (1):
libbpf: Fix a bug with checking bpf_probe_read_kernel() support in old
kernels
Vladimir Isaev (1):
libbpf: Add ARC support to bpf_tracing.h
Yuntao Wang (1):
libbpf: Remove unnecessary type cast
docs/index.rst | 3 +-
include/uapi/linux/bpf.h | 12 ++
src/bpf.c | 34 ++++-
src/bpf_helpers.h | 7 +
src/bpf_tracing.h | 23 +++
src/btf.c | 9 +-
src/libbpf.c | 322 ++++++++++++++++++++++++++++++---------
src/libbpf.h | 82 +++++++++-
src/libbpf_internal.h | 9 +-
src/relo_core.c | 104 +++++++------
src/relo_core.h | 6 +
src/usdt.c | 191 ++++++++++++++++++++++-
12 files changed, 668 insertions(+), 134 deletions(-)
--
2.30.2
|
||
|
|
bbfb018473 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 2d0df01974ce2b59b6f7d5bd3ea58d74f12ddf85
Checkpoint bpf-next commit: 34ba23b44c664792a4308ec37b5788a3162944ec
Baseline bpf commit: 0a210af6d0a0595fef566e7eeb072f10f37774be
Checkpoint bpf commit: 8de8b71b787f38983d414d2dba169a3bfefa668a
Alan Maguire (2):
libbpf: Improve library identification for uprobe binary path
resolution
libbpf: Improve string parsing for uprobe auto-attach
Andrii Nakryiko (5):
libbpf: Fix use #ifdef instead of #if to avoid compiler warning
libbpf: Use strlcpy() in path resolution fallback logic
libbpf: Allow WEAK and GLOBAL bindings during BTF fixup
libbpf: Don't error out on CO-RE relos for overriden weak subprogs
libbpf: Use weak hidden modifier for USDT BPF-side API functions
Colin Ian King (1):
libbpf: Fix spelling mistake "libaries" -> "libraries"
Haowen Bai (1):
libbpf: Potential NULL dereference in usdt_manager_attach_usdt()
Ilya Leoshkevich (3):
libbpf: Minor style improvements in USDT code
libbpf: Make BPF-side of USDT support work on big-endian machines
libbpf: Add s390-specific USDT arg spec parsing logic
src/libbpf.c | 105 ++++++++++++++++++++----------------------
src/libbpf_internal.h | 11 +++++
src/usdt.bpf.h | 13 ++++--
src/usdt.c | 79 ++++++++++++++++++++++++++-----
4 files changed, 136 insertions(+), 72 deletions(-)
--
2.30.2
|
||
|
|
750c9fb595 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 9492450fd28736262dea9143ebb3afc2c131ace1 Checkpoint bpf-next commit: 2d0df01974ce2b59b6f7d5bd3ea58d74f12ddf85 Baseline bpf commit: 6bd0c76bd70447aedfeafa9e1fcc249991d6c678 Checkpoint bpf commit: 0a210af6d0a0595fef566e7eeb072f10f37774be Alan Maguire (3): libbpf: auto-resolve programs/libraries when necessary for uprobes libbpf: Support function name-based attach uprobes libbpf: Add auto-attach for uprobes based on section name Andrii Nakryiko (6): libbpf: Avoid NULL deref when initializing map BTF info libbpf: Add BPF-side of USDT support libbpf: Wire up USDT API and bpf_link integration libbpf: Add USDT notes parsing and resolution logic libbpf: Wire up spec management and other arch-independent USDT logic libbpf: Add x86-specific USDT arg spec parsing logic Anshuman Khandual (1): perf: Add irq and exception return branch types Geliang Tang (1): bpf: Sync comments for bpf_get_stack Haiyue Wang (1): bpf: Correct the comment for BTF kind bitfield Hengqi Chen (1): libbpf: Close fd in bpf_object__reuse_map Ilya Leoshkevich (1): libbpf: Support Debian in resolve_full_path() Yuntao Wang (1): libbpf: Don't return -EINVAL if hdr_len < offsetofend(core_relo_len) include/uapi/linux/bpf.h | 8 +- include/uapi/linux/btf.h | 4 +- include/uapi/linux/perf_event.h | 2 + src/btf.c | 6 +- src/libbpf.c | 486 +++++++++++- src/libbpf.h | 41 +- src/libbpf.map | 1 + src/libbpf_internal.h | 19 + src/usdt.bpf.h | 256 +++++++ src/usdt.c | 1280 +++++++++++++++++++++++++++++++ 10 files changed, 2080 insertions(+), 23 deletions(-) create mode 100644 src/usdt.bpf.h create mode 100644 src/usdt.c -- 2.30.2 |
||
|
|
3ef1813702 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: c344b9fc2108eeaa347c387219886cf87e520e93
Checkpoint bpf-next commit: 9492450fd28736262dea9143ebb3afc2c131ace1
Baseline bpf commit: 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21
Checkpoint bpf commit: 6bd0c76bd70447aedfeafa9e1fcc249991d6c678
Delyan Kratunov (3):
libbpf: .text routines are subprograms in strict mode
libbpf: Init btf_{key,value}_type_id on internal map open
libbpf: Add subskeleton scaffolding
Guo Zhengkui (1):
libbpf: Fix array_size.cocci warning
Hengqi Chen (1):
bpf: Fix comment for helper bpf_current_task_under_cgroup()
Jiri Olsa (5):
bpf: Add multi kprobe link
bpf: Add cookie support to programs attached with kprobe multi link
libbpf: Add libbpf_kallsyms_parse function
libbpf: Add bpf_link_create support for multi kprobes
libbpf: Add bpf_program__attach_kprobe_multi_opts function
Martin KaFai Lau (1):
bpf: Remove BPF_SKB_DELIVERY_TIME_NONE and rename
s/delivery_time_/tstamp_/
Roberto Sassu (1):
bpf-lsm: Introduce new helper bpf_ima_file_hash()
Toke Høiland-Jørgensen (2):
bpf: Add "live packet" mode for XDP in BPF_PROG_RUN
libbpf: Support batch_size option to bpf_prog_test_run
lic121 (1):
libbpf: Unmap rings when umem deleted
include/uapi/linux/bpf.h | 72 +++++---
src/bpf.c | 13 +-
src/bpf.h | 12 +-
src/libbpf.c | 383 ++++++++++++++++++++++++++++++++++-----
src/libbpf.h | 52 ++++++
src/libbpf.map | 3 +
src/libbpf_internal.h | 5 +
src/libbpf_legacy.h | 4 +
src/xsk.c | 15 +-
9 files changed, 487 insertions(+), 72 deletions(-)
--
2.30.2
|
||
|
|
8e654d74c4 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: b75dacaac4650478ed5a9d33975b91b99016daff
Checkpoint bpf-next commit: c344b9fc2108eeaa347c387219886cf87e520e93
Baseline bpf commit: 75134f16e7dd0007aa474b281935c5f42e79f2c8
Checkpoint bpf commit: 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21
Andrii Nakryiko (2):
libbpf: Allow BPF program auto-attach handlers to bail out
libbpf: Support custom SEC() handlers
Hangbin Liu (1):
bonding: add new option ns_ip6_target
Martin KaFai Lau (1):
bpf: Add __sk_buff->delivery_time_type and
bpf_skb_set_skb_delivery_time()
Stijn Tintel (1):
libbpf: Fix BPF_MAP_TYPE_PERF_EVENT_ARRAY auto-pinning
Xu Kuohai (1):
libbpf: Skip forward declaration when counting duplicated type names
Yuntao Wang (3):
libbpf: Remove redundant check in btf_fixup_datasec()
libbpf: Simplify the find_elf_sec_sz() function
libbpf: Add a check to ensure that page_cnt is non-zero
include/uapi/linux/bpf.h | 41 +++-
include/uapi/linux/if_link.h | 1 +
src/btf_dump.c | 5 +
src/libbpf.c | 388 +++++++++++++++++++++++------------
src/libbpf.h | 109 ++++++++++
src/libbpf.map | 6 +
src/libbpf_version.h | 2 +-
7 files changed, 423 insertions(+), 129 deletions(-)
--
2.30.2
|
||
|
|
93c570ca4b |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 2e3f7bed28376a1a41ce4a58b7163b586e97a546 Checkpoint bpf-next commit: b75dacaac4650478ed5a9d33975b91b99016daff Baseline bpf commit: 45ce4b4f9009102cd9f581196d480a59208690c1 Checkpoint bpf commit: 75134f16e7dd0007aa474b281935c5f42e79f2c8 Andrii Nakryiko (1): libbpf: Fix memleak in libbpf_netlink_recv() src/netlink.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) -- 2.30.2 |
||
|
|
6edaacad4f |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 8cbf062a250ed52148badf6f3ffd03657dd4a3f0
Checkpoint bpf-next commit: 2e3f7bed28376a1a41ce4a58b7163b586e97a546
Baseline bpf commit: 61d06f01f9710b327a53492e5add9f972eb909b3
Checkpoint bpf commit: 45ce4b4f9009102cd9f581196d480a59208690c1
Mauricio Vásquez (2):
libbpf: Split bpf_core_apply_relo()
libbpf: Expose bpf_core_{add,free}_cands() to bpftool
src/libbpf.c | 88 ++++++++++++++++++++++++-------------------
src/libbpf_internal.h | 9 +++++
src/relo_core.c | 79 +++++++++++---------------------------
src/relo_core.h | 42 ++++++++++++++++++---
4 files changed, 118 insertions(+), 100 deletions(-)
--
2.30.2
|
||
|
|
196da61f1d |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: dc37dc617fabfb1c3a16d49f5d8cc20e9e3608ca
Checkpoint bpf-next commit: 8cbf062a250ed52148badf6f3ffd03657dd4a3f0
Baseline bpf commit: fe68195daf34d5dddacd3f93dd3eafc4beca3a0e
Checkpoint bpf commit: 61d06f01f9710b327a53492e5add9f972eb909b3
Alexei Starovoitov (1):
libbpf: Prepare light skeleton for the kernel.
Jakub Sitnicki (1):
selftests/bpf: Cover 4-byte load from remote_port in bpf_sk_lookup
Marco Elver (1):
perf: uapi: Document perf_event_attr::sig_data truncation on 32 bit
architectures
Toke Høiland-Jørgensen (1):
libbpf: Use dynamically allocated buffer when receiving netlink
messages
include/uapi/linux/bpf.h | 3 +-
include/uapi/linux/perf_event.h | 2 +
src/gen_loader.c | 15 ++-
src/netlink.c | 55 +++++++++-
src/skel_internal.h | 185 ++++++++++++++++++++++++++++----
5 files changed, 234 insertions(+), 26 deletions(-)
--
2.30.2
|
||
|
|
528094c0c1 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 227a0713b319e7a8605312dee1c97c97a719a9fc
Checkpoint bpf-next commit: dc37dc617fabfb1c3a16d49f5d8cc20e9e3608ca
Baseline bpf commit: 77b1b8b43ec3c060ecf7e926a92b0f8772171046
Checkpoint bpf commit: fe68195daf34d5dddacd3f93dd3eafc4beca3a0e
Andrii Nakryiko (1):
libbpf: Fix compilation warning due to mismatched printf format
Dan Carpenter (1):
libbpf: Fix signedness bug in btf_dump_array_data()
Hengqi Chen (1):
libbpf: Add BPF_KPROBE_SYSCALL macro
Ilya Leoshkevich (7):
libbpf: Add PT_REGS_SYSCALL_REGS macro
libbpf: Fix accessing syscall arguments on powerpc
libbpf: Fix riscv register names
libbpf: Fix accessing syscall arguments on riscv
libbpf: Allow overriding PT_REGS_PARM1{_CORE}_SYSCALL
libbpf: Fix accessing the first syscall argument on arm64
libbpf: Fix accessing the first syscall argument on s390
Mauricio Vásquez (1):
libbpf: Remove mode check in libbpf_set_strict_mode()
src/bpf_tracing.h | 85 +++++++++++++++++++++++++++++++++++++++++------
src/btf_dump.c | 6 ++--
src/libbpf.c | 8 -----
3 files changed, 79 insertions(+), 20 deletions(-)
--
2.30.2
|
||
|
|
fd181bc349 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: b3dddab2ff10853aa3ef70483415d07fee3034ba
Checkpoint bpf-next commit: 227a0713b319e7a8605312dee1c97c97a719a9fc
Baseline bpf commit: e2bcbd7769ee8f05e1b3d10848aace98973844e4
Checkpoint bpf commit: 77b1b8b43ec3c060ecf7e926a92b0f8772171046
Alexei Starovoitov (2):
libbpf: Open code low level bpf commands.
libbpf: Open code raw_tp_open and link_create commands.
Andrii Nakryiko (2):
libbpf: Stop using deprecated bpf_map__is_offload_neutral()
libbpf: Deprecate forgotten btf__get_map_kv_tids()
Dave Marchevsky (1):
libbpf: Deprecate btf_ext rec_size APIs
Delyan Kratunov (2):
libbpf: Deprecate bpf_prog_test_run_xattr and bpf_prog_test_run
libbpf: Deprecate priv/set_priv storage
Jakub Sitnicki (1):
selftests/bpf: Extend verifier and bpf_sock tests for dst_port loads
Lorenzo Bianconi (1):
libbpf: Deprecate xdp_cpumap, xdp_devmap and classifier sec
definitions
include/uapi/linux/bpf.h | 3 +-
src/bpf.h | 4 ++-
src/btf.h | 7 ++--
src/libbpf.c | 19 ++++++++---
src/libbpf.h | 7 +++-
src/skel_internal.h | 70 ++++++++++++++++++++++++++++++++++++++--
6 files changed, 99 insertions(+), 11 deletions(-)
--
2.30.2
|
||
|
|
1e702e8ffe |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 820e6e227c4053b6b631ae65ef1f65d560cb392b
Checkpoint bpf-next commit: c446fdacb10dcb3b9a9ed3b91d91e72d71d94b03
Baseline bpf commit: baa59504c1cd0cca7d41954a45ee0b3dc78e41a0
Checkpoint bpf commit: e2bcbd7769ee8f05e1b3d10848aace98973844e4
Andrii Nakryiko (3):
libbpf: hide and discourage inconsistently named getters
libbpf: deprecate bpf_map__resize()
libbpf: deprecate bpf_program__is_<type>() and
bpf_program__set_<type>() APIs
Christy Lee (2):
libbpf: Mark bpf_object__open_buffer() API deprecated
libbpf: Mark bpf_object__open_xattr() deprecated
Kajol Jain (1):
perf: Add new macros for mem_hops field
Kenny Yu (2):
bpf: Add bpf_copy_from_user_task() helper
libbpf: Add "iter.s" section for sleepable bpf iterator programs
Kenta Tada (1):
libbpf: Fix the incorrect register read for syscalls on x86_64
Lorenzo Bianconi (4):
bpf: introduce BPF_F_XDP_HAS_FRAGS flag in prog_flags loading the ebpf
program
bpf: introduce bpf_xdp_get_buff_len helper
libbpf: Add SEC name for xdp frags programs
net: xdp: introduce bpf_xdp_pointer utility routine
include/uapi/linux/bpf.h | 41 +++++++++++++++++++++++++++++++++
include/uapi/linux/perf_event.h | 5 +++-
src/bpf_tracing.h | 34 +++++++++++++++++++++++++++
src/btf.h | 5 +---
src/libbpf.c | 32 +++++++++++++++++--------
src/libbpf.h | 34 ++++++++++++++++++++++++---
src/libbpf.map | 2 ++
src/libbpf_internal.h | 3 +++
src/libbpf_legacy.h | 17 ++++++++++++++
9 files changed, 155 insertions(+), 18 deletions(-)
--
2.30.2
|
||
|
|
78e816a15d |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: e80f2a0d194605553315de68284fc41969f81f62
Checkpoint bpf-next commit: 820e6e227c4053b6b631ae65ef1f65d560cb392b
Baseline bpf commit: 343e53754b21ae45530623222aa079fecd3cf942
Checkpoint bpf commit: baa59504c1cd0cca7d41954a45ee0b3dc78e41a0
Andrii Nakryiko (2):
libbpf: deprecate legacy BPF map definitions
libbpf: streamline low-level XDP APIs
Kui-Feng Lee (1):
libbpf: Improve btf__add_btf() with an additional hashmap for strings.
Toke Høiland-Jørgensen (1):
libbpf: Define BTF_KIND_* constants in btf.h to avoid compilation
errors
Usama Arif (1):
uapi/bpf: Add missing description and returns for helper documentation
YiFei Zhu (1):
bpf: Add cgroup helpers bpf_{get,set}_retval to get/set syscall return
value
include/uapi/linux/bpf.h | 33 +++++++++++
src/bpf_helpers.h | 2 +-
src/btf.c | 31 ++++++++++-
src/btf.h | 22 +++++++-
src/libbpf.c | 8 +++
src/libbpf.h | 29 ++++++++++
src/libbpf.map | 4 ++
src/libbpf_legacy.h | 5 ++
src/netlink.c | 117 ++++++++++++++++++++++++++++-----------
9 files changed, 215 insertions(+), 36 deletions(-)
--
2.30.2
|
||
|
|
be89b28f96 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 44bab87d8ca6f0544a9f8fc97bdf33aa5b3c899e Checkpoint bpf-next commit: e80f2a0d194605553315de68284fc41969f81f62 Baseline bpf commit: d6d86830705f173fca6087a3e67ceaf68db80523 Checkpoint bpf commit: 343e53754b21ae45530623222aa079fecd3cf942 Christy Lee (2): libbpf: Rename bpf_prog_attach_xattr() to bpf_prog_attach_opts() libbpf: Deprecate bpf_map__def() API Coco Li (1): gro: add ability to control gro max packet size Mauricio Vásquez (1): libbpf: Use IS_ERR_OR_NULL() in hashmap__free() Yafang Shao (1): libbpf: Fix possible NULL pointer dereference when destroying skeleton include/uapi/linux/if_link.h | 1 + src/bpf.c | 9 +++++++-- src/bpf.h | 4 ++++ src/hashmap.c | 3 +-- src/libbpf.c | 3 +++ src/libbpf.h | 3 ++- src/libbpf.map | 1 + 7 files changed, 19 insertions(+), 5 deletions(-) -- 2.30.2 |
||
|
|
e99f34e144 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: ecf45e60a62dfeb65658abac02f0bdb45b786911 Checkpoint bpf-next commit: 44bab87d8ca6f0544a9f8fc97bdf33aa5b3c899e Baseline bpf commit: 819d11507f6637731947836e6308f5966d64cf9d Checkpoint bpf commit: d6d86830705f173fca6087a3e67ceaf68db80523 Andrii Nakryiko (3): libbpf: Normalize PT_REGS_xxx() macro definitions libbpf: Use 100-character limit to make bpf_tracing.h easier to read libbpf: Improve LINUX_VERSION_CODE detection Christy Lee (3): libbpf: Deprecate bpf_perf_event_read_simple() API libbpf 1.0: Deprecate bpf_map__is_offload_neutral() libbpf 1.0: Deprecate bpf_object__find_map_by_offset() API Grant Seltzer (1): libbpf: Add documentation for bpf_map batch operations Qiang Wang (2): libbpf: Use probe_name for legacy kprobe libbpf: Support repeated legacy kprobes on same function src/bpf.c | 8 +- src/bpf.h | 115 ++++++++++- src/bpf_tracing.h | 431 +++++++++++++++++------------------------- src/libbpf.c | 56 ++++-- src/libbpf.h | 5 +- src/libbpf_internal.h | 2 + src/libbpf_probes.c | 16 -- 7 files changed, 342 insertions(+), 291 deletions(-) -- 2.30.2 |
||
|
|
96268bf0c2 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: a34efe503bc55c5732e328e5191ad549eb899f31 Checkpoint bpf-next commit: e967a20a8fabc6442a78e2e2059e63a4bb6aed08 Baseline bpf commit: f7abc4c8df8c7930d0b9c56d9abee9a1fca635e9 Checkpoint bpf commit: 819d11507f6637731947836e6308f5966d64cf9d Andrii Nakryiko (2): libbpf: Avoid reading past ELF data section end when copying license libbpf: Rework feature-probing APIs src/libbpf.c | 5 +- src/libbpf.h | 52 +++++++++- src/libbpf.map | 3 + src/libbpf_probes.c | 235 ++++++++++++++++++++++++++++++++++---------- 4 files changed, 240 insertions(+), 55 deletions(-) -- 2.30.2 |
||
|
|
61acde2308 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 229fae38d0fc0d6ff58d57cbeb1432da55e58d4f Checkpoint bpf-next commit: a34efe503bc55c5732e328e5191ad549eb899f31 Baseline bpf commit: 0be2516f865f5a876837184a8385163ff64a5889 Checkpoint bpf commit: f7abc4c8df8c7930d0b9c56d9abee9a1fca635e9 Alexei Starovoitov (1): libbpf: Fix gen_loader assumption on number of programs. Andrii Nakryiko (4): libbpf: Don't validate TYPE_ID relo's original imm value libbpf: Fix potential uninit memory read libbpf: Add sane strncpy alternative and use it internally libbpf: Auto-bump RLIMIT_MEMLOCK if kernel needs it for BPF Grant Seltzer (1): libbpf: Add doc comments for bpf_program__(un)pin() Hangbin Liu (1): Bonding: add arp_missed_max option Hou Tao (1): bpf: Add bpf_strncmp helper Jiri Olsa (1): bpf: Add get_func_[arg|ret|arg_cnt] helpers Kui-Feng Lee (1): libbpf: Mark bpf_object__find_program_by_title API deprecated. include/uapi/linux/bpf.h | 39 +++++++++++++++++ include/uapi/linux/if_link.h | 1 + src/bpf.c | 85 +++++++++++++++++++++++++++++++++++- src/bpf.h | 2 + src/btf_dump.c | 4 +- src/gen_loader.c | 12 +++-- src/libbpf.c | 55 +++++------------------ src/libbpf.h | 25 +++++++++++ src/libbpf.map | 1 + src/libbpf_internal.h | 58 ++++++++++++++++++++++++ src/libbpf_legacy.h | 12 ++++- src/relo_core.c | 20 ++++++--- src/xsk.c | 9 ++-- 13 files changed, 260 insertions(+), 63 deletions(-) -- 2.30.2 |
||
|
|
bcf58fc7a5 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 43174f0d4597325cb91f1f1f55263eb6e6101036
Checkpoint bpf-next commit: 229fae38d0fc0d6ff58d57cbeb1432da55e58d4f
Baseline bpf commit: c0d95d3380ee099d735e08618c0d599e72f6c8b0
Checkpoint bpf commit: 0be2516f865f5a876837184a8385163ff64a5889
Alexei Starovoitov (8):
libbpf: Replace btf__type_by_id() with btf_type_by_id().
bpf: Prepare relo_core.c for kernel duty.
bpf: Define enum bpf_core_relo_kind as uapi.
bpf: Pass a set of bpf_core_relo-s to prog_load command.
libbpf: Use CO-RE in the kernel in light skeleton.
libbpf: Support init of inner maps in light skeleton.
libbpf: Clean gen_loader's attach kind.
libbpf: Reduce bpf_core_apply_relo_insn() stack usage.
Andrii Nakryiko (12):
libbpf: Cleanup struct bpf_core_cand.
libbpf: Use __u32 fields in bpf_map_create_opts
libbpf: Add API to get/set log_level at per-program level
libbpf: Deprecate bpf_prog_load_xattr() API
libbpf: Fix bpf_prog_load() log_buf logic for log_level 0
libbpf: Add OPTS-based bpf_btf_load() API
libbpf: Allow passing preallocated log_buf when loading BTF into
kernel
libbpf: Allow passing user log setting through bpf_object_open_opts
libbpf: Improve logging around BPF program loading
libbpf: Preserve kernel error code and remove kprobe prog type
guessing
libbpf: Add per-program log buffer setter and getter
libbpf: Deprecate bpf_object__load_xattr()
Eric Dumazet (1):
tools: sync uapi/linux/if_link.h header
Grant Seltzer (1):
libbpf: Add doc comments in libbpf.h
Joanne Koong (1):
bpf: Add bpf_loop helper
Kumar Kartikeya Dwivedi (2):
libbpf: Avoid double stores for success/failure case of ksym
relocations
libbpf: Avoid reload of imm for weak, unresolved, repeating ksym
Mehrdad Arshad Rad (1):
libbpf: Remove duplicate assignments
Shuyi Cheng (1):
libbpf: Add "bool skipped" to struct bpf_map
Vincent Minet (1):
libbpf: Fix typo in btf__dedup@LIBBPF_0.0.2 definition
huangxuesen (1):
libbpf: Fix trivial typo
include/uapi/linux/bpf.h | 103 +++++++++-
include/uapi/linux/if_link.h | 293 +++++++++++++++++++++++----
src/bpf.c | 88 ++++++---
src/bpf.h | 30 ++-
src/bpf_gen_internal.h | 4 +
src/btf.c | 82 +++++---
src/gen_loader.c | 114 ++++++++---
src/libbpf.c | 371 ++++++++++++++++++++++++-----------
src/libbpf.h | 109 +++++++++-
src/libbpf.map | 9 +
src/libbpf_common.h | 5 +
src/libbpf_internal.h | 3 +-
src/libbpf_probes.c | 2 +-
src/libbpf_version.h | 2 +-
src/relo_core.c | 231 ++++++++++++----------
src/relo_core.h | 103 +++-------
16 files changed, 1138 insertions(+), 411 deletions(-)
--
2.30.2
|
||
|
|
5b4dbd8141 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: d41bc48bfab2076f7db88d079a3a3203dd9c4a54 Checkpoint bpf-next commit: fa721d4f0b91f525339996f4faef7bb072d70162 Baseline bpf commit: 099f896f498a2b26d84f4ddae039b2c542c18b48 Checkpoint bpf commit: c0d95d3380ee099d735e08618c0d599e72f6c8b0 Andrii Nakryiko (2): libbpf: Add runtime APIs to query libbpf version libbpf: Accommodate DWARF/compiler bug with duplicated structs Dave Tucker (1): bpf, docs: Fix ordering of bpf documentation Florent Revest (1): libbpf: Change bpf_program__set_extra_flags to bpf_program__set_flags docs/index.rst | 4 ++-- src/btf.c | 45 +++++++++++++++++++++++++++++++++++++++++---- src/libbpf.c | 23 +++++++++++++++++++++-- src/libbpf.h | 6 +++++- src/libbpf.map | 5 ++++- 5 files changed, 73 insertions(+), 10 deletions(-) -- 2.30.2 |
||
|
|
f0ecdeed3a |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 9faaffbe85edcbdc54096f7f87baa3bc4842a7e2 Checkpoint bpf-next commit: d41bc48bfab2076f7db88d079a3a3203dd9c4a54 Baseline bpf commit: 5833291ab6de9c3e2374336b51c814e515e8f3a5 Checkpoint bpf commit: 099f896f498a2b26d84f4ddae039b2c542c18b48 Kumar Kartikeya Dwivedi (1): libbpf: Perform map fd cleanup for gen_loader in case of error Tiezhu Yang (1): bpf: Change value of MAX_TAIL_CALL_CNT from 32 to 33 Yonghong Song (1): libbpf: Fix a couple of missed btf_type_tag handling in btf.c include/uapi/linux/bpf.h | 2 +- src/bpf_gen_internal.h | 4 ++-- src/btf.c | 2 ++ src/gen_loader.c | 47 +++++++++++++++++++++++++--------------- src/libbpf.c | 4 ++-- 5 files changed, 37 insertions(+), 22 deletions(-) -- 2.30.2 |
||
|
|
5b9d079c7f |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: b8b5cb55f5d3f03cc1479a3768d68173a10359ad Checkpoint bpf-next commit: 9faaffbe85edcbdc54096f7f87baa3bc4842a7e2 Baseline bpf commit: 47b3708c6088a60e7dc3b809dbb0d4c46590b32f Checkpoint bpf commit: 5833291ab6de9c3e2374336b51c814e515e8f3a5 Andrii Nakryiko (11): libbpf: Rename DECLARE_LIBBPF_OPTS into LIBBPF_OPTS libbpf: Pass number of prog load attempts explicitly libbpf: Unify low-level BPF_PROG_LOAD APIs into bpf_prog_load() libbpf: Remove internal use of deprecated bpf_prog_load() variants libbpf: Stop using to-be-deprecated APIs libbpf: Remove deprecation attribute from struct bpf_prog_prep_result libbpf: Free up resources used by inner map definition libbpf: Add ability to get/set per-program load flags libbpf: Turn btf_dedup_opts into OPTS-based struct libbpf: Ensure btf_dump__new() and btf_dump_opts are future-proof libbpf: Make perf_buffer__new() use OPTS-based interface Mark Pashmfouroush (1): bpf: Add ingress_ifindex to bpf_sk_lookup Song Liu (1): bpf: Introduce helper bpf_find_vma Yonghong Song (2): bpf: Support BTF_KIND_TYPE_TAG for btf_type_tag attributes libbpf: Support BTF_KIND_TYPE_TAG include/uapi/linux/bpf.h | 21 +++ include/uapi/linux/btf.h | 3 +- src/bpf.c | 166 +++++++++++++--------- src/bpf.h | 74 +++++++++- src/bpf_gen_internal.h | 8 +- src/btf.c | 69 ++++++--- src/btf.h | 80 +++++++++-- src/btf_dump.c | 40 ++++-- src/gen_loader.c | 30 ++-- src/libbpf.c | 297 +++++++++++++++++++++++---------------- src/libbpf.h | 95 ++++++++++--- src/libbpf.map | 13 ++ src/libbpf_common.h | 14 +- src/libbpf_internal.h | 33 +---- src/libbpf_legacy.h | 1 + src/libbpf_probes.c | 20 ++- src/linker.c | 4 +- src/xsk.c | 34 ++--- 18 files changed, 670 insertions(+), 332 deletions(-) -- 2.30.2 |
||
|
|
26e768783c |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 8388092b2551f7ae34dad800ce828779f7c948c9 Checkpoint bpf-next commit: b8b5cb55f5d3f03cc1479a3768d68173a10359ad Baseline bpf commit: c08455dec5acf4668f5d1eb099f7fedb29f2de5f Checkpoint bpf commit: 47b3708c6088a60e7dc3b809dbb0d4c46590b32f Andrii Nakryiko (7): libbpf: Detect corrupted ELF symbols section libbpf: Improve sanity checking during BTF fix up libbpf: Validate that .BTF and .BTF.ext sections contain data libbpf: Fix section counting logic libbpf: Improve ELF relo sanitization libbpf: Deprecate bpf_program__load() API libbpf: Fix non-C89 loop variable declaration in gen_loader.c Mehrdad Arshad Rad (1): libbpf: Fix lookup_and_delete_elem_flags error reporting src/bpf.c | 4 ++- src/gen_loader.c | 3 +- src/libbpf.c | 79 +++++++++++++++++++++++++++++++----------------- src/libbpf.h | 4 +-- 4 files changed, 59 insertions(+), 31 deletions(-) -- 2.30.2 |
||
|
|
16dfb4ffe4 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 36e70b9b06bf14a0fac87315f0e73d6e17e80aad Checkpoint bpf-next commit: 8388092b2551f7ae34dad800ce828779f7c948c9 Baseline bpf commit: 72f898ca0ab85fde6facf78b14d9f67a4a7b32d1 Checkpoint bpf commit: c08455dec5acf4668f5d1eb099f7fedb29f2de5f Dave Marchevsky (1): libbpf: Deprecate bpf_program__get_prog_info_linear Joanne Koong (1): bpf: Add alignment padding for "map_extra" + consolidate holes Magnus Karlsson (1): libbpf: Deprecate AF_XDP support include/uapi/linux/bpf.h | 1 + src/libbpf.h | 3 ++ src/xsk.h | 90 +++++++++++++++++++++++----------------- 3 files changed, 56 insertions(+), 38 deletions(-) -- 2.30.2 |
||
|
|
c4f9ee9fbb |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: c825f5fee19caf301d9821cd79abaa734322de26 Checkpoint bpf-next commit: 36e70b9b06bf14a0fac87315f0e73d6e17e80aad Baseline bpf commit: 04f8ef5643bcd8bcde25dfdebef998aea480b2ba Checkpoint bpf commit: 72f898ca0ab85fde6facf78b14d9f67a4a7b32d1 Andrii Nakryiko (4): libbpf: Fix off-by-one bug in bpf_core_apply_relo() libbpf: Add ability to fetch bpf_program's underlying instructions libbpf: Deprecate multi-instance bpf_program APIs libbpf: Deprecate ambiguously-named bpf_program__size() API Björn Töpel (1): riscv, libbpf: Add RISC-V (RV64) support to bpf_tracing.h Ilya Leoshkevich (2): libbpf: Fix endianness detection in BPF_CORE_READ_BITFIELD_PROBED() libbpf: Use __BYTE_ORDER__ Joanne Koong (2): bpf: Add bloom filter map implementation libbpf: Add "map_extra" as a per-map-type extra flag Joe Burton (1): libbpf: Deprecate bpf_objects_list Kumar Kartikeya Dwivedi (5): bpf: Add bpf_kallsyms_lookup_name helper libbpf: Add typeless ksym support to gen_loader libbpf: Add weak ksym support to gen_loader libbpf: Ensure that BPF syscall fds are never 0, 1, or 2 libbpf: Use O_CLOEXEC uniformly when opening fds include/uapi/linux/bpf.h | 25 ++++++++ src/bpf.c | 62 ++++++++++++++---- src/bpf_core_read.h | 2 +- src/bpf_gen_internal.h | 14 ++-- src/bpf_tracing.h | 32 ++++++++++ src/btf.c | 6 +- src/btf_dump.c | 8 +-- src/gen_loader.c | 135 ++++++++++++++++++++++++++++++++++----- src/libbpf.c | 105 +++++++++++++++++++++--------- src/libbpf.h | 49 ++++++++++++-- src/libbpf.map | 4 ++ src/libbpf_internal.h | 49 +++++++++++++- src/libbpf_legacy.h | 6 ++ src/libbpf_probes.c | 2 +- src/linker.c | 16 ++--- src/relo_core.c | 2 +- src/xsk.c | 6 +- 17 files changed, 432 insertions(+), 91 deletions(-) -- 2.30.2 |
||
|
|
07ba0eeb8e |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 5319255b8df9271474bc9027cabf82253934f28d
Checkpoint bpf-next commit: c825f5fee19caf301d9821cd79abaa734322de26
Baseline bpf commit: 8d6c414cd2fb74aa6812e9bfec6178f8246c4f3a
Checkpoint bpf commit: 04f8ef5643bcd8bcde25dfdebef998aea480b2ba
Andrii Nakryiko (9):
libbpf: Deprecate btf__finalize_data() and move it into libbpf.c
libbpf: Extract ELF processing state into separate struct
libbpf: Use Elf64-specific types explicitly for dealing with ELF
libbpf: Remove assumptions about uniqueness of .rodata/.data/.bss maps
libbpf: Support multiple .rodata.* and .data.* BPF maps
libbpf: Simplify look up by name of internal maps
libbpf: Fix the use of aligned attribute
libbpf: Fix overflow in BTF sanity checks
libbpf: Fix BTF header parsing checks
Dave Marchevsky (2):
libbpf: Migrate internal use of bpf_program__get_prog_info_linear
bpf: Add verified_insns to bpf_prog_info and fdinfo
Hengqi Chen (2):
bpf: Add bpf_skc_to_unix_sock() helper
libbpf: Add btf__type_cnt() and btf__raw_data() APIs
Ilya Leoshkevich (3):
libbpf: Fix dumping big-endian bitfields
libbpf: Fix dumping non-aligned __int128
libbpf: Fix ptr_is_aligned() usages
Mauricio Vásquez (1):
libbpf: Fix memory leak in btf__dedup()
Stanislav Fomichev (1):
libbpf: Use func name when pinning programs with
LIBBPF_STRICT_SEC_NAME
Yonghong Song (1):
bpf: Rename BTF_KIND_TAG to BTF_KIND_DECL_TAG
include/uapi/linux/bpf.h | 8 +
include/uapi/linux/btf.h | 8 +-
src/btf.c | 187 +++-----
src/btf.h | 17 +-
src/btf_dump.c | 56 ++-
src/libbpf.c | 984 ++++++++++++++++++++++++---------------
src/libbpf.map | 4 +-
src/libbpf_internal.h | 12 +-
src/libbpf_legacy.h | 3 +
src/linker.c | 29 +-
10 files changed, 744 insertions(+), 564 deletions(-)
--
2.30.2
|
||
|
|
92c1e61a60 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 0e545dbaa2797133f57bf8387e8f74cd245cedea Checkpoint bpf-next commit: 5319255b8df9271474bc9027cabf82253934f28d Baseline bpf commit: d0c6416bd7091647f6041599f396bfa19ae30368 Checkpoint bpf commit: 8d6c414cd2fb74aa6812e9bfec6178f8246c4f3a Hou Tao (1): libbpf: Support detecting and attaching of writable tracepoint program src/libbpf.c | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) -- 2.30.2 |
||
|
|
f9f6e92458 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 38261f369fb905552ebdd3feb9699c0788fd3371
Checkpoint bpf-next commit: 0e545dbaa2797133f57bf8387e8f74cd245cedea
Baseline bpf commit: 571fa247ab411f3233eeaaf837c6e646a513b9f8
Checkpoint bpf commit: d0c6416bd7091647f6041599f396bfa19ae30368
Alexei Starovoitov (1):
libbpf: Make gen_loader data aligned.
Andrii Nakryiko (2):
libbpf: Add API that copies all BTF types from one BTF object to
another
libbpf: Fix memory leak in strset
Grant Seltzer (1):
libbpf: Add API documentation convention guidelines
Hengqi Chen (3):
libbpf: Support uniform BTF-defined key/value specification across all
BPF maps
libbpf: Deprecate bpf_object__unload() API since v0.6
libbpf: Deprecate bpf_{map,program}__{prev,next} APIs since v0.7
Kumar Kartikeya Dwivedi (5):
libbpf: Fix skel_internal.h to set errno on loader retval < 0
libbpf: Support kernel module function calls
libbpf: Resolve invalid weak kfunc calls with imm = 0, off = 0
libbpf: Update gen_loader to emit BTF_KIND_FUNC relocations
libbpf: Fix segfault in light skeleton for objects without BTF
Toke Høiland-Jørgensen (1):
libbpf: Properly ignore STT_SECTION symbols in legacy map definitions
docs/libbpf_naming_convention.rst | 40 ++++
src/bpf.c | 1 +
src/bpf_gen_internal.h | 16 +-
src/btf.c | 132 ++++++++++++-
src/btf.h | 22 +++
src/gen_loader.c | 317 +++++++++++++++++++++++++-----
src/libbpf.c | 165 ++++++++++++----
src/libbpf.h | 36 ++--
src/libbpf.map | 5 +
src/libbpf_internal.h | 3 +
src/skel_internal.h | 6 +-
src/strset.c | 1 +
12 files changed, 633 insertions(+), 111 deletions(-)
--
2.30.2
|
||
|
|
e671a47bc2 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 69cd823956ba8ce266a901170b1060db8073bddd
Checkpoint bpf-next commit: 38261f369fb905552ebdd3feb9699c0788fd3371
Baseline bpf commit: bc23f724481759d0fac61dfb5ce979af2190bbe0
Checkpoint bpf commit: 571fa247ab411f3233eeaaf837c6e646a513b9f8
Andrii Nakryiko (15):
libbpf: Use pre-setup sec_def in libbpf_find_attach_btf_id()
libbpf: Deprecated bpf_object_open_opts.relaxed_core_relocs
libbpf: Allow skipping attach_func_name in
bpf_program__set_attach_target()
libbpf: Schedule open_opts.attach_prog_fd deprecation since v0.7
libbpf: Constify all high-level program attach APIs
libbpf: Fix memory leak in legacy kprobe attach logic
libbpf: Refactor and simplify legacy kprobe code
libbpf: Add legacy uprobe attaching support
libbpf: Add "tc" SEC_DEF which is a better name for "classifier"
libbpf: Refactor internal sec_def handling to enable pluggability
libbpf: Reduce reliance of attach_fns on sec_def internals
libbpf: Refactor ELF section handler definitions
libbpf: Complete SEC() table unification for
BPF_APROG_SEC/BPF_EAPROG_SEC
libbpf: Add opt-in strict BPF program section name handling logic
selftests/bpf: Switch sk_lookup selftests to strict SEC("sk_lookup")
use
Dave Marchevsky (4):
bpf: Add bpf_trace_vprintk helper
libbpf: Modify bpf_printk to choose helper based on arg count
libbpf: Use static const fmt string in __bpf_printk
bpf: Clarify data_len param in bpf_snprintf and bpf_seq_printf
comments
Grant Seltzer (1):
libbpf: Add doc comments in libbpf.h
Kumar Kartikeya Dwivedi (1):
libbpf: Fix segfault in static linker for objects without BTF
Matteo Croce (1):
bpf: Update bpf_get_smp_processor_id() documentation
Toke Høiland-Jørgensen (1):
libbpf: Ignore STT_SECTION symbols in 'maps' section
include/uapi/linux/bpf.h | 18 +-
src/bpf_helpers.h | 51 ++-
src/libbpf.c | 882 +++++++++++++++++++++++----------------
src/libbpf.h | 106 +++--
src/libbpf_common.h | 5 +
src/libbpf_internal.h | 7 +
src/libbpf_legacy.h | 9 +
src/linker.c | 8 +-
8 files changed, 679 insertions(+), 407 deletions(-)
--
2.30.2
|
||
|
|
24dbcb3a30 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 47bb27a20d6ea22cd092c1fc2bb4fcecac374838
Checkpoint bpf-next commit: 69cd823956ba8ce266a901170b1060db8073bddd
Baseline bpf commit: 3776f3517ed94d40ff0e3851d7ce2ce17b63099f
Checkpoint bpf commit: bc23f724481759d0fac61dfb5ce979af2190bbe0
Andrii Nakryiko (4):
libbpf: Make libbpf_version.h non-auto-generated
libbpf: Ensure BPF prog types are set before relocations
libbpf: Simplify BPF program auto-attach code
libbpf: Minimize explicit iterator of section definition array
Grant Seltzer (1):
libbpf: Add sphinx code documentation comments
Quentin Monnet (1):
libbpf: Add LIBBPF_DEPRECATED_SINCE macro for scheduling API
deprecations
Rafael David Tinoco (1):
libbpf: Introduce legacy kprobe events support
Rocco Yue (1):
ipv6: add IFLA_INET6_RA_MTU to expose mtu value
Song Liu (1):
bpf: Introduce helper bpf_get_branch_snapshot
Vadim Fedorenko (1):
bpf: Add hardware timestamp field to __sk_buff
Yonghong Song (4):
btf: Change BTF_KIND_* macros to enums
bpf: Support for new btf kind BTF_KIND_TAG
libbpf: Rename btf_{hash,equal}_int to btf_{hash,equal}_int_tag
libbpf: Add support for BTF_KIND_TAG
include/uapi/linux/bpf.h | 24 +++
include/uapi/linux/btf.h | 55 ++++--
include/uapi/linux/if_link.h | 1 +
src/btf.c | 84 +++++++-
src/btf.h | 87 +++++++++
src/btf_dump.c | 3 +
src/libbpf.c | 359 ++++++++++++++++++++++++-----------
src/libbpf.map | 5 +
src/libbpf_common.h | 19 ++
src/libbpf_internal.h | 2 +
src/libbpf_version.h | 9 +
11 files changed, 505 insertions(+), 143 deletions(-)
create mode 100644 src/libbpf_version.h
--
2.30.2
|
||
|
|
7c6d34a2c9 |
sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 372642ea83ff1c71a5d567a704c912359eb59776
Checkpoint bpf-next commit: 3c3bd542ffbb2ac09631313ede46ae66660ae550
Baseline bpf commit: 7c4a22339e7ce7b6ed473a8e682da622c3a774ee
Checkpoint bpf commit: 3776f3517ed94d40ff0e3851d7ce2ce17b63099f
Andrii Nakryiko (8):
bpf: Implement minimal BPF perf link
bpf: Allow to specify user-provided bpf_cookie for BPF perf links
bpf: Add bpf_get_attach_cookie() BPF helper to access bpf_cookie value
libbpf: Remove unused bpf_link's destroy operation, but add dealloc
libbpf: Use BPF perf link when supported by kernel
libbpf: Add bpf_cookie support to bpf_link_create() API
libbpf: Add bpf_cookie to perf_event, kprobe, uprobe, and tp attach
APIs
libbpf: Add uprobe ref counter offset support for USDT semaphores
Hangbin Liu (1):
bonding: add new option lacp_active
Hao Luo (1):
libbpf: Support weak typed ksyms.
Randy Dunlap (1):
libbpf, doc: Eliminate warnings in libbpf_naming_convention
Robin Gögge (1):
libbpf: Fix probe for BPF_PROG_TYPE_CGROUP_SOCKOPT
grantseltzer (1):
bpf: Reconfigure libbpf docs to remove unversioned API
docs/libbpf_api.rst | 27 ----
docs/libbpf_naming_convention.rst | 4 +-
include/uapi/linux/bpf.h | 25 ++++
include/uapi/linux/if_link.h | 1 +
src/bpf.c | 32 ++++-
src/bpf.h | 8 +-
src/libbpf.c | 229 +++++++++++++++++++++++-------
src/libbpf.h | 75 ++++++++--
src/libbpf.map | 3 +
src/libbpf_internal.h | 32 +++--
src/libbpf_probes.c | 4 +-
11 files changed, 332 insertions(+), 108 deletions(-)
delete mode 100644 docs/libbpf_api.rst
--
2.30.2
|
||
|
|
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
|
||
|
|
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 |
||
|
|
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
|
||
|
|
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
|
||
|
|
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
|
||
|
|
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 |
||
|
|
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 |
||
|
|
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
|
||
|
|
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
|
||
|
|
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 |
||
|
|
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 |
||
|
|
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 |