aboutsummaryrefslogtreecommitdiff
path: root/BPF-CHECKPOINT-COMMIT
AgeCommit message (Collapse)Author
2023-10-02sync: Pull latest bpftool changes from kernelupstream-masterQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 45ee73a0722b9e1d0b7a524d06756291b13b5912 Checkpoint bpf-next commit: 2147c8d07e1abc8dfc3433ca18eed5295e230ede Baseline bpf commit: 57eb5e1c5c57972c95e8efab6bc81b87161b0b07 Checkpoint bpf commit: 9077fc228f09c9f975c498c55f5d2e882cd0da59 Jiri Olsa (4): bpf: Add missed value to kprobe_multi link info bpf: Add missed value to kprobe perf link info bpftool: Display missed count for kprobe_multi link bpftool: Display missed count for kprobe perf link include/uapi/linux/bpf.h | 2 ++ src/link.c | 6 ++++++ 2 files changed, 8 insertions(+) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2023-09-26sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 9e3b47abeb8f76c39c570ffc924ac0b35f132274 Checkpoint bpf-next commit: 45ee73a0722b9e1d0b7a524d06756291b13b5912 Baseline bpf commit: 23d775f12dcd23d052a4927195f15e970e27ab26 Checkpoint bpf commit: 57eb5e1c5c57972c95e8efab6bc81b87161b0b07 Denys Zagorui (1): bpftool: Fix -Wcast-qual warning Stanislav Fomichev (1): bpf: Clarify error expectations from bpf_clone_redirect Yafang Shao (1): bpftool: Fix build warnings with -Wtype-limits Yonghong Song (1): bpf: Mark BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE deprecated include/uapi/linux/bpf.h | 13 +++++++++++-- src/gen.c | 2 +- src/link.c | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2023-08-29sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: a3e7e6b17946f48badce98d7ac360678a0ea7393 Checkpoint bpf-next commit: 9e3b47abeb8f76c39c570ffc924ac0b35f132274 Baseline bpf commit: 496720b7cfb6574a8f6f4d434f23e3d1e6cfaeb9 Checkpoint bpf commit: 23d775f12dcd23d052a4927195f15e970e27ab26 Alan Maguire (1): bpf: sync tools/ uapi header with Daniel Borkmann (5): bpf: Add generic attach/detach/query API for multi-progs bpf: Add fd-based tcx multi-prog infra with link support bpftool: Extend net dump with tcx progs bpftool: Implement link show support for tcx bpftool: Implement link show support for xdp Daniel T. Lee (1): bpftool: fix perf help message Daniel Xu (1): netfilter: bpf: Support BPF_F_NETFILTER_IP_DEFRAG in netfilter link Jiri Olsa (5): bpf: Add support for bpf_get_func_ip helper for uprobe program bpf: Switch BPF_F_KPROBE_MULTI_RETURN macro to enum bpf: Add multi uprobe link bpf: Add cookies support for uprobe_multi link bpf: Add pid filter support for uprobe_multi link Lorenz Bauer (1): bpf, net: Support SO_REUSEPORT sockets with bpf_sk_assign Quentin Monnet (1): bpftool: Use "fallthrough;" keyword instead of comments Tiezhu Yang (1): asm-generic: Unify uapi bitsperlong.h for arm64, riscv and loongarch Yafang Shao (6): bpf: Support ->fill_link_info for kprobe_multi bpftool: Dump the kernel symbol's module name bpftool: Show kprobe_multi link info bpf: Support ->fill_link_info for perf_event bpftool: Add perf event names bpftool: Show perf link info Yang Yingliang (1): bpf: change bpf_alu_sign_string and bpf_movsx_string to static Yonghong Song (3): bpf: Support new sign-extension load insns bpf: Add kernel/bpftool asm support for new instructions bpf: Fix an array-index-out-of-bounds issue in disasm.c docs/bpftool-net.rst | 26 +- include/uapi/asm-generic/bitsperlong.h | 14 +- include/uapi/linux/bpf.h | 150 +++++++- src/btf_dumper.c | 2 +- src/feature.c | 2 +- src/kernel/bpf/disasm.c | 58 ++- src/link.c | 476 ++++++++++++++++++++++++- src/net.c | 98 ++++- src/netlink_dumper.h | 8 + src/perf.c | 2 +- src/xlated_dumper.c | 6 +- src/xlated_dumper.h | 2 + 12 files changed, 796 insertions(+), 48 deletions(-) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2023-07-10sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: fcf1fa29c8ea75bf104c35ce29b65ce2ba6a6a9d Checkpoint bpf-next commit: 856fe03d929205b4c8c8fa51296342cd85592e3f Baseline bpf commit: f726e03564ef4e754dd93beb54303e2e1671049e Checkpoint bpf commit: 496720b7cfb6574a8f6f4d434f23e3d1e6cfaeb9 Fangrui Song (1): bpf: Replace deprecated -target with --target= for Clang Florian Westphal (1): bpf: netfilter: Add BPF_NETFILTER bpf_attach_type Louis DeLosSantos (1): bpf: Add table ID to bpf_fib_lookup BPF helper Yanteng Si (1): tools headers UAPI: Sync the linux/const.h with the kernel headers docs/bpftool-gen.rst | 4 ++-- include/uapi/linux/bpf.h | 22 +++++++++++++++++++--- include/uapi/linux/const.h | 2 +- src/Makefile | 2 +- 4 files changed, 23 insertions(+), 7 deletions(-) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2023-05-26sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 2ddade322925641ee2a75f13665c51f2e74d7791 Checkpoint bpf-next commit: fcf1fa29c8ea75bf104c35ce29b65ce2ba6a6a9d Baseline bpf commit: 71b547f561247897a0a14f3082730156c0533fed Checkpoint bpf commit: f726e03564ef4e754dd93beb54303e2e1671049e Alan Maguire (1): bpftool: JIT limited misreported as negative value on aarch64 Andrii Nakryiko (1): bpf: Support O_PATH FDs in BPF_OBJ_PIN and BPF_OBJ_GET commands Florian Westphal (1): tools: bpftool: print netfilter link info Kui-Feng Lee (3): bpftool: Register struct_ops with a link. bpftool: Update doc to explain struct_ops register subcommand. bpftool: Show map IDs along with struct_ops links. Larysa Zaremba (1): bpftool: Specify XDP Hints ifname when loading program Pengcheng Yang (1): bpftool: Support bpffs mountpoint as pin path for prog loadall Quentin Monnet (1): bpftool: Replace "__fallthrough" by a comment to address merge conflict Ravi Bangoria (1): tools include UAPI: Sync uapi/linux/perf_event.h with the kernel sources Xueming Feng (1): bpftool: Dump map id instead of value for map_of_maps types Yafang Shao (1): bpftool: Show target_{obj,btf}_id in tracing link info bash-completion/bpftool | 7 ++- docs/bpftool-map.rst | 8 +-- docs/bpftool-prog.rst | 11 ++-- docs/bpftool-struct_ops.rst | 12 ++-- include/uapi/linux/bpf.h | 24 ++++++++ include/uapi/linux/perf_event.h | 3 +- src/btf_dumper.c | 2 +- src/common.c | 23 ++++++- src/feature.c | 24 ++++---- src/iter.c | 2 +- src/link.c | 97 ++++++++++++++++++++++++++++- src/main.h | 8 ++- src/map.c | 19 +++++- src/net.c | 106 ++++++++++++++++++++++++++++++++ src/prog.c | 66 +++++++++++++------- src/struct_ops.c | 70 +++++++++++++++++---- 16 files changed, 410 insertions(+), 72 deletions(-) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2023-04-25sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 4ca13d1002f37c10038ff4ed3cfdc70dbe049d60 Checkpoint bpf-next commit: 2ddade322925641ee2a75f13665c51f2e74d7791 Baseline bpf commit: a6f6a95f25803500079513780d11a911ce551d76 Checkpoint bpf commit: 71b547f561247897a0a14f3082730156c0533fed Andrii Nakryiko (1): bpf: Add log_true_size output field to return necessary log buffer size Dave Marchevsky (1): bpf: Introduce opaque bpf_refcount struct and add btf_record plumbing Herbert Xu (1): macvlan: Add netlink attribute for broadcast cutoff Quentin Monnet (7): bpftool: Fix documentation about line info display for prog dumps bpftool: Fix bug for long instructions in program CFG dumps bpftool: Support inline annotations when dumping the CFG of a program bpftool: Return an error on prog dumps if both CFG and JSON are required bpftool: Support "opcodes", "linum", "visual" simultaneously bpftool: Support printing opcodes and source file references in CFG bpftool: Clean up _bpftool_once_attr() calls in bash completion Wei Yongjun (1): bpftool: Set program type only if it differs from the desired one bash-completion/bpftool | 42 +++++++++--------- docs/bpftool-prog.rst | 18 ++++---- include/uapi/linux/bpf.h | 16 ++++++- include/uapi/linux/if_link.h | 1 + src/btf_dumper.c | 83 ++++++++++++++++++++++++++++++++++++ src/cfg.c | 29 +++++++------ src/cfg.h | 5 ++- src/main.h | 2 + src/prog.c | 81 ++++++++++++++++++----------------- src/xlated_dumper.c | 54 +++++++++++++++++++++-- src/xlated_dumper.h | 3 +- 11 files changed, 244 insertions(+), 90 deletions(-) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2023-04-04sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: c8ee37bde4021a275d2e4f33bd48d54912bb00c4 Checkpoint bpf-next commit: 4ca13d1002f37c10038ff4ed3cfdc70dbe049d60 Baseline bpf commit: 2d311f480b52eeb2e1fd432d64b78d82952c3808 Checkpoint bpf commit: a6f6a95f25803500079513780d11a911ce551d76 Andrii Nakryiko (1): bpf: implement numbers iterator Arnaldo Carvalho de Melo (1): tools headers UAPI: Sync linux/perf_event.h with the kernel sources Joanne Koong (3): bpf: Add skb dynptrs bpf: Add xdp dynptrs bpf: Add bpf_dynptr_slice and bpf_dynptr_slice_rdwr Kui-Feng Lee (2): bpf: Create links for BPF struct_ops maps. bpf: Update the struct_ops of a bpf_link. Manu Bretelle (1): tools: bpftool: json: Fix backslash escape typo in jsonw_puts Michael Weiß (1): bpf: Fix a typo for BPF_F_ANY_ALIGNMENT in bpf.h Ross Zwisler (1): bpf: use canonical ftrace path Tero Kristo (1): bpf: Add support for absolute value BPF timers include/uapi/linux/bpf.h | 84 ++++++++++++++++++++++++++++----- include/uapi/linux/perf_event.h | 3 ++ src/json_writer.c | 2 +- src/json_writer.h | 1 + 4 files changed, 76 insertions(+), 14 deletions(-) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2023-03-01sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 951bce29c8988209cc359e1fa35a4aaa35542fd5 Checkpoint bpf-next commit: c8ee37bde4021a275d2e4f33bd48d54912bb00c4 Baseline bpf commit: 3a70e0d4c9d74cb00f7c0ec022f5599f9f7ba07d Checkpoint bpf commit: 2d311f480b52eeb2e1fd432d64b78d82952c3808 Luis Gerhorst (1): tools: bpftool: Remove invalid \' json escape src/json_writer.c | 3 --- 1 file changed, 3 deletions(-) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2023-02-22sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 6c20822fada1b8adb77fa450d03a0d449686a4a9 Checkpoint bpf-next commit: 951bce29c8988209cc359e1fa35a4aaa35542fd5 Baseline bpf commit: 6c20822fada1b8adb77fa450d03a0d449686a4a9 Checkpoint bpf commit: 3a70e0d4c9d74cb00f7c0ec022f5599f9f7ba07d Ilya Leoshkevich (1): bpftool: Use bpf_{btf,link,map,prog}_get_info_by_fd() Martin KaFai Lau (1): bpf: Add BPF_FIB_LOOKUP_SKIP_NEIGH for bpf_fib_lookup include/uapi/linux/bpf.h | 6 ++++++ src/btf.c | 13 ++++++++----- src/btf_dumper.c | 4 ++-- src/cgroup.c | 4 ++-- src/common.c | 13 +++++++------ src/link.c | 4 ++-- src/main.h | 3 ++- src/map.c | 8 ++++---- src/prog.c | 22 +++++++++++----------- src/struct_ops.c | 6 +++--- 10 files changed, 47 insertions(+), 36 deletions(-) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2023-02-21sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: a5f6b9d577eba18601c14bba2dbff4a9b76af962 Checkpoint bpf-next commit: 6c20822fada1b8adb77fa450d03a0d449686a4a9 Baseline bpf commit: e8c8fd9b8393d7064152c8806f5ac446d760a23e Checkpoint bpf commit: 6c20822fada1b8adb77fa450d03a0d449686a4a9 Dave Marchevsky (1): bpf: Add basic bpf_rb_{root,node} support Florian Lehner (1): bpf: fix typo in header for bpf_perf_prog_read_value Tiezhu Yang (1): tools/bpf: Use tab instead of white spaces to sync bpf.h Tonghao Zhang (1): bpftool: profile online CPUs instead of possible include/uapi/linux/bpf.h | 17 ++++++++++++++--- src/prog.c | 38 ++++++++++++++++++++++++++++++-------- 2 files changed, 44 insertions(+), 11 deletions(-) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2023-01-30sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 7b43df6c6ec38c9097420902a1c8165c4b25bf70 Checkpoint bpf-next commit: a5f6b9d577eba18601c14bba2dbff4a9b76af962 Baseline bpf commit: 54c3f1a81421f85e60ae2eaae7be3727a09916ee Checkpoint bpf commit: e8c8fd9b8393d7064152c8806f5ac446d760a23e Anton Protopopov (1): bpftool: Fix linkage with statically built libllvm Chethan Suresh (1): bpftool: fix output for skipping kernel config check Holger Hoffstätte (1): bpftool: Always disable stack protection for BPF objects James Hilliard (1): bpftool: Add missing quotes to libbpf bootstrap submake vars Stanislav Fomichev (1): bpf: Introduce device-bound XDP programs Ziyang Xuan (1): bpf: Add ipip6 and ip6ip decap support for bpf_skb_adjust_room() include/uapi/linux/bpf.h | 12 ++++++++++++ src/Makefile | 9 +++++++-- src/feature.c | 8 ++++---- 3 files changed, 23 insertions(+), 6 deletions(-) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2023-01-04sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 0e43662e61f2569500ab83b8188c065603530785 Checkpoint bpf-next commit: 7b43df6c6ec38c9097420902a1c8165c4b25bf70 Baseline bpf commit: f506439ec3dee11e0e77b0a1f3fb3eec22c97873 Checkpoint bpf commit: 54c3f1a81421f85e60ae2eaae7be3727a09916ee Changbin Du (1): bpf: makefiles: Do not generate empty vmlinux.h Christian Ehrig (1): bpf: Add flag BPF_F_NO_TUNNEL_KEY to bpf_skb_set_tunnel_key() include/uapi/linux/bpf.h | 4 ++++ src/Makefile | 3 +++ 2 files changed, 7 insertions(+) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2022-12-20sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: b548b17a93fd18357a5a6f535c10c1e68719ad32 Checkpoint bpf-next commit: 0e43662e61f2569500ab83b8188c065603530785 Baseline bpf commit: 9cbd48d5fa14e4c65f8580de16686077f7cea02b Checkpoint bpf commit: f506439ec3dee11e0e77b0a1f3fb3eec22c97873 Eyal Birger (1): tools: add IFLA_XFRM_COLLECT_METADATA to uapi/linux/if_link.h Ji Rongfeng (1): bpf: Update bpf_{g,s}etsockopt() documentation Kumar Kartikeya Dwivedi (2): bpf: Support bpf_list_head in map values bpf: Rework process_dynptr_func Miaoqian Lin (1): bpftool: Fix memory leak in do_build_table_cb Sahid Orentino Ferdjaoui (5): bpftool: remove support of --legacy option for bpftool bpftool: replace return value PTR_ERR(NULL) with 0 bpftool: fix error message when function can't register struct_ops bpftool: clean-up usage of libbpf_get_error() bpftool: remove function free_btf_vmlinux() Tiezhu Yang (1): bpftool: Check argc first before "file" in do_batch() bash-completion/bpftool | 2 +- docs/common_options.rst | 9 -------- docs/substitutions.rst | 2 +- include/uapi/linux/bpf.h | 41 ++++++++++++++++++++++++------------ include/uapi/linux/if_link.h | 1 + src/btf.c | 19 +++++++---------- src/btf_dumper.c | 2 +- src/common.c | 1 + src/gen.c | 10 ++++----- src/iter.c | 10 +++++---- src/main.c | 28 ++++++------------------ src/main.h | 3 +-- src/map.c | 20 ++++++------------ src/prog.c | 15 +++++-------- src/struct_ops.c | 22 ++++++++----------- 15 files changed, 78 insertions(+), 107 deletions(-) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2022-11-21sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 62c69e89e81bfbdb9a87ae3e0599dcc6aacf786b Checkpoint bpf-next commit: b548b17a93fd18357a5a6f535c10c1e68719ad32 Baseline bpf commit: e7b09357453a99e6f9e74c39e9ca1363c22c0b96 Checkpoint bpf commit: 9cbd48d5fa14e4c65f8580de16686077f7cea02b Anshuman Khandual (4): perf branch: Add system error and not in transaction branch types perf branch: Extend branch type classification perf branch: Add branch privilege information request flag perf branch: Add PERF_BR_NEW_ARCH_[N] map for BRBE on arm64 platform Arnaldo Carvalho de Melo (1): tools headers UAPI: Sync linux/perf_event.h with the kernel sources Colin Ian King (1): bpftool: Fix spelling mistake "disasembler" -> "disassembler" Eduard Zingerman (1): libbpf: Hashmap interface update to allow both long and void* keys/values Martin KaFai Lau (1): bpf: Add hwtstamp field for the sockops prog Pu Lehui (1): bpftool: Fix NULL pointer dereference when pin {PROG, MAP, LINK} without FILE Quentin Monnet (10): bpftool: Set binary name to "bpftool" in help and version output bpftool: Add "bootstrap" feature to version output bpftool: Define _GNU_SOURCE only once bpftool: Remove asserts from JIT disassembler bpftool: Split FEATURE_TESTS/FEATURE_DISPLAY definitions in Makefile bpftool: Group libbfd defs in Makefile, only pass them if we use libbfd bpftool: Refactor disassembler for JIT-ed programs bpftool: Add LLVM as default library for disassembling JIT-ed programs bpftool: Support setting alternative arch for JIT disasm with LLVM bpftool: Add llvm feature to "bpftool version" Ravi Bangoria (1): tools headers UAPI: Sync include/uapi/linux/perf_event.h header with the kernel Wang Yufen (3): bpftool: Add autoattach for bpf prog load|loadall bpftool: Update doc (add autoattach to prog load) bpftool: Update the bash completion(add autoattach to prog load) Yonghong Song (2): bpf: Implement cgroup storage available to non-cgroup-attached bpf progs bpftool: Support new cgroup local storage bash-completion/bpftool | 1 + docs/bpftool-map.rst | 2 +- docs/bpftool-prog.rst | 15 +- docs/common_options.rst | 8 +- include/uapi/linux/bpf.h | 51 ++++++- include/uapi/linux/perf_event.h | 55 ++++++- src/Makefile | 72 ++++++--- src/btf.c | 25 ++- src/common.c | 25 +-- src/gen.c | 19 +-- src/iter.c | 2 + src/jit_disasm.c | 261 ++++++++++++++++++++++++++------ src/link.c | 10 +- src/main.c | 90 +++++++---- src/main.h | 46 +++--- src/map.c | 13 +- src/net.c | 2 + src/perf.c | 2 + src/pids.c | 16 +- src/prog.c | 109 ++++++++++--- src/xlated_dumper.c | 2 + 21 files changed, 606 insertions(+), 220 deletions(-) Signed-off-by: Quentin Monnet <quentin@isovalent.com>
2022-10-20sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 87dbdc230d162bf9ee1ac77c8ade178b6b1e199e Checkpoint bpf-next commit: 62c69e89e81bfbdb9a87ae3e0599dcc6aacf786b Baseline bpf commit: 60240bc26114543fcbfcd8a28466e67e77b20388 Checkpoint bpf commit: e7b09357453a99e6f9e74c39e9ca1363c22c0b96 Andrii Nakryiko (1): bpf: explicitly define BPF_FUNC_xxx integer values Christophe JAILLET (1): headers: Remove some left-over license text Kui-Feng Lee (3): bpf: Parameterize task iterators. bpf: Handle bpf_link_info for the parameterized task BPF iterators. bpftool: Show parameters of BPF task iterators. Tianyi Liu (1): bpftool: Fix error message of strerror Yuan Can (2): bpftool: Remove unused struct btf_attach_point bpftool: Remove unused struct event_ring_info include/uapi/linux/bpf.h | 442 +++++++++++++++-------------- include/uapi/linux/tc_act/tc_bpf.h | 5 - src/btf.c | 16 +- src/gen.c | 4 +- src/link.c | 19 ++ src/map_perf_ring.c | 14 +- 6 files changed, 258 insertions(+), 242 deletions(-) -- 2.34.1
2022-09-28sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: e34cfee65ec891a319ce79797dda18083af33a76 Checkpoint bpf-next commit: 87dbdc230d162bf9ee1ac77c8ade178b6b1e199e Baseline bpf commit: 14b20b784f59bdd95f6f1cfb112c9818bcec4d84 Checkpoint bpf commit: 60240bc26114543fcbfcd8a28466e67e77b20388 Ali Saidi (1): perf tools: Sync addition of PERF_MEM_SNOOPX_PEER David Vernet (2): bpf: Define new BPF_MAP_TYPE_USER_RINGBUF map type bpf: Add bpf_user_ringbuf_drain() helper Hao Luo (3): bpf: Introduce cgroup iter bpf: Add CGROUP prefix to cgroup_iter_order bpftool: Add support for querying cgroup_iter link Jiri Olsa (1): bpf: Return value in kprobe get_func_ip only for entry address Lam Thai (1): bpftool: Fix a wrong type cast in btf_dumper_int Namhyung Kim (1): tools headers UAPI: Sync linux/perf_event.h with the kernel sources Pu Lehui (2): bpf, cgroup: Reject prog_attach_flags array when effective query bpftool: Fix wrong cgroup attach flags being assigned to effective progs Quentin Monnet (1): bpf: Fix a few typos in BPF helpers documentation Roberto Sassu (1): bpftool: Complete libbfd feature detection Shmulik Ladkani (2): bpf, flow_dissector: Introduce BPF_FLOW_DISSECTOR_CONTINUE retcode for bpf progs bpf: Support getting tunnel flags Stanislav Fomichev (1): bpf: update bpf_{g,s}et_retval documentation Yonghong Song (1): bpf: Update descriptions for helpers bpf_get_func_arg[_cnt]() docs/bpftool-map.rst | 2 +- include/uapi/linux/bpf.h | 139 +++++++++++++++++++++++++++----- include/uapi/linux/perf_event.h | 7 +- src/Makefile | 6 +- src/btf_dumper.c | 2 +- src/cgroup.c | 54 +++++++++++-- src/link.c | 35 ++++++++ src/map.c | 2 +- 8 files changed, 215 insertions(+), 32 deletions(-) -- 2.34.1
2022-08-19sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 73cf09a36bf7bfb3e5a3ff23755c36d49137c44d Checkpoint bpf-next commit: e34cfee65ec891a319ce79797dda18083af33a76 Baseline bpf commit: e7c677bdd03d54e9a1bafcaf1faf5c573a506bba Checkpoint bpf commit: 14b20b784f59bdd95f6f1cfb112c9818bcec4d84 Andres Freund (2): tools bpftool: Fix compilation error with new binutils tools bpftool: Don't display disassembler-four-args feature test Quentin Monnet (3): bpftool: Fix a typo in a comment bpf: Clear up confusion in bpf_skb_adjust_room()'s documentation bpftool: Clear errno after libcap's checks include/uapi/linux/bpf.h | 6 ++++-- src/Makefile | 8 ++++++-- src/feature.c | 2 +- src/jit_disasm.c | 42 ++++++++++++++++++++++++++++++++-------- src/main.c | 10 ++++++++++ 5 files changed, 55 insertions(+), 13 deletions(-) -- 2.34.1
2022-08-11sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 71930846b36f8e4e68267f8a3d47e33435c3657a Checkpoint bpf-next commit: 73cf09a36bf7bfb3e5a3ff23755c36d49137c44d Baseline bpf commit: f946964a9f79f8dcb5a6329265281eebfc23aee5 Checkpoint bpf commit: e7c677bdd03d54e9a1bafcaf1faf5c573a506bba Dave Marchevsky (1): bpf: Improve docstring for BPF_F_USER_BUILD_ID flag Gustavo A. R. Silva (1): treewide: uapi: Replace zero-length arrays with flexible-array members Jesper Dangaard Brouer (1): bpf: Add BPF-helper for accessing CLOCK_TAI Manu Bretelle (1): bpftool: Remove BPF_OBJ_NAME_LEN restriction when looking up bpf program by name include/uapi/linux/bpf.h | 27 +++++++++++++++++++++++++-- include/uapi/linux/perf_event.h | 2 +- include/uapi/linux/pkt_cls.h | 4 ++-- src/common.c | 15 ++++++++++++--- 4 files changed, 40 insertions(+), 8 deletions(-) -- 2.34.1
2022-08-01sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: b0d93b44641a83c28014ca38001e85bf6dc8501e Checkpoint bpf-next commit: 71930846b36f8e4e68267f8a3d47e33435c3657a Baseline bpf commit: d28b25a62a47a8c8aa19bd543863aab6717e68c9 Checkpoint bpf commit: f946964a9f79f8dcb5a6329265281eebfc23aee5 Daniel Müller (3): bpf: Introduce TYPE_MATCH related constants/macros bpftool: Honor BPF_CORE_TYPE_MATCHES relocation bpftool: Add support for KIND_RESTRICT to gen min_core_btf command Hangbin Liu (1): Bonding: add per-port priority for failover re-selection Joanne Koong (2): bpf: Add flags arg to bpf_dynptr_read and bpf_dynptr_write APIs bpf: fix bpf_skb_pull_data documentation Jörn-Thorben Hinz (1): bpftool: Don't try to return value from void function in skeleton Quentin Monnet (2): bpftool: Rename "bpftool feature list" into "... feature list_builtins" bpftool: Remove zlib feature test from Makefile Rongguang Wei (1): bpftool: Replace sizeof(arr)/sizeof(arr[0]) with ARRAY_SIZE macro bash-completion/bpftool | 8 +-- docs/bpftool-feature.rst | 4 +- include/uapi/linux/bpf.h | 15 +++-- include/uapi/linux/if_link.h | 1 + src/Makefile | 11 +--- src/feature.c | 10 ++-- src/gen.c | 111 ++++++++++++++++++++++++++++++++++- src/prog.c | 2 +- 8 files changed, 135 insertions(+), 27 deletions(-) -- 2.34.1
2022-07-04sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 3e6fe5ce4d4860c3a111c246fddc6f31492f4fb0 Checkpoint bpf-next commit: b0d93b44641a83c28014ca38001e85bf6dc8501e Baseline bpf commit: 5e0b0a4c52d30bb09659446f40b77a692361600d Checkpoint bpf commit: d28b25a62a47a8c8aa19bd543863aab6717e68c9 Maxim Mikityanskiy (2): bpf: Fix documentation of th_len in bpf_tcp_{gen,check}_syncookie bpf: Add helpers to issue and check SYN cookies in XDP Quentin Monnet (3): bpftool: Probe for memcg-based accounting before bumping rlimit bpftool: Add feature list (prog/map/link/attach types, helpers) bpftool: Use feature list in bash completion Stanislav Fomichev (3): bpf: per-cgroup lsm flavor tools/bpf: Sync btf_ids.h to tools bpftool: implement cgroup tree for BPF_LSM_CGROUP Tobias Klauser (1): bpftool: Remove attach_type_name forward declaration Yafang Shao (1): bpftool: Show also the name of type BPF_OBJ_LINK bash-completion/bpftool | 28 ++++------ docs/bpftool-feature.rst | 12 +++++ include/uapi/linux/bpf.h | 92 +++++++++++++++++++++++++++++++-- src/cgroup.c | 109 +++++++++++++++++++++++++++++++-------- src/common.c | 72 ++++++++++++++++++++++++-- src/feature.c | 55 ++++++++++++++++++++ src/main.h | 2 - 7 files changed, 321 insertions(+), 49 deletions(-) -- 2.34.1
2022-06-24sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: fe92833524e368e59bba9c57e00f7359f133667f Checkpoint bpf-next commit: 3e6fe5ce4d4860c3a111c246fddc6f31492f4fb0 Baseline bpf commit: 825464e79db4aac936e0fdae62cdfb7546d0028f Checkpoint bpf commit: 5e0b0a4c52d30bb09659446f40b77a692361600d Quentin Monnet (2): Revert "bpftool: Use libbpf 1.0 API mode instead of RLIMIT_MEMLOCK" bpftool: Do not check return value from libbpf_set_strict_mode() src/common.c | 8 ++++++++ src/feature.c | 2 ++ src/main.c | 2 -- src/main.h | 2 ++ src/map.c | 2 ++ src/pids.c | 1 + src/prog.c | 3 +++ src/struct_ops.c | 2 ++ 8 files changed, 20 insertions(+), 2 deletions(-) -- 2.34.1
2022-06-13sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 02f4afebf8a54ba16f99f4f6ca10df3efeac6229 Checkpoint bpf-next commit: fe92833524e368e59bba9c57e00f7359f133667f Baseline bpf commit: d08af2c46881b62f4efad8ebb7eae381fa1f1033 Checkpoint bpf commit: 825464e79db4aac936e0fdae62cdfb7546d0028f Shahab Vahedi (1): bpftool: Fix bootstrapping during a cross compilation Yonghong Song (2): bpf: Add btf enum64 support bpftool: Add btf enum64 support include/uapi/linux/btf.h | 17 +++++++++--- src/Makefile | 2 +- src/btf.c | 57 +++++++++++++++++++++++++++++++++++++--- src/btf_dumper.c | 29 ++++++++++++++++++++ src/gen.c | 1 + 5 files changed, 99 insertions(+), 7 deletions(-) -- 2.34.1
2022-06-08sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: ac6a65868a5a45db49d5ee8524df3b701110d844 Checkpoint bpf-next commit: 02f4afebf8a54ba16f99f4f6ca10df3efeac6229 Baseline bpf commit: f3f19f939c11925dadd3f4776f99f8c278a7017b Checkpoint bpf commit: d08af2c46881b62f4efad8ebb7eae381fa1f1033 Daniel Müller (4): bpftool: Use libbpf_bpf_prog_type_str bpftool: Use libbpf_bpf_map_type_str bpftool: Use libbpf_bpf_attach_type_str bpftool: Use libbpf_bpf_link_type_str Eric Dumazet (1): net: add IFLA_TSO_{MAX_SIZE|SEGS} attributes Geliang Tang (1): bpf: Add bpf_skc_to_mptcp_sock_proto Joanne Koong (5): bpf: Add verifier support for dynptrs bpf: Add bpf_dynptr_from_mem for local dynptrs bpf: Dynptr support for ring buffers bpf: Add bpf_dynptr_read and bpf_dynptr_write bpf: Add dynptr data slices Michael Mullin (1): bpftool: Check for NULL ptr of btf in codegen_asserts bash-completion/bpftool | 18 ++++---- docs/bpftool-cgroup.rst | 16 +++++-- docs/bpftool-prog.rst | 5 +- include/uapi/linux/bpf.h | 90 ++++++++++++++++++++++++++++++++++++ include/uapi/linux/if_link.h | 2 + src/cgroup.c | 53 ++++++++++++++------- src/common.c | 82 +++++++++++++++----------------- src/feature.c | 87 ++++++++++++++++++++-------------- src/gen.c | 3 ++ src/link.c | 61 ++++++++++++------------ src/main.h | 20 +++++--- src/map.c | 82 +++++++++++++------------------- src/prog.c | 76 +++++++++++++----------------- 13 files changed, 353 insertions(+), 242 deletions(-) -- 2.34.1
2022-05-16sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: d54d06a4c4bc5d76815d02e4b041b31d9dbb3fef Checkpoint bpf-next commit: b2531d4bdce19f28364b45aac9132e153b1f23a4 Baseline bpf commit: ba3beec2ec1d3b4fd8672ca6e781dac4b3267f6e Checkpoint bpf commit: f3f19f939c11925dadd3f4776f99f8c278a7017b Feng Zhou (1): bpf: add bpf_map_lookup_percpu_elem for percpu map Jason Wang (1): bpftool: Declare generator name KP Singh (1): bpftool: bpf_link_get_from_fd support for LSM programs in lskel Kaixi Fan (1): bpf: Add source ip in "struct bpf_tunnel_key" Kui-Feng Lee (2): bpf, x86: Generate trampolines from bpf_tramp_links bpf, x86: Attach a cookie to fentry/fexit/fmod_ret/lsm. Milan Landaverde (2): bpftool: Adjust for error codes from libbpf probes bpftool: Output message if no helpers found in feature probing include/uapi/linux/bpf.h | 23 +++++++++++++++++++++++ src/feature.c | 22 +++++++++++++++++----- src/gen.c | 5 +++-- src/link.c | 1 + 4 files changed, 44 insertions(+), 7 deletions(-) -- 2.34.1
2022-04-29sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 34ba23b44c664792a4308ec37b5788a3162944ec Checkpoint bpf-next commit: d54d06a4c4bc5d76815d02e4b041b31d9dbb3fef Baseline bpf commit: 8de8b71b787f38983d414d2dba169a3bfefa668a Checkpoint bpf commit: ba3beec2ec1d3b4fd8672ca6e781dac4b3267f6e Dominique Martinet (2): bpftool, musl compat: Replace nftw with FTW_ACTIONRETVAL bpftool, musl compat: Replace sys/fcntl.h by fcntl.h Kumar Kartikeya Dwivedi (1): bpf: Allow storing referenced kptr in map Yafang Shao (1): bpftool: Use libbpf 1.0 API mode instead of RLIMIT_MEMLOCK include/uapi/linux/bpf.h | 12 ++++ src/common.c | 8 --- src/feature.c | 2 - src/main.c | 6 +- src/main.h | 2 - src/map.c | 2 - src/perf.c | 118 ++++++++++++++++++++------------------- src/pids.c | 1 - src/prog.c | 3 - src/struct_ops.c | 2 - src/tracelog.c | 2 +- 11 files changed, 76 insertions(+), 82 deletions(-) -- 2.34.1
2022-04-11sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 2d0df01974ce2b59b6f7d5bd3ea58d74f12ddf85 Checkpoint bpf-next commit: 34ba23b44c664792a4308ec37b5788a3162944ec Baseline bpf commit: 0a210af6d0a0595fef566e7eeb072f10f37774be Checkpoint bpf commit: 8de8b71b787f38983d414d2dba169a3bfefa668a Masahiro Yamada (1): kbuild: replace $(if A,A,B) with $(or A,B) src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.32.0
2022-04-07sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 9492450fd28736262dea9143ebb3afc2c131ace1 Checkpoint bpf-next commit: 2d0df01974ce2b59b6f7d5bd3ea58d74f12ddf85 Baseline bpf commit: 6bd0c76bd70447aedfeafa9e1fcc249991d6c678 Checkpoint bpf commit: 0a210af6d0a0595fef566e7eeb072f10f37774be Anshuman Khandual (1): perf: Add irq and exception return branch types Delyan Kratunov (1): bpftool: Explicit errno handling in skeletons Geliang Tang (1): bpf: Sync comments for bpf_get_stack Haiyue Wang (1): bpf: Correct the comment for BTF kind bitfield Jiri Olsa (1): bpftool: Fix generated code in codegen_asserts Milan Landaverde (4): bpf/bpftool: Add unprivileged_bpf_disabled check against value of 2 bpftool: Add syscall prog type bpftool: Add missing link types bpftool: Handle libbpf_probe_prog_type errors Yafang Shao (1): bpftool: Fix print error when show bpf map Yonghong Song (1): bpftool: Fix a bug in subskeleton code generation include/uapi/linux/bpf.h | 8 ++++---- include/uapi/linux/btf.h | 4 ++-- include/uapi/linux/perf_event.h | 2 ++ src/feature.c | 7 +++++-- src/gen.c | 23 +++++++++++++++-------- src/link.c | 3 +++ src/map.c | 7 ++----- src/prog.c | 1 + 8 files changed, 34 insertions(+), 21 deletions(-) -- 2.32.0
2022-03-21sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: c344b9fc2108eeaa347c387219886cf87e520e93 Checkpoint bpf-next commit: 9492450fd28736262dea9143ebb3afc2c131ace1 Baseline bpf commit: 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21 Checkpoint bpf commit: 6bd0c76bd70447aedfeafa9e1fcc249991d6c678 Andrii Nakryiko (1): bpftool: Add BPF_TRACE_KPROBE_MULTI to attach type names table Chris J Arges (1): bpftool: Ensure bytes_memlock json output is correct Daniel Xu (1): bpftool: man: Add missing top level docs Delyan Kratunov (1): bpftool: Add support for subskeletons Dmitrii Dolgov (1): bpftool: Add bpf_cookie to link output Hengqi Chen (1): bpf: Fix comment for helper bpf_current_task_under_cgroup() Jiri Olsa (2): bpf: Add multi kprobe link bpf: Add cookie support to programs attached with kprobe multi link Martin KaFai Lau (1): bpf: Remove BPF_SKB_DELIVERY_TIME_NONE and rename s/delivery_time_/tstamp_/ Niklas Söderlund (1): bpftool: Restore support for BPF offload-enabled feature probing Roberto Sassu (1): bpf-lsm: Introduce new helper bpf_ima_file_hash() Toke Høiland-Jørgensen (1): bpf: Add "live packet" mode for XDP in BPF_PROG_RUN bash-completion/bpftool | 14 +- docs/bpftool-gen.rst | 25 ++ docs/bpftool.rst | 13 +- include/uapi/linux/bpf.h | 72 +++-- src/common.c | 2 +- src/feature.c | 152 +++++++++- src/gen.c | 588 ++++++++++++++++++++++++++++++------ src/main.h | 2 + src/map.c | 2 +- src/pids.c | 8 + src/prog.c | 2 +- src/skeleton/pid_iter.bpf.c | 22 ++ src/skeleton/pid_iter.h | 2 + 13 files changed, 781 insertions(+), 123 deletions(-) -- 2.32.0
2022-03-08sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 8cbf062a250ed52148badf6f3ffd03657dd4a3f0 Checkpoint bpf-next commit: c344b9fc2108eeaa347c387219886cf87e520e93 Baseline bpf commit: 61d06f01f9710b327a53492e5add9f972eb909b3 Checkpoint bpf commit: 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21 Andrii Nakryiko (1): bpftool: Fix C++ additions to skeleton Arnaldo Carvalho de Melo (1): tools headers UAPI: Sync linux/perf_event.h with the kernel sources Delyan Kratunov (1): bpftool: Bpf skeletons assert type sizes Hangbin Liu (1): bonding: add new option ns_ip6_target Jiri Olsa (1): bpftool: Fix pretty print dump for maps without BTF loaded Martin KaFai Lau (1): bpf: Add __sk_buff->delivery_time_type and bpf_skb_set_skb_delivery_time() Mauricio Vásquez (4): bpftool: Add gen min_core_btf command bpftool: Implement "gen min_core_btf" logic bpftool: Implement btfgen_get_btf() bpftool: Remove usage of reallocarray() Rafael David Tinoco (1): bpftool: Gen min_core_btf explanation and examples Yuntao Wang (1): bpftool: Remove redundant slashes bash-completion/bpftool | 6 +- docs/bpftool-gen.rst | 90 ++++ include/uapi/linux/bpf.h | 41 +- include/uapi/linux/if_link.h | 1 + include/uapi/linux/perf_event.h | 2 + src/Makefile | 28 +- src/gen.c | 732 ++++++++++++++++++++++++++++++-- src/main.h | 2 +- src/map.c | 31 +- src/prog.c | 7 +- src/xlated_dumper.c | 5 +- 11 files changed, 873 insertions(+), 72 deletions(-) -- 2.32.0
2022-02-16sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: dc37dc617fabfb1c3a16d49f5d8cc20e9e3608ca Checkpoint bpf-next commit: 8cbf062a250ed52148badf6f3ffd03657dd4a3f0 Baseline bpf commit: fe68195daf34d5dddacd3f93dd3eafc4beca3a0e Checkpoint bpf commit: 61d06f01f9710b327a53492e5add9f972eb909b3 Alexei Starovoitov (1): bpftool: Generalize light skeleton generation. Andrii Nakryiko (1): bpftool: Add C++-specific open/load/etc skeleton wrappers Arnaldo Carvalho de Melo (1): tools headers UAPI: Sync linux/perf_event.h with the kernel sources Jakub Sitnicki (1): selftests/bpf: Cover 4-byte load from remote_port in bpf_sk_lookup Quentin Monnet (2): bpftool: Add libbpf's version number to "bpftool version" output bpftool: Update versioning scheme, align on libbpf's version number Yinjun Zhang (1): bpftool: Fix the error when lookup in no-btf maps docs/common_options.rst | 13 +++---- include/uapi/linux/bpf.h | 3 +- include/uapi/linux/perf_event.h | 6 ++-- src/Makefile | 6 ++-- src/gen.c | 63 ++++++++++++++++++++++----------- src/main.c | 25 +++++++++++++ src/map.c | 6 ++-- 7 files changed, 83 insertions(+), 39 deletions(-) -- 2.32.0
2022-02-10sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 227a0713b319e7a8605312dee1c97c97a719a9fc Checkpoint bpf-next commit: dc37dc617fabfb1c3a16d49f5d8cc20e9e3608ca Baseline bpf commit: 77b1b8b43ec3c060ecf7e926a92b0f8772171046 Checkpoint bpf commit: fe68195daf34d5dddacd3f93dd3eafc4beca3a0e Latest bpftool version: 5.16.0+dc37dc617fab Mauricio Vásquez (1): bpftool: Fix strict mode calculation src/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.32.0
2022-02-07sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: c446fdacb10dcb3b9a9ed3b91d91e72d71d94b03 Checkpoint bpf-next commit: 227a0713b319e7a8605312dee1c97c97a719a9fc Baseline bpf commit: e2bcbd7769ee8f05e1b3d10848aace98973844e4 Checkpoint bpf commit: 77b1b8b43ec3c060ecf7e926a92b0f8772171046 Latest bpftool version: 5.16.0+227a0713b319 Alexei Starovoitov (2): libbpf: Add support for bpf iter in light skeleton. libbpf: Open code raw_tp_open and link_create commands. Andrii Nakryiko (2): bpftool: Stop supporting BPF offload-enabled feature probing bpftool: Fix uninit variable compilation warning Delyan Kratunov (1): bpftool: Migrate from bpf_prog_test_run_xattr Jakub Sitnicki (1): selftests/bpf: Extend verifier and bpf_sock tests for dst_port loads include/uapi/linux/bpf.h | 3 ++- src/common.c | 2 +- src/feature.c | 29 +++++++++++++++++------------ src/gen.c | 7 +++++-- src/prog.c | 5 ++--- 5 files changed, 27 insertions(+), 19 deletions(-) -- 2.32.0
2022-01-26sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 820e6e227c4053b6b631ae65ef1f65d560cb392b Checkpoint bpf-next commit: c446fdacb10dcb3b9a9ed3b91d91e72d71d94b03 Baseline bpf commit: baa59504c1cd0cca7d41954a45ee0b3dc78e41a0 Checkpoint bpf commit: e2bcbd7769ee8f05e1b3d10848aace98973844e4 Latest bpftool version: 5.16.0-c446fdacb10d Andrii Nakryiko (1): bpftool: use preferred setters/getters instead of deprecated ones Kajol Jain (1): tools headers UAPI: Add new macros for mem_hops field to perf_event.h Kenny Yu (1): bpf: Add bpf_copy_from_user_task() helper Lorenzo Bianconi (3): bpf: introduce BPF_F_XDP_HAS_FRAGS flag in prog_flags loading the ebpf program bpf: introduce bpf_xdp_get_buff_len helper net: xdp: introduce bpf_xdp_pointer utility routine Yafang Shao (1): tools/bpf/bpftool/skeleton: replace bpf_probe_read_kernel with bpf_probe_read_kernel_str to get task comm include/uapi/linux/bpf.h | 41 +++++++++++++++++++++++++++++++++ include/uapi/linux/perf_event.h | 5 +++- src/gen.c | 2 +- src/prog.c | 8 +++---- src/skeleton/pid_iter.bpf.c | 4 ++-- 5 files changed, 52 insertions(+), 8 deletions(-) -- 2.32.0
2022-01-24sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: e80f2a0d194605553315de68284fc41969f81f62 Checkpoint bpf-next commit: 820e6e227c4053b6b631ae65ef1f65d560cb392b Baseline bpf commit: 343e53754b21ae45530623222aa079fecd3cf942 Checkpoint bpf commit: baa59504c1cd0cca7d41954a45ee0b3dc78e41a0 Latest bpftool version: 5.16.0-820e6e227c40 Andrii Nakryiko (2): libbpf: deprecate legacy BPF map definitions bpftool: use new API for attaching XDP program Raman Shukhau (1): bpftool: Adding support for BTF program names 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/cgroup.c | 6 ++++-- src/common.c | 44 ++++++++++++++++++++++++++++++++++++++++ src/main.c | 9 +++++++- src/main.h | 4 ++++ src/net.c | 2 +- src/prog.c | 28 ++++++++++++++++--------- 7 files changed, 112 insertions(+), 14 deletions(-) -- 2.32.0
2022-01-18sync: Pull latest bpftool changes from kernelQuentin Monnet
Syncing latest bpftool commits from kernel repository. Baseline bpf-next commit: 44bab87d8ca6f0544a9f8fc97bdf33aa5b3c899e Checkpoint bpf-next commit: e80f2a0d194605553315de68284fc41969f81f62 Baseline bpf commit: d6d86830705f173fca6087a3e67ceaf68db80523 Checkpoint bpf commit: 343e53754b21ae45530623222aa079fecd3cf942 Latest bpftool version: 5.16.0-e80f2a0d1946 Christy Lee (1): bpftool: Stop using bpf_map__def() API Mauricio Vásquez (1): bpftool: Fix error check when calling hashmap__new() Wei Fu (1): bpftool: Only set obj->skeleton on complete success src/btf.c | 2 +- src/gen.c | 14 +++++++------- src/link.c | 3 ++- src/map.c | 2 +- src/pids.c | 3 ++- src/prog.c | 2 +- src/struct_ops.c | 4 +--- 7 files changed, 15 insertions(+), 15 deletions(-) -- 2.32.0
2022-01-17mirror: Adjust sync-kernel.sh for bpftoolQuentin Monnet
Copied from libbpf in the previous commit, the sync-kernel.sh script will help us synchronise the source files in this repository with the original ones, in the kernel repository. But it needs a few adjustments to work with bpftool. These include: - Adding the reference commits in CHECKPOINT-COMMIT and BPF-CHECKPOINT-COMMIT - Making it possible to pass BPF_NEXT_COMMIT_TIP and BPF_COMMIT_TIP to the script, so we can synchronise with libbpf's checkpoints instead of current tips of kernel branches - Updating the list of files to synchronise, as well as the relevant filters - Add some processing for copying or moving around source files into different subdirectories - Removing the synchronisation step for bpf_helper_defs.h - Fix variables/argument parsing order to get usage() and not an error from "cat" if no argument is provided - Skip cherry-picking for commits on branch bpf that are already in bpf-next (see note below). - Add a few info messages before cherry-picking commits for each branch - Add color (auto mode) on the final diff to check consistency - Renaming most references to "libbpf" into "bpftool" Note on cherry-picking: We add a check to skip cherry-picking for commits on branch bpf that are already on branch bpf-next (commits that are ancestors to the selected bpf-next tip). The rationale is that all commits from bpf-next are already dealt with when we process bpf: the initial files were added from bpf-next, and then we always cherry-pick from bpf-next before we do bpf. This goes faster, and it avoids conflicts during the early life of the mirror, when commits in bpf are already accounted for but when the relevant signatures are not yet in the mirror's history (because the commits in bpf-next are anterior to the initial import of the files). The latter point should not be an issue for long, given that synchronisation with bpf-next will make signatures of new commits available in the history. Signed-off-by: Quentin Monnet <quentin@isovalent.com>