wenlong_12
92410c9ffc
libbpf 升级到1.1版本
...
Signed-off-by: wenlong_12 <wenlong12@huawei.com>
Signed-off-by: wenlong_12 <wenlong12@huawei.com>
2023-05-06 16:26:31 +08:00
Andrii Nakryiko
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
2022-02-09 09:48:32 -08:00
Andrii Nakryiko
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
2022-02-04 10:27:02 -08:00
Andrii Nakryiko
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
2022-01-25 23:37:04 -08:00
Andrii Nakryiko
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
2022-01-21 16:54:32 -08:00
Andrii Nakryiko
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
2022-01-14 22:08:26 -08:00
Andrii Nakryiko
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
2022-01-06 16:20:54 -08:00
Andrii Nakryiko
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
2021-12-17 17:13:53 -08:00
Andrii Nakryiko
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
2021-12-14 17:06:30 -08:00
Andrii Nakryiko
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
2021-12-10 16:17:33 -08:00
Andrii Nakryiko
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
2021-11-23 23:04:18 -08:00
Andrii Nakryiko
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
2021-11-16 13:16:07 -08:00
Andrii Nakryiko
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
2021-11-12 23:46:09 -08:00
Andrii Nakryiko
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
2021-11-06 19:33:03 -07:00
Andrii Nakryiko
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
2021-11-03 16:00:04 -07:00
Andrii Nakryiko
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
2021-11-01 15:10:25 -07:00
Andrii Nakryiko
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
2021-10-22 18:38:55 -07:00
Andrii Nakryiko
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
2021-10-11 12:30:36 -07:00
Andrii Nakryiko
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
2021-10-06 14:40:18 -07:00
Andrii Nakryiko
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
2021-09-29 12:05:46 -07:00
Andrii Nakryiko
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
2021-09-17 14:03:39 -07:00
Andrii Nakryiko
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
2021-08-17 08:18:57 -07:00
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