Andrii Nakryiko
bd9e2feb2a
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 2fcd80144b93ff90836a44f2054b4d82133d3a85
Checkpoint bpf-next commit: c321022244708aec4675de4f032ef1ba9ff0c640
Baseline bpf commit: edadedf1c5b4e4404192a0a4c3c0c05e3b7672ab
Checkpoint bpf commit: 7f645462ca01d01abb94d75e6768c8b3ed3a188b
Andrii Nakryiko (8):
bpf: Add support for BPF_OBJ_GET_INFO_BY_FD for bpf_link
libbpf: Add low-level APIs for new bpf_link commands
libbpf: Refactor BTF-defined map definition parsing logic
libbpf: Refactor map creation logic and fix cleanup leak
libbpf: Add BTF-defined map-in-map support
libbpf: Fix memory leak and possible double-free in hashmap__clear
libbpf: Fix huge memory leak in libbpf_find_vmlinux_btf_id()
libbpf: Fix false uninitialized variable warning
David Ahern (1):
libbpf: Only check mode flags in get_xdp_id
Jakub Wilk (1):
bpf: Fix reStructuredText markup
Maciej Żenczykowski (1):
bpf: add bpf_ktime_get_boot_ns()
Mao Wenan (1):
libbpf: Return err if bpf_object__load failed
Yoshiki Komachi (1):
bpf_helpers.h: Add note for building with vmlinux.h or linux/types.h
Zou Wei (1):
libbpf: Remove unneeded semicolon in btf_dump_emit_type
include/uapi/linux/bpf.h | 46 ++-
src/bpf.c | 19 +-
src/bpf.h | 4 +-
src/bpf_helpers.h | 7 +
src/btf_dump.c | 2 +-
src/hashmap.c | 7 +
src/libbpf.c | 705 +++++++++++++++++++++++++++------------
src/libbpf.map | 6 +
src/netlink.c | 2 +
9 files changed, 572 insertions(+), 226 deletions(-)
--
2.24.1
2020-05-01 18:58:47 -07:00
Andrii Nakryiko
e66d297441
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 1a323ea5356edbb3073dc59d51b9e6b86908857d
Checkpoint bpf-next commit: 2fcd80144b93ff90836a44f2054b4d82133d3a85
Baseline bpf commit: 94b18a87efdd1626a1e6aef87271af4a7c616d36
Checkpoint bpf commit: edadedf1c5b4e4404192a0a4c3c0c05e3b7672ab
Andrey Ignatov (1):
libbpf: Fix bpf_get_link_xdp_id flags handling
Andrii Nakryiko (1):
libbpf: Always specify expected_attach_type on program load if
supported
Jeremy Cline (1):
libbpf: Initialize *nl_pid so gcc 10 is happy
Toke Høiland-Jørgensen (1):
libbpf: Fix type of old_fd in bpf_xdp_set_link_opts
src/libbpf.c | 126 ++++++++++++++++++++++++++++++++------------------
src/libbpf.h | 2 +-
src/netlink.c | 6 +--
3 files changed, 86 insertions(+), 48 deletions(-)
--
2.24.1
2020-04-17 15:31:03 -07:00
Andrii Nakryiko
9a35753b42
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 483d7a30f538e2f8addd32aa9a3d2e94ae55fa65
Checkpoint bpf-next commit: 1a323ea5356edbb3073dc59d51b9e6b86908857d
Baseline bpf commit: 94b18a87efdd1626a1e6aef87271af4a7c616d36
Checkpoint bpf commit: 94b18a87efdd1626a1e6aef87271af4a7c616d36
Andrii Nakryiko (2):
bpf: Implement bpf_link-based cgroup BPF program attachment
libbpf: Add support for bpf_link-based cgroup attachment
Antoine Tenart (1):
net: macsec: add support for offloading to the MAC
Daniel Borkmann (2):
bpf: Add netns cookie and enable it for bpf cgroup hooks
bpf: Enable bpf cgroup hooks to retrieve cgroup v2 and ancestor id
Fletcher Dunn (1):
libbpf, xsk: Init all ring members in xsk_umem__create and
xsk_socket__create
Joe Stringer (1):
bpf: Add socket assign support
KP Singh (2):
bpf: Introduce BPF_PROG_TYPE_LSM
tools/libbpf: Add support for BPF_PROG_TYPE_LSM
Mark Starovoytov (1):
net: macsec: add support for specifying offload upon link creation
Stanislav Fomichev (1):
libbpf: Don't allocate 16M for log buffer by default
Tobias Klauser (1):
libbpf: Remove unused parameter `def` to get_map_field_int
Toke Høiland-Jørgensen (3):
tools: Add EXPECTED_FD-related definitions in if_link.h
libbpf: Add function to set link XDP fd while specifying old program
libbpf: Add setter for initial value for internal maps
include/uapi/linux/bpf.h | 82 ++++++++++++++++++++-
include/uapi/linux/if_link.h | 6 +-
src/bpf.c | 37 +++++++++-
src/bpf.h | 19 +++++
src/btf.c | 20 ++++--
src/libbpf.c | 134 +++++++++++++++++++++++++++++------
src/libbpf.h | 22 +++++-
src/libbpf.map | 9 +++
src/libbpf_probes.c | 1 +
src/netlink.c | 34 ++++++++-
src/xsk.c | 16 ++++-
11 files changed, 345 insertions(+), 35 deletions(-)
--
2.24.1
2020-04-02 00:02:25 -07:00
Andrii Nakryiko
e53dd1c436
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 9b79c0be350d3825ef26ed9eebac6ae50df506bc
Checkpoint bpf-next commit: 483d7a30f538e2f8addd32aa9a3d2e94ae55fa65
Baseline bpf commit: 90db6d772f749e38171d04619a5e3cd8804a6d02
Checkpoint bpf commit: 94b18a87efdd1626a1e6aef87271af4a7c616d36
Andrii Nakryiko (2):
libbpf: Ignore incompatible types with matching name during CO-RE
relocation
libbpf: Provide CO-RE variants of PT_REGS macros
Wenbo Zhang (1):
bpf, libbpf: Fix ___bpf_kretprobe_args1(x) macro definition
src/bpf_tracing.h | 105 +++++++++++++++++++++++++++++++++++++++++++++-
src/libbpf.c | 4 ++
2 files changed, 108 insertions(+), 1 deletion(-)
--
2.17.1
2020-03-17 14:56:36 -07:00
Andrii Nakryiko
cd87f1568e
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: abbc61a5f26d52a5d3abbbe552b275360b2c6631
Checkpoint bpf-next commit: 9b79c0be350d3825ef26ed9eebac6ae50df506bc
Baseline bpf commit: 542bf38f11d11bf98c69b2f83f3519ada8a76e95
Checkpoint bpf commit: 90db6d772f749e38171d04619a5e3cd8804a6d02
Andrii Nakryiko (4):
libbpf: Fix handling of optional field_name in
btf_dump__emit_type_decl
bpf: Switch BPF UAPI #define constants used from BPF program side to
enums
libbpf: Assume unsigned values for BTF_KIND_ENUM
libbpf: Split BTF presence checks into libbpf- and kernel-specific
parts
Carlos Neira (1):
bpf: Added new helper bpf_get_ns_current_pid_tgid
Eelco Chaudron (1):
bpf: Add bpf_xdp_output() helper
KP Singh (2):
bpf: Introduce BPF_MODIFY_RETURN
tools/libbpf: Add support for BPF_MODIFY_RETURN
Willem de Bruijn (1):
bpf: Sync uapi bpf.h to tools/
include/uapi/linux/bpf.h | 223 +++++++++++++++++++++++++++------------
src/btf_dump.c | 10 +-
src/libbpf.c | 21 +++-
3 files changed, 176 insertions(+), 78 deletions(-)
--
2.17.1
2020-03-12 22:57:51 -07:00
Andrii Nakryiko
7e7a15321e
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 503d539a6e417b018616bf3060e0b5814fafce47
Checkpoint bpf-next commit: abbc61a5f26d52a5d3abbbe552b275360b2c6631
Baseline bpf commit: 41f57cfde186dba6e357f9db25eafbed017e4487
Checkpoint bpf commit: 542bf38f11d11bf98c69b2f83f3519ada8a76e95
Andrii Nakryiko (3):
libbpf: Fix use of PT_REGS_PARM macros with vmlinux.h
libbpf: Merge selftests' bpf_trace_helpers.h into libbpf's
bpf_tracing.h
libbpf: Add bpf_link pinning/unpinning
src/bpf_tracing.h | 120 +++++++++++++++++++++++++++++++++++++++++-
src/libbpf.c | 131 ++++++++++++++++++++++++++++++++++++----------
src/libbpf.h | 5 ++
src/libbpf.map | 5 ++
4 files changed, 233 insertions(+), 28 deletions(-)
--
2.17.1
2020-03-03 00:05:56 -08:00
Andrii Nakryiko
c4468dec74
sync: bump kernel commit to latest to pull in latest selftests
...
Manually bump sync commit from kernel repo. There are no libbpf changes, but
we need latest selftest patches to try to debug more of crashing selftests.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
2020-02-25 20:01:06 -08:00
Andrii Nakryiko
7f2d538c27
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 5327644614a18f5d0ff845844a4e9976210b3d8d
Checkpoint bpf-next commit: 8eece07c011f88da0ccf4127fca9a4e4faaf58ae
Baseline bpf commit: 41f57cfde186dba6e357f9db25eafbed017e4487
Checkpoint bpf commit: 41f57cfde186dba6e357f9db25eafbed017e4487
Eelco Chaudron (2):
libbpf: Bump libpf current version to v0.0.8
libbpf: Add support for dynamic program attach target
src/libbpf.c | 34 ++++++++++++++++++++++++++++++----
src/libbpf.h | 4 ++++
src/libbpf.map | 5 +++++
3 files changed, 39 insertions(+), 4 deletions(-)
--
2.17.1
2020-02-22 09:20:41 -08:00
Andrii Nakryiko
e287979374
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 35b9211c0a2427e8f39e534f442f43804fc8d5ca
Checkpoint bpf-next commit: 5327644614a18f5d0ff845844a4e9976210b3d8d
Baseline bpf commit: 08dc225d8868d5094ada62f471ebdfcce9dbc298
Checkpoint bpf commit: 41f57cfde186dba6e357f9db25eafbed017e4487
Andrii Nakryiko (1):
libbpf: Relax check whether BTF is mandatory
Daniel Xu (1):
selftests/bpf: Add bpf_read_branch_records() selftest
Toke Høiland-Jørgensen (2):
bpf, uapi: Remove text about bpf_redirect_map() giving higher
performance
libbpf: Sanitise internal map names so they are not rejected by the
kernel
include/uapi/linux/bpf.h | 41 ++++++++++++++++++++++++++++++----------
src/libbpf.c | 12 ++++++++----
2 files changed, 39 insertions(+), 14 deletions(-)
--
2.17.1
2020-02-20 17:56:42 -08:00
Andrii Nakryiko
e5dbc1a96f
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: a6ed02cac690b635dbb938690e795812ce1e14ca
Checkpoint bpf-next commit: 35b9211c0a2427e8f39e534f442f43804fc8d5ca
Baseline bpf commit: 1712b2fff8c682d145c7889d2290696647d82dab
Checkpoint bpf commit: 08dc225d8868d5094ada62f471ebdfcce9dbc298
Alexei Starovoitov (1):
libbpf: Add support for program extensions
Andrii Nakryiko (2):
libbpf: Improve handling of failed CO-RE relocations
libbpf: Fix realloc usage in bpf_core_find_cands
Antoine Tenart (1):
net: macsec: introduce the macsec_context structure
Martin KaFai Lau (1):
bpf: Sync uapi bpf.h to tools/
include/uapi/linux/bpf.h | 10 +++-
include/uapi/linux/if_link.h | 7 +++
src/bpf.c | 3 +-
src/libbpf.c | 112 +++++++++++++++++++++--------------
src/libbpf.h | 8 ++-
src/libbpf.map | 2 +
src/libbpf_probes.c | 1 +
7 files changed, 97 insertions(+), 46 deletions(-)
--
2.17.1
2020-01-24 14:08:27 -08:00
Andrii Nakryiko
033ad7ee78
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 20f21d98cf12b8ecd69e8defc93fae9e3b353b13
Checkpoint bpf-next commit: a6ed02cac690b635dbb938690e795812ce1e14ca
Baseline bpf commit: 1712b2fff8c682d145c7889d2290696647d82dab
Checkpoint bpf commit: 1712b2fff8c682d145c7889d2290696647d82dab
Andrii Nakryiko (3):
libbpf: Fix error handling bug in btf_dump__new
libbpf: Simplify BTF initialization logic
libbpf: Fix potential multiplication overflow in mmap() size
calculation
KP Singh (1):
libbpf: Load btf_vmlinux only once per object.
src/btf_dump.c | 1 +
src/libbpf.c | 174 ++++++++++++++++++++++++++++++-------------------
2 files changed, 109 insertions(+), 66 deletions(-)
--
2.17.1
2020-01-17 20:33:22 -08:00
Andrii Nakryiko
fa29cc01ff
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 858e284f0ec18bff2620d9a6afe764dc683f8ba1
Checkpoint bpf-next commit: 20f21d98cf12b8ecd69e8defc93fae9e3b353b13
Baseline bpf commit: 1712b2fff8c682d145c7889d2290696647d82dab
Checkpoint bpf commit: 1712b2fff8c682d145c7889d2290696647d82dab
Andrii Nakryiko (1):
libbpf: Revert bpf_helper_defs.h inclusion regression
src/bpf_helpers.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.17.1
2020-01-16 20:06:41 -08:00
Andrii Nakryiko
080fd68e9c
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 1d1a3bcffe360a56fd8cc287ed74d4c3066daf42
Checkpoint bpf-next commit: 858e284f0ec18bff2620d9a6afe764dc683f8ba1
Baseline bpf commit: e7a5f1f1cd0008e5ad379270a8657e121eedb669
Checkpoint bpf commit: 1712b2fff8c682d145c7889d2290696647d82dab
Andrii Nakryiko (2):
tools: Sync uapi/linux/if_link.h
libbpf: Support .text sub-calls relocations
Brian Vazquez (1):
libbpf: Fix unneeded extra initialization in bpf_map_batch_common
Martin KaFai Lau (1):
libbpf: Expose bpf_find_kernel_btf as a LIBBPF_API
Yonghong Song (3):
bpf: Add bpf_send_signal_thread() helper
tools/bpf: Sync uapi header bpf.h
libbpf: Add libbpf support to batch ops
include/uapi/linux/bpf.h | 40 +++++++++++-
include/uapi/linux/if_link.h | 1 +
src/bpf.c | 58 +++++++++++++++++
src/bpf.h | 22 +++++++
src/btf.c | 102 +++++++++++++++++++++++++++--
src/btf.h | 2 +
src/libbpf.c | 122 +++++++----------------------------
src/libbpf.map | 5 ++
8 files changed, 247 insertions(+), 105 deletions(-)
--
2.17.1
2020-01-16 10:38:48 -08:00
Andrii Nakryiko
8687395198
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 2bbc078f812d45b8decb55935dab21199bd21489
Checkpoint bpf-next commit: 1d1a3bcffe360a56fd8cc287ed74d4c3066daf42
Baseline bpf commit: 3c2f450e553ce47fcb0d6141807a8858e3213c9c
Checkpoint bpf commit: e7a5f1f1cd0008e5ad379270a8657e121eedb669
Alexei Starovoitov (1):
libbpf: Sanitize global functions
Andrey Ignatov (1):
bpf: Document BPF_F_QUERY_EFFECTIVE flag
Andrii Nakryiko (3):
libbpf: Make bpf_map order and indices stable
selftests/bpf: Ensure bpf_helper_defs.h are taken from selftests dir
libbpf: Poison kernel-only integer types
Martin KaFai Lau (2):
bpf: Synch uapi bpf.h to tools/
bpf: libbpf: Add STRUCT_OPS support
Michal Rostecki (1):
libbpf: Add probe for large INSN limit
include/uapi/linux/bpf.h | 26 +-
include/uapi/linux/btf.h | 6 +
src/bpf.c | 13 +-
src/bpf.h | 5 +-
src/bpf_helpers.h | 2 +-
src/bpf_prog_linfo.c | 3 +
src/btf.c | 3 +
src/btf_dump.c | 3 +
src/hashmap.c | 3 +
src/libbpf.c | 701 +++++++++++++++++++++++++++++++++++++--
src/libbpf.h | 6 +-
src/libbpf.map | 4 +
src/libbpf_errno.c | 3 +
src/libbpf_probes.c | 26 ++
src/netlink.c | 3 +
src/nlattr.c | 3 +
src/str_error.c | 3 +
src/xsk.c | 3 +
18 files changed, 784 insertions(+), 32 deletions(-)
--
2.17.1
2020-01-10 11:15:12 -08:00
Andrii Nakryiko
5033d7177e
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 7745ff9842617323adbe24e71c495d5ebd9aa352
Checkpoint bpf-next commit: 2bbc078f812d45b8decb55935dab21199bd21489
Baseline bpf commit: 1148f9adbe71415836a18a36c1b4ece999ab0973
Checkpoint bpf commit: 3c2f450e553ce47fcb0d6141807a8858e3213c9c
Andrey Ignatov (2):
bpf: Support replacing cgroup-bpf program in MULTI mode
libbpf: Introduce bpf_prog_attach_xattr
Andrii Nakryiko (1):
libbpf: Support CO-RE relocations for LDX/ST/STX instructions
include/uapi/linux/bpf.h | 10 ++++++++++
src/bpf.c | 17 ++++++++++++++++-
src/bpf.h | 11 +++++++++++
src/libbpf.c | 31 ++++++++++++++++++++++++++++---
src/libbpf.map | 1 +
5 files changed, 66 insertions(+), 4 deletions(-)
--
2.17.1
2019-12-30 12:05:19 -08:00
Andrii Nakryiko
7c5583ab2d
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 679152d3a32e305c213f83160c328c37566ae8bc
Checkpoint bpf-next commit: 7745ff9842617323adbe24e71c495d5ebd9aa352
Baseline bpf commit: fe3300897cbfd76c6cb825776e5ac0ca50a91ca4
Checkpoint bpf commit: 1148f9adbe71415836a18a36c1b4ece999ab0973
Andrii Nakryiko (26):
libbpf: Extract and generalize CPU mask parsing logic
libbpf: Don't attach perf_buffer to offline/missing CPUs
libbpf: Don't require root for bpf_object__open()
libbpf: Add generic bpf_program__attach()
libbpf: Move non-public APIs from libbpf.h to libbpf_internal.h
libbpf: Add BPF_EMBED_OBJ macro for embedding BPF .o files
libbpf: Extract common user-facing helpers
libbpf: Expose btf__align_of() API
libbpf: Expose BTF-to-C type declaration emitting API
libbpf: Expose BPF program's function name
libbpf: Refactor global data map initialization
libbpf: Postpone BTF ID finding for TRACING programs to load phase
libbpf: Reduce log level of supported section names dump
libbpf: Add BPF object skeleton support
libbpf: Extract internal map names into constants
libbpf: Support libbpf-provided extern variables
bpftool: Generate externs datasec in BPF skeleton
libbpf: Support flexible arrays in CO-RE
libbpf: Add zlib as a dependency in pkg-config template
libbpf: Reduce log level for custom section names
libbpf: Remove BPF_EMBED_OBJ macro from libbpf.h
libbpf: Add bpf_link__disconnect() API to preserve underlying BPF
resource
libbpf: Put Kconfig externs into .kconfig section
libbpf: Allow to augment system Kconfig through extra optional config
libbpf: BTF is required when externs are present
libbpf: Fix another __u64 printf warning
Jakub Sitnicki (1):
libbpf: Recognize SK_REUSEPORT programs from section name
Prashant Bhole (1):
libbpf: Fix build by renaming variables
Toke Høiland-Jørgensen (4):
libbpf: Print hint about ulimit when getting permission denied error
libbpf: Fix libbpf_common.h when installing libbpf through 'make
install'
libbpf: Add missing newline in opts validation macro
libbpf: Fix printing of ulimit value
include/uapi/linux/btf.h | 7 +-
src/bpf.h | 6 +-
src/bpf_helpers.h | 11 +
src/btf.c | 48 +-
src/btf.h | 29 +-
src/btf_dump.c | 115 ++-
src/libbpf.c | 1673 ++++++++++++++++++++++++++++++++------
src/libbpf.h | 107 +--
src/libbpf.map | 12 +
src/libbpf.pc.template | 2 +-
src/libbpf_common.h | 40 +
src/libbpf_internal.h | 21 +-
12 files changed, 1678 insertions(+), 393 deletions(-)
create mode 100644 src/libbpf_common.h
--
2.17.1
2019-12-19 15:34:27 -08:00
Andrii Nakryiko
c2fc7c15a3
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: e7096c131e5161fa3b8e52a650d7719d2857adfd
Checkpoint bpf-next commit: 679152d3a32e305c213f83160c328c37566ae8bc
Baseline bpf commit: e42617b825f8073569da76dc4510bfa019b1c35a
Checkpoint bpf commit: fe3300897cbfd76c6cb825776e5ac0ca50a91ca4
Andrii Nakryiko (2):
libbpf: Bump libpf current version to v0.0.7
libbpf: Fix printf compilation warnings on ppc64le arch
src/libbpf.c | 37 +++++++++++++++++++------------------
src/libbpf.map | 3 +++
2 files changed, 22 insertions(+), 18 deletions(-)
--
2.17.1
2019-12-12 14:40:26 -08:00
Andrii Nakryiko
ab067ed371
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: b615e5a1e067dcb327482d1af7463268b89b1629
Checkpoint bpf-next commit: e7096c131e5161fa3b8e52a650d7719d2857adfd
Baseline bpf commit: 34e59836565e36fade1464e054a3551c1a0364be
Checkpoint bpf commit: e42617b825f8073569da76dc4510bfa019b1c35a
Alexei Starovoitov (2):
libbpf: Fix sym->st_value print on 32-bit arches
selftests/bpf: Add test for BPF trampoline
Andrii Nakryiko (1):
libbpf: Fix global variable relocation
Martin KaFai Lau (1):
bpf: Introduce BPF_TRACE_x helper for the tracing tests
src/libbpf.c | 45 ++++++++++++++++++++-------------------------
1 file changed, 20 insertions(+), 25 deletions(-)
--
2.17.1
2019-12-09 09:44:20 -08:00
Andrii Nakryiko
9f519af7f4
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: e47a179997ceee6864fbae620eee09ea9c345a4d
Checkpoint bpf-next commit: b615e5a1e067dcb327482d1af7463268b89b1629
Baseline bpf commit: d0fbb51dfaa612f960519b798387be436e8f83c5
Checkpoint bpf commit: 34e59836565e36fade1464e054a3551c1a0364be
Alexei Starovoitov (4):
libbpf: Introduce btf__find_by_name_kind()
libbpf: Add support to attach to fentry/fexit tracing progs
selftests/bpf: Add test for BPF trampoline
libbpf: Add support for attaching BPF programs to other BPF programs
Andrii Nakryiko (8):
bpf: Add mmap() support for BPF_MAP_TYPE_ARRAY
libbpf: Make global data internal arrays mmap()-able, if possible
libbpf: Fix call relocation offset calculation bug
libbpf: Refactor relocation handling
libbpf: Fix various errors and warning reported by checkpatch.pl
libbpf: Support initialized global variables
libbpf: Fix bpf_object name determination for bpf_object__open_file()
libbpf: Fix usage of u32 in userspace code
Luigi Rizzo (1):
net-af_xdp: Use correct number of channels from ethtool
Martin KaFai Lau (1):
bpf: Introduce BPF_TRACE_x helper for the tracing tests
include/uapi/linux/bpf.h | 6 +
src/bpf.c | 8 +-
src/bpf.h | 5 +-
src/btf.c | 22 ++
src/btf.h | 2 +
src/libbpf.c | 478 ++++++++++++++++++++++++++-------------
src/libbpf.h | 7 +-
src/libbpf.map | 3 +
src/xsk.c | 11 +-
9 files changed, 371 insertions(+), 171 deletions(-)
--
2.17.1
2019-11-25 16:55:44 -08:00
Andrii Nakryiko
c51c492a65
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: ed578021210e14f15a654c825fba6a700c9a39a7
Checkpoint bpf-next commit: e47a179997ceee6864fbae620eee09ea9c345a4d
Baseline bpf commit: 7de086909365cd60a5619a45af3f4152516fd75c
Checkpoint bpf commit: d0fbb51dfaa612f960519b798387be436e8f83c5
Andrii Nakryiko (6):
libbpf: Fix negative FD close() in xsk_setup_xdp_prog()
libbpf: Fix memory leak/double free issue
libbpf: Fix potential overflow issue
libbpf: Fix another potential overflow issue in bpf_prog_linfo
libbpf: Make btf__resolve_size logic always check size error condition
libbpf: Improve handling of corrupted ELF during map initialization
Magnus Karlsson (2):
libbpf: Support XDP_SHARED_UMEM with external XDP program
libbpf: Allow for creating Rx or Tx only AF_XDP sockets
Toke Høiland-Jørgensen (5):
libbpf: Unpin auto-pinned maps if loading fails
libbpf: Propagate EPERM to caller on program load
libbpf: Use pr_warn() when printing netlink errors
libbpf: Add bpf_get_link_xdp_info() function to get more XDP
information
libbpf: Add getter for program size
src/bpf.c | 2 +-
src/bpf_prog_linfo.c | 14 +++----
src/btf.c | 3 +-
src/libbpf.c | 47 ++++++++++++++----------
src/libbpf.h | 13 +++++++
src/libbpf.map | 2 +
src/netlink.c | 87 +++++++++++++++++++++++++++++---------------
src/nlattr.c | 10 ++---
src/xsk.c | 34 +++++++++++------
9 files changed, 136 insertions(+), 76 deletions(-)
--
2.17.1
2019-11-13 16:39:58 -08:00
Andrii Nakryiko
4da243c179
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: f23c7ce341c2dfd187d4e3712ba6c110969463a0
Checkpoint bpf-next commit: ed578021210e14f15a654c825fba6a700c9a39a7
Baseline bpf commit: 7de086909365cd60a5619a45af3f4152516fd75c
Checkpoint bpf commit: 7de086909365cd60a5619a45af3f4152516fd75c
Andrii Nakryiko (1):
libbpf: Simplify BPF_CORE_READ_BITFIELD_PROBED usage
src/bpf_core_read.h | 27 +++++++++++----------------
1 file changed, 11 insertions(+), 16 deletions(-)
--
2.17.1
2019-11-06 14:11:45 -08:00
Andrii Nakryiko
6d4abdda08
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: a566e35f1e8b4b3be1e96a804d1cca38b578167c
Checkpoint bpf-next commit: f23c7ce341c2dfd187d4e3712ba6c110969463a0
Baseline bpf commit: fc11078dd3514c65eabce166b8431a56d8a667cb
Checkpoint bpf commit: 7de086909365cd60a5619a45af3f4152516fd75c
Alexei Starovoitov (1):
libbpf: Add support for prog_tracing
Andrii Nakryiko (2):
libbpf: Add support for relocatable bitfields
libbpf: Add support for field size relocations
Daniel Borkmann (1):
bpf: Add probe_read_{user, kernel} and probe_read_{user, kernel}_str
helpers
Toke Høiland-Jørgensen (4):
libbpf: Fix error handling in bpf_map__reuse_fd()
libbpf: Store map pin path and status in struct bpf_map
libbpf: Move directory creation into _pin() functions
libbpf: Add auto-pinning of maps when loading BPF objects
include/uapi/linux/bpf.h | 124 ++++---
src/bpf.c | 8 +-
src/bpf.h | 5 +-
src/bpf_core_read.h | 79 +++++
src/bpf_helpers.h | 6 +
src/libbpf.c | 707 ++++++++++++++++++++++++++++++---------
src/libbpf.h | 23 +-
src/libbpf.map | 5 +
src/libbpf_internal.h | 4 +
src/libbpf_probes.c | 1 +
10 files changed, 749 insertions(+), 213 deletions(-)
--
2.17.1
2019-11-05 16:00:11 -08:00
Andrii Nakryiko
05346cfd90
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 3820729160440158a014add69cc0d371061a96b2
Checkpoint bpf-next commit: a566e35f1e8b4b3be1e96a804d1cca38b578167c
Baseline bpf commit: 2afd23f78f39da84937006ecd24aa664a4ab052b
Checkpoint bpf commit: fc11078dd3514c65eabce166b8431a56d8a667cb
Andrii Nakryiko (2):
libbpf: Fix off-by-one error in ELF sanity check
libbpf: Don't use kernel-side u32 type in xsk.c
Magnus Karlsson (1):
libbpf: Fix compatibility for kernels without need_wakeup
src/libbpf.c | 2 +-
src/xsk.c | 83 ++++++++++++++++++++++++++++++++++++++++++++--------
2 files changed, 72 insertions(+), 13 deletions(-)
--
2.17.1
2019-10-29 09:25:36 -07:00
Andrii Nakryiko
f02e248ae1
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 5e5b03d163e15a40b0fa57c70b4e8edd549b0b98
Checkpoint bpf-next commit: 3820729160440158a014add69cc0d371061a96b2
Baseline bpf commit: cd7455f1013ef96d5cbf5c05d2b7c06f273810a6
Checkpoint bpf commit: 2afd23f78f39da84937006ecd24aa664a4ab052b
Björn Töpel (1):
libbpf: Use implicit XSKMAP lookup from AF_XDP XDP program
KP Singh (1):
libbpf: Fix strncat bounds error in libbpf_prog_type_by_name
src/libbpf.c | 2 +-
src/xsk.c | 42 ++++++++++++++++++++++++++++++++----------
2 files changed, 33 insertions(+), 11 deletions(-)
--
2.17.1
2019-10-24 22:59:06 -07:00
Andrii Nakryiko
e441f55089
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: da927466a152a9497c05926a95c6aebba6d3ad5b
Checkpoint bpf-next commit: 5e5b03d163e15a40b0fa57c70b4e8edd549b0b98
Baseline bpf commit: 9e8acd9c44a0dd52b2922eeb82398c04e356c058
Checkpoint bpf commit: cd7455f1013ef96d5cbf5c05d2b7c06f273810a6
Alexei Starovoitov (3):
bpf: Add attach_btf_id attribute to program load
libbpf: Auto-detect btf_id of BTF-based raw_tracepoints
bpf: Check types of arguments passed into helpers
Andrii Nakryiko (5):
tools: Sync if_link.h
libbpf: Add bpf_program__get_{type, expected_attach_type) APIs
libbpf: Add uprobe/uretprobe and tp/raw_tp section suffixes
libbpf: Teach bpf_object__open to guess program types
libbpf: Make DECLARE_LIBBPF_OPTS macro strictly a variable declaration
John Fastabend (1):
bpf, libbpf: Add kernel version section parsing back
Kefeng Wang (1):
tools, bpf: Rename pr_warning to pr_warn to align with kernel logging
include/uapi/linux/bpf.h | 28 +-
include/uapi/linux/if_link.h | 2 +
src/bpf.c | 3 +
src/btf.c | 56 +--
src/btf_dump.c | 18 +-
src/libbpf.c | 830 +++++++++++++++++++----------------
src/libbpf.h | 24 +-
src/libbpf.map | 2 +
src/libbpf_internal.h | 8 +-
src/xsk.c | 4 +-
10 files changed, 539 insertions(+), 436 deletions(-)
--
2.17.1
2019-10-22 16:15:55 -07:00
Andrii Nakryiko
ade4409352
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: f05c2001ecc98629cecd47728e4db11e5a17e58d
Checkpoint bpf-next commit: da927466a152a9497c05926a95c6aebba6d3ad5b
Baseline bpf commit: 106c35dda32f8b63f88cad7433f1b8bb0056958a
Checkpoint bpf commit: 9e8acd9c44a0dd52b2922eeb82398c04e356c058
Andrii Nakryiko (7):
libbpf: Fix struct end padding in btf_dump
libbpf: Generate more efficient BPF_CORE_READ code
libbpf: Handle invalid typedef emitted by old GCC
libbpf: Update BTF reloc support to latest Clang format
libbpf: Refactor bpf_object__open APIs to use common opts
libbpf: Add support for field existance CO-RE relocation
libbpf: Add BPF-side definitions of supported field relocation kinds
Ilya Maximets (1):
libbpf: Fix passing uninitialized bytes to setsockopt
src/bpf_core_read.h | 28 ++++++-
src/btf.c | 16 ++--
src/btf.h | 4 +-
src/btf_dump.c | 19 ++++-
src/libbpf.c | 169 ++++++++++++++++++++++++++----------------
src/libbpf.h | 4 +-
src/libbpf_internal.h | 25 +++++--
src/xsk.c | 1 +
8 files changed, 180 insertions(+), 86 deletions(-)
--
2.17.1
2019-10-15 19:43:48 -07:00
Andrii Nakryiko
46688687d5
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 02dc96ef6c25f990452c114c59d75c368a1f4c8f
Checkpoint bpf-next commit: f05c2001ecc98629cecd47728e4db11e5a17e58d
Baseline bpf commit: 1bd63524593b964934a33afd442df16b8f90e2b5
Checkpoint bpf commit: 106c35dda32f8b63f88cad7433f1b8bb0056958a
Andrii Nakryiko (7):
libbpf: Bump current version to v0.0.6
libbpf: stop enforcing kern_version, populate it for users
libbpf: add bpf_object__open_{file, mem} w/ extensible opts
libbpf: fix bpf_object__name() to actually return object name
uapi/bpf: fix helper docs
libbpf: Move bpf_{helpers, helper_defs, endian, tracing}.h into libbpf
libbpf: Add BPF_CORE_READ/BPF_CORE_READ_INTO helpers
include/uapi/linux/bpf.h | 32 +++----
src/bpf_core_read.h | 167 +++++++++++++++++++++++++++++++++
src/bpf_endian.h | 72 +++++++++++++++
src/bpf_helpers.h | 41 ++++++++
src/bpf_tracing.h | 195 +++++++++++++++++++++++++++++++++++++++
src/libbpf.c | 183 ++++++++++++++++++------------------
src/libbpf.h | 48 +++++++++-
src/libbpf.map | 6 ++
src/libbpf_internal.h | 32 +++++++
9 files changed, 661 insertions(+), 115 deletions(-)
create mode 100644 src/bpf_core_read.h
create mode 100644 src/bpf_endian.h
create mode 100644 src/bpf_helpers.h
create mode 100644 src/bpf_tracing.h
--
2.17.1
2019-10-09 14:42:45 -07:00
Andrii Nakryiko
886e8149a0
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: b41dae061bbd722b9d7fa828f35d22035b218e18
Checkpoint bpf-next commit: 02dc96ef6c25f990452c114c59d75c368a1f4c8f
Baseline bpf commit: e3439af4a339acd7fddbd6d59b8ecefaac07a611
Checkpoint bpf commit: 1bd63524593b964934a33afd442df16b8f90e2b5
Yonghong Song (1):
libbpf: handle symbol versioning properly for libbpf.a
src/libbpf_internal.h | 16 ++++++++++++++++
src/xsk.c | 4 ++--
2 files changed, 18 insertions(+), 2 deletions(-)
--
2.17.1
2019-09-30 16:10:45 -07:00
Andrii Nakryiko
d2f307c7f6
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 0bb52b0dfc88a155688f492aba8e686147600278
Checkpoint bpf-next commit: b41dae061bbd722b9d7fa828f35d22035b218e18
Baseline bpf commit: 2c238177bd7f4b14bdf7447cc1cd9bb791f147e6
Checkpoint bpf commit: e3439af4a339acd7fddbd6d59b8ecefaac07a611
Alexei Starovoitov (1):
tools/bpf: sync bpf.h
Andrii Nakryiko (2):
libbpf: fix false uninitialized variable warning
libbpf: Teach btf_dumper to emit stand-alone anonymous enum
definitions
Daniel Borkmann (1):
bpf: sync bpf.h to tools infrastructure
Kevin Laatz (1):
libbpf: add flags to umem config
Toke Høiland-Jørgensen (1):
libbpf: Remove getsockopt() check for XDP_OPTIONS
include/uapi/linux/bpf.h | 7 ++-
include/uapi/linux/if_xdp.h | 9 ++++
src/btf_dump.c | 94 ++++++++++++++++++++++++++++++++++---
src/libbpf.map | 1 +
src/xsk.c | 44 +++++++++++------
src/xsk.h | 27 +++++++++++
6 files changed, 160 insertions(+), 22 deletions(-)
--
2.17.1
2019-09-26 13:29:16 -07:00
Yonghong Song
476e158b07
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: b753c5a7f99f390fc100de18647ce0dcacdceafc
Checkpoint bpf-next commit: 0bb52b0dfc88a155688f492aba8e686147600278
Baseline bpf commit: 91b4db5313a2c793aabc2143efb8ed0cf0fdd097
Checkpoint bpf commit: 2c238177bd7f4b14bdf7447cc1cd9bb791f147e6
Andrii Nakryiko (1):
libbpf: make libbpf.map source of truth for libbpf version
Ivan Khoronzhuk (1):
libbpf: use LFS (_FILE_OFFSET_BITS) instead of direct mmap2 syscall
Magnus Karlsson (1):
libbpf: add support for need_wakeup flag in AF_XDP part
Peter Wu (1):
bpf: sync bpf.h to tools/
Quentin Monnet (3):
tools: bpf: synchronise BPF UAPI header with tools
libbpf: refactor bpf_*_get_next_id() functions
libbpf: add bpf_btf_get_next_id() to cycle through BTF objects
Stanislav Fomichev (1):
bpf: sync bpf.h to tools/
include/uapi/linux/bpf.h | 12 ++++++---
include/uapi/linux/if_xdp.h | 13 +++++++++
src/bpf.c | 24 ++++++++---------
src/bpf.h | 1 +
src/libbpf.map | 5 ++++
src/xsk.c | 53 +++++++++++++------------------------
src/xsk.h | 6 +++++
7 files changed, 64 insertions(+), 50 deletions(-)
--
2.17.1
2019-08-27 13:58:15 -07:00
Andrii Nakryiko
c8a7eb06bd
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: b707659213d3c70f2c704ec950df6263b4bffe84
Checkpoint bpf-next commit: b753c5a7f99f390fc100de18647ce0dcacdceafc
Baseline bpf commit: f1fc7249dddc0e52d9e805e2e661caa118649509
Checkpoint bpf commit: 91b4db5313a2c793aabc2143efb8ed0cf0fdd097
Andrii Nakryiko (2):
libbpf: fix missing __WORDSIZE definition
libbpf: attempt to load kernel BTF from sysfs first
Arnaldo Carvalho de Melo (1):
tools headers UAPI: Sync if_link.h with the kernel
Daniel Borkmann (1):
bpf: sync bpf.h to tools infrastructure
include/uapi/linux/bpf.h | 4 +--
include/uapi/linux/if_link.h | 5 +++
src/hashmap.h | 5 +++
src/libbpf.c | 64 ++++++++++++++++++++++++++++++++----
4 files changed, 69 insertions(+), 9 deletions(-)
--
2.17.1
2019-08-14 09:52:47 -07:00
Andrii Nakryiko
c020432531
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline bpf-next commit: 66b5f1c439843bcbab01cc7f3854ae2742f3d1e3
Checkpoint bpf-next commit: b707659213d3c70f2c704ec950df6263b4bffe84
Baseline bpf commit: 53db1cced401e4c65d49edf198e00daa9fc837e6
Checkpoint bpf commit: f1fc7249dddc0e52d9e805e2e661caa118649509
Andrii Nakryiko (8):
libbpf: provide more helpful message on uninitialized global var
libbpf: return previous print callback from libbpf_set_print
libbpf: add helpers for working with BTF types
libbpf: convert libbpf code to use new btf helpers
libbpf: add .BTF.ext offset relocation section loading
libbpf: implement BPF CO-RE offset relocation algorithm
libbpf: fix SIGSEGV when BTF loading fails, but .BTF.ext exists
libbpf: sanitize VAR to conservative 1-byte INT
Petar Penkov (1):
bpf: sync bpf.h to tools/
Stanislav Fomichev (2):
tools/bpf: sync bpf_flow_keys flags
bpf/flow_dissector: support ipv6 flow_label and
BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL
Toke Høiland-Jørgensen (2):
tools/include/uapi: Add devmap_hash BPF map type
tools/libbpf_probes: Add new devmap_hash type
include/uapi/linux/bpf.h | 44 +-
src/btf.c | 250 +++++-----
src/btf.h | 182 ++++++++
src/btf_dump.c | 138 ++----
src/libbpf.c | 972 ++++++++++++++++++++++++++++++++++++---
src/libbpf.h | 3 +-
src/libbpf_internal.h | 105 +++++
src/libbpf_probes.c | 1 +
8 files changed, 1405 insertions(+), 290 deletions(-)
--
2.17.1
2019-08-09 08:40:44 -07:00
Andrii Nakryiko
550aa56dd4
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: 8fc9f8bedf1bdaea48382ae2e3dd558e2b939cee
Checkpoint commit: 66b5f1c439843bcbab01cc7f3854ae2742f3d1e3
Andrii Nakryiko (2):
libbpf: fix ptr to u64 conversion warning on 32-bit platforms
libbpf: fix another GCC8 warning for strncpy
Baruch Siach (1):
bpf: fix uapi bpf_prog_info fields alignment
Mauro Carvalho Chehab (2):
docs: cgroup-v1: convert docs to ReST and rename to *.rst
docs: cgroup-v1: add it to the admin-guide book
Stanislav Fomichev (1):
bpf: sync bpf.h to tools/
include/uapi/linux/bpf.h | 7 ++++---
src/libbpf.c | 4 ++--
src/xsk.c | 3 ++-
3 files changed, 8 insertions(+), 6 deletions(-)
--
2.17.1
2019-07-23 14:26:50 -07:00
Andrii Nakryiko
45ad862601
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: 2c6a577d719e96c89b1aaa631089cce69b4d0045
Checkpoint commit: 8fc9f8bedf1bdaea48382ae2e3dd558e2b939cee
Andrii Nakryiko (19):
libbpf: add common min/max macro to libbpf_internal.h
libbpf: extract BTF loading logic
libbpf: streamline ELF parsing error-handling
libbpf: refactor map initialization
libbpf: identify maps by section index in addition to offset
libbpf: split initialization and loading of BTF
libbpf: allow specifying map definitions using BTF
libbpf: constify getter APIs
libbpf: fix GCC8 warning for strncpy
libbpf: make libbpf_strerror_r agnostic to sign of error
libbpf: introduce concept of bpf_link
libbpf: add ability to attach/detach BPF program to perf event
libbpf: add kprobe/uprobe attach API
libbpf: add tracepoint attach API
libbpf: add raw tracepoint attach API
libbpf: capture value in BTF type info for BTF-defined map defs
libbpf: add perf buffer API
libbpf: auto-set PERF_EVENT_ARRAY size to number of CPUs
libbpf: add perf_buffer_ prefix to README
Colin Ian King (1):
libbpf: fix spelling mistake "conflictling" -> "conflicting"
Daniel Borkmann (2):
bpf: sync tooling uapi header
bpf, libbpf: enable recvmsg attach types
Ivan Khoronzhuk (1):
libbpf: fix max() type mismatch for 32bit
Leo Yan (1):
bpf, libbpf, smatch: Fix potential NULL pointer dereference
Martynas Pumputis (1):
bpf: sync BPF_FIB_LOOKUP flag changes with BPF uapi
Maxim Mikityanskiy (3):
xsk: Add getsockopt XDP_OPTIONS
libbpf: Support getsockopt XDP_OPTIONS
xsk: Change the default frame size to 4096 and allow controlling it
Michal Rostecki (1):
libbpf: Return btf_fd for load_sk_storage_btf
Stanislav Fomichev (4):
bpf: sync bpf.h to tools/
libbpf: support sockopt hooks
bpf/tools: sync bpf.h
bpf: sync bpf.h to tools/
Vincent Bernat (1):
bonding: add an option to specify a delay between peer notifications
include/uapi/linux/bpf.h | 38 +-
include/uapi/linux/if_link.h | 1 +
include/uapi/linux/if_xdp.h | 8 +
src/README.rst | 3 +-
src/bpf.c | 7 +-
src/bpf_prog_linfo.c | 5 +-
src/btf.c | 3 -
src/btf.h | 1 +
src/btf_dump.c | 3 -
src/libbpf.c | 1670 ++++++++++++++++++++++++++++------
src/libbpf.h | 132 ++-
src/libbpf.map | 12 +-
src/libbpf_internal.h | 11 +-
src/libbpf_probes.c | 14 +-
src/str_error.c | 2 +-
src/xsk.c | 15 +-
src/xsk.h | 2 +-
17 files changed, 1601 insertions(+), 326 deletions(-)
--
2.17.1
2019-07-08 12:52:46 -07:00
Andrii Nakryiko
52ec16bce8
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: 5e2ac390fbd08b2a462db66cef2663e4db0d5191
Checkpoint commit: 2c6a577d719e96c89b1aaa631089cce69b4d0045
Andrii Nakryiko (1):
libbpf: fix check for presence of associated BTF for map creation
Stanislav Fomichev (1):
bpf/tools: sync bpf.h
include/uapi/linux/bpf.h | 2 ++
src/libbpf.c | 9 +++++----
2 files changed, 7 insertions(+), 4 deletions(-)
--
2.17.1
2019-06-14 16:53:36 -07:00
Andrii Nakryiko
39de671179
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: e672db03ab0e43e41ab6f8b2156a10d6e40f243d
Checkpoint commit: 5e2ac390fbd08b2a462db66cef2663e4db0d5191
Andrii Nakryiko (9):
libbpf: fix detection of corrupted BPF instructions section
libbpf: preserve errno before calling into user callback
libbpf: simplify endianness check
libbpf: check map name retrieved from ELF
libbpf: fix error code returned on corrupted ELF
libbpf: use negative fd to specify missing BTF
libbpf: simplify two pieces of logic
libbpf: typo and formatting fixes
libbpf: reduce unnecessary line wrapping
Hechao Li (1):
bpf: add a new API libbpf_num_possible_cpus()
Jonathan Lemon (2):
bpf/tools: sync bpf.h
libbpf: remove qidconf and better support external bpf programs.
Quentin Monnet (1):
libbpf: prevent overwriting of log_level in bpf_object__load_progs()
include/uapi/linux/bpf.h | 4 +
src/libbpf.c | 207 ++++++++++++++++++++++-----------------
src/libbpf.h | 16 +++
src/libbpf.map | 1 +
src/xsk.c | 103 ++++++-------------
5 files changed, 167 insertions(+), 164 deletions(-)
--
2.17.1
2019-06-11 10:18:48 -07:00
Andrii Nakryiko
75db50f4a0
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: f49aa1de98363b6c5fba4637678d6b0ba3d18065
Checkpoint commit: e672db03ab0e43e41ab6f8b2156a10d6e40f243d
Andrii Nakryiko (5):
libbpf: ensure libbpf.h is included along libbpf_internal.h
libbpf: add btf__parse_elf API to load .BTF and .BTF.ext
libbpf: add resizable non-thread safe internal hashmap
libbpf: switch btf_dedup() to hashmap for dedup table
libbpf: add btf_dump API for BTF-to-C conversion
Hariprasad Kelam (1):
libbpf: fix warning that PTR_ERR_OR_ZERO can be used
Jiong Wang (2):
tools: bpf: sync uapi header bpf.h
libbpf: add "prog_flags" to
bpf_program/bpf_prog_load_attr/bpf_load_program_attr
Quentin Monnet (1):
libbpf: add bpf_object__load_xattr() API function to pass log_level
Yonghong Song (1):
tools/bpf: sync bpf uapi header bpf.h to tools directory
include/uapi/linux/bpf.h | 35 +-
src/bpf.c | 1 +
src/bpf.h | 1 +
src/btf.c | 329 ++++++----
src/btf.h | 19 +
src/btf_dump.c | 1336 ++++++++++++++++++++++++++++++++++++++
src/hashmap.c | 229 +++++++
src/hashmap.h | 173 +++++
src/libbpf.c | 27 +-
src/libbpf.h | 7 +
src/libbpf.map | 9 +
src/libbpf_internal.h | 2 +
12 files changed, 2045 insertions(+), 123 deletions(-)
create mode 100644 src/btf_dump.c
create mode 100644 src/hashmap.c
create mode 100644 src/hashmap.h
--
2.17.1
2019-05-29 10:27:27 -07:00
Andrii Nakryiko
59a641543e
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: 35c99ffa20edd3c24be352d28a63cd3a23121282
Checkpoint commit: f49aa1de98363b6c5fba4637678d6b0ba3d18065
Andrii Nakryiko (1):
libbpf: move logging helpers into libbpf_internal.h
Gary Lin (1):
tools/bpf: Sync kernel btf.h header
Stanislav Fomichev (1):
libbpf: don't fail when feature probing fails
include/uapi/linux/btf.h | 2 +-
src/btf.c | 2 +-
src/libbpf.c | 3 +--
src/libbpf_internal.h | 13 +++++++++++++
src/libbpf_util.h | 13 -------------
src/xsk.c | 2 +-
6 files changed, 17 insertions(+), 18 deletions(-)
--
2.17.1
2019-05-23 15:09:13 -07:00
Andrii Nakryiko
5188b0ca5c
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: ba02de1aa04e392e15ef503c6dd5166915d9d4de
Checkpoint commit: 35c99ffa20edd3c24be352d28a63cd3a23121282
Andrii Nakryiko (1):
libbpf: detect supported kernel BTF features and sanitize BTF
Björn Töpel (3):
libbpf: fix invalid munmap call
libbpf: proper XSKMAP cleanup
libbpf: remove unnecessary cast-to-void
Daniel Borkmann (2):
bpf, libbpf: handle old kernels more graceful wrt global data sections
bpf, libbpf: fix segfault in bpf_object__init_maps' pr_debug statement
Daniel T. Lee (1):
libbpf: fix samples/bpf build failure due to undefined UINT32_MAX
Magnus Karlsson (1):
libbpf: remove compile time warning from libbpf_util.h
Martin KaFai Lau (2):
bpf: Sync bpf.h to tools
bpf: Support BPF_MAP_TYPE_SK_STORAGE in bpf map probing
Matt Mullins (1):
tools: sync bpf.h
McCabe, Robert J (1):
libbpf: fix BPF_LOG_BUF_SIZE off-by-one error
Quentin Monnet (1):
tools: bpf: synchronise BPF UAPI header with tools
Vineet Gupta (1):
tools/bpf: fix perf build error with uClibc (seen on ARC)
include/uapi/linux/bpf.h | 177 +++++++++++++++++++----------
src/bpf.c | 2 +
src/bpf.h | 3 +-
src/libbpf.c | 236 ++++++++++++++++++++++++++++++++++++---
src/libbpf_internal.h | 27 +++++
src/libbpf_probes.c | 84 +++++++++++++-
src/libbpf_util.h | 2 +-
src/xsk.c | 184 +++++++++++++++---------------
8 files changed, 544 insertions(+), 171 deletions(-)
create mode 100644 src/libbpf_internal.h
--
2.17.1
2019-05-16 09:40:04 -07:00
Andrii Nakryiko
910c475f09
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: 3daf8e703ec3dcf73a27a7dcabbac152793eb114
Checkpoint commit: ba02de1aa04e392e15ef503c6dd5166915d9d4de
Alan Maguire (2):
bpf: sync bpf.h to tools/ for BPF_F_ADJ_ROOM_ENCAP_L2
bpf: fix whitespace for ENCAP_L2 defines in bpf.h
Andrey Ignatov (3):
bpf: Sync bpf.h to tools/
libbpf: Support sysctl hook
bpf: Sync bpf.h to tools/
Andrii Nakryiko (2):
btf: add support for VAR and DATASEC in btf_dedup()
libbpf: fix printf formatter for ptrdiff_t argument
Magnus Karlsson (4):
libbpf: fix XDP socket ring buffer memory ordering
libbpf: remove likely/unlikely in xsk.h
libbpf: remove dependency on barrier.h in xsk.h
libbpf: optimize barrier for XDP socket rings
include/uapi/linux/bpf.h | 149 ++++++++++++++++++++++++++++++++++++++-
src/btf.c | 29 +++++++-
src/libbpf.c | 5 +-
src/libbpf_probes.c | 1 +
src/libbpf_util.h | 30 ++++++++
src/xsk.h | 22 ++++--
6 files changed, 226 insertions(+), 10 deletions(-)
--
2.17.1
2019-04-19 09:52:37 -07:00
Yonghong Song
5844f6e4dd
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: 50bd645b3a21a374dbd0fa8273a5f4e98001fb05
Checkpoint commit: 3daf8e703ec3dcf73a27a7dcabbac152793eb114
Andrey Ignatov (1):
libbpf: Fix build with gcc-8
Stanislav Fomichev (1):
libbpf: add support for ctx_{size, }_{in, out} in BPF_PROG_TEST_RUN
include/uapi/linux/bpf.h | 7 +++++++
src/bpf.c | 5 +++++
src/bpf.h | 5 +++++
src/libbpf.c | 2 +-
4 files changed, 18 insertions(+), 1 deletion(-)
--
2.17.1
2019-04-11 09:01:12 -07:00
Yonghong Song
f49907472f
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: dd399ac9e343c7573c47d6820e4a23013c54749d
Checkpoint commit: 50bd645b3a21a374dbd0fa8273a5f4e98001fb05
Alexei Starovoitov (1):
libbpf: teach libbpf about log_level bit 2
Andrey Ignatov (1):
libbpf: Ignore -Wformat-nonliteral warning
Daniel Borkmann (3):
bpf: sync {btf, bpf}.h uapi header from tools infrastructure
bpf, libbpf: support global data/bss/rodata sections
bpf, libbpf: add support for BTF Var and DataSec
Joe Stringer (1):
bpf, libbpf: refactor relocation handling
Magnus Karlsson (1):
libbpf: fix crash in XDP socket part with new larger BPF_LOG_BUF_SIZE
Yonghong Song (1):
bpf, bpftool: fix a few ubsan warnings
include/uapi/linux/bpf.h | 20 +-
include/uapi/linux/btf.h | 32 ++-
src/bpf.c | 31 ++-
src/bpf.h | 3 +-
src/btf.c | 97 ++++++-
src/btf.h | 3 +
src/libbpf.c | 567 ++++++++++++++++++++++++++++++++-------
src/libbpf.h | 6 +
src/libbpf.map | 7 +
src/xsk.c | 9 +-
10 files changed, 658 insertions(+), 117 deletions(-)
--
2.17.1
2019-04-10 14:27:33 -07:00
Andrii Nakryiko
27a5f60a8b
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: f01a7dbe98ae4265023fa5d3af0f076f0b18a647
Checkpoint commit: dd399ac9e343c7573c47d6820e4a23013c54749d
Arnaldo Carvalho de Melo (1):
tools lib bpf: Fix the build by adding a missing stdarg.h include
Changbin Du (1):
perf tools: Fix errors under optimization level '-Og'
Daniel Borkmann (1):
bpf, libbpf: clarify bump in libbpf version info
Lorenz Bauer (1):
tools: update include/uapi/linux/bpf.h
Luca Boccassi (1):
tools/bpf: generate pkg-config file for libbpf
Song Liu (1):
tools lib bpf: Introduce bpf_program__get_prog_info_linear()
Willem de Bruijn (1):
bpf: Sync bpf.h to tools
include/uapi/linux/bpf.h | 65 +++++++++-
src/README.rst | 1 +
src/libbpf.c | 253 ++++++++++++++++++++++++++++++++++++++-
src/libbpf.h | 64 ++++++++++
src/libbpf.map | 3 +
src/libbpf.pc.template | 12 ++
6 files changed, 393 insertions(+), 5 deletions(-)
create mode 100644 src/libbpf.pc.template
--
2.17.1
2019-03-28 19:51:55 -07:00
Andrii Nakryiko
5877849633
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: f01a7dbe98ae4265023fa5d3af0f076f0b18a647
Checkpoint commit: 8543e437807970166c2b66b79935c9f4b0e6d1f9
Andrii Nakryiko (1):
libbpf: fix btf_dedup equivalence check handling of different kinds
Daniel Borkmann (1):
bpf, libbpf: clarify bump in libbpf version info
src/README.rst | 1 +
src/btf.c | 3 +++
2 files changed, 4 insertions(+)
--
2.17.1
2019-03-28 19:51:55 -07:00
Andrii Nakryiko
33b0174985
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: ea5bade929bf04355aeed58a3c9f5ef2c3afe2ac
Checkpoint commit: f01a7dbe98ae4265023fa5d3af0f076f0b18a647
Andrii Nakryiko (2):
libbpf: handle BTF parsing and loading properly
btf: resolve enum fwds in btf_dedup
Magnus Karlsson (1):
libbpf: fix to reject unknown flags in xsk_socket__create()
Martin KaFai Lau (1):
bpf: Sync bpf.h to tools/
Nikita V. Shirokov (1):
bpf, libbpf: fixing leak when kernel does not support btf
Quentin Monnet (1):
tools: bpf: synchronise BPF UAPI header with tools
include/uapi/linux/bpf.h | 188 ++++++++++++++++++++++++++-------------
src/btf.c | 51 ++++++++---
src/libbpf.c | 11 ++-
src/xsk.c | 15 +++-
4 files changed, 186 insertions(+), 79 deletions(-)
--
2.17.1
2019-03-19 12:17:19 -07:00
Andrii Nakryiko
7a431904c8
sync: latest libbpf changes from kernel
...
Syncing latest libbpf commits from kernel repository.
Baseline commit: 5aab392c55c96f9bb26d9294f965f156a87ee81c
Checkpoint commit: ea5bade929bf04355aeed58a3c9f5ef2c3afe2ac
Alexei Starovoitov (1):
tools/bpf: sync bpf.h into tools
Andrii Nakryiko (3):
libbpf: fix formatting for btf_ext__get_raw_data
btf: allow to customize dedup hash table size
btf: fix bug with resolving STRUCT/UNION into corresponding FWD
Dan Carpenter (1):
tools/libbpf: signedness bug in btf_dedup_ref_type()
Jakub Kicinski (1):
tools: libbpf: add a correctly named define for map iteration
Magnus Karlsson (1):
libbpf: add support for using AF_XDP sockets
brakmo (1):
bpf: sync bpf.h to tools and update bpf_helpers.h
include/uapi/linux/bpf.h | 12 +-
src/README.rst | 15 +-
src/btf.c | 76 ++--
src/btf.h | 3 +-
src/libbpf.c | 8 +-
src/libbpf.h | 3 +-
src/libbpf.map | 6 +
src/xsk.c | 723 +++++++++++++++++++++++++++++++++++++++
src/xsk.h | 203 +++++++++++
9 files changed, 1020 insertions(+), 29 deletions(-)
create mode 100644 src/xsk.c
create mode 100644 src/xsk.h
--
2.17.1
2019-03-02 21:31:13 -08:00
Andrii Nakryiko
d5fa4150f0
libbpf sync 2019-02-17T06:35:29.358Z ( #14 )
...
* tools/libbpf: support bigger BTF data sizes
While it's understandable why kernel limits number of BTF types to 65535
and size of string section to 64KB, in libbpf as user-space library it's
too restrictive. E.g., pahole converting DWARF to BTF type information
for Linux kernel generates more than 3 million BTF types and more than
3MB of strings, before deduplication. So to allow btf__dedup() to do its
work, we need to be able to load bigger BTF sections using btf__new().
Singed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
* sync: latest libbpf changes from kernel
Syncing latest libbpf commits from kernel repository.
Baseline commit: 789f6bab849e04ea029c09b81dc8401dc0268cf9
Checkpoint commit: 5aab392c55c96f9bb26d9294f965f156a87ee81c
Andrii Nakryiko (1):
tools/libbpf: support bigger BTF data sizes
src/btf.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
--
2.17.1
2019-02-16 22:41:31 -08:00
Andrii Nakryiko
8e42f42533
scripts: add script to sync kernel changes ( #13 )
...
This script automates the process of applying libbpf-relevant changes
from kernel repository on top of current state of libbpf repository.
It uses CHECKPOINT-COMMIT file to keep track of last commit in kernel
repo up to which libbpf is in sync with. If there are any new libbpf
changes in kernel repository, script extracts them, preserving original
commit metadata. It also creates a "sync commit" using cover letter as
a template, which nicely summarizes changes since last sync with kernel.
Usage: ./scripts/sync-kernel.sh <linux-repo> <libbpf-repo>
If it succeeds, script will create a bunch of local commits in
<libbpf-repo> in separate branch, which can be easily pushed into github
to create a pull request.
Script tries to clean up after itself, except in case of failure. But it
doesn't clean up timestamped branches it creates in both kernel and
libbpf repositories for now. We can add that later.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
2019-02-16 22:22:30 -08:00