aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
AgeCommit message (Expand)AuthorFilesLines
2025-09-22bpftool: Add support for signing BPF programsKP Singh1-1/+28
2025-09-19bpftool: Fix -Wuninitialized-const-pointer warnings with clang >= 21Tom Stellard1-1/+1
2025-08-19bpftool: Add kernel.kptr_restrict hint for no instructionsVincent Li1-1/+1
2025-07-03bpftool: Add support for dumping streamsKumar Kartikeya Dwivedi1-1/+48
2025-06-20bpftool: Use appropriate permissions for map accessSlava Imameev1-2/+2
2025-05-27bpftool: Add support for custom BTF path in prog load/loadallJiayuan Chen1-1/+11
2025-03-17bpftool: Using the right format specifiersJiayuan Chen1-6/+6
2025-03-15bpf: bpftool: Setting error code in do_loader()Sewon Nam1-0/+1
2024-11-25bpftool: fix potential NULL pointer dereferencing in prog_dump()Amir Mohammadi1-5/+12
2024-07-17bpftool: Fix typo in usage helpDonald Hunter1-1/+1
2024-07-02bpftool: Mount bpffs when pinmaps path not under the bpffsTao Chen1-0/+4
2024-04-12bpftool: Fix typo in error messageThorsten Blum1-1/+1
2024-04-04bpftool: Mount bpffs on provided dir instead of parent dirSahil Siddiq1-1/+4
2024-01-23bpftool: Silence build warning about calloc()Tiezhu Yang1-1/+1
2023-11-27bpftool: mark orphaned programs during prog showStanislav Fomichev1-5/+9
2023-10-11bpftool: Add support for cgroup unix socket address hooksDaan De Meyer1-3/+4
2023-05-23bpftool: Specify XDP Hints ifname when loading programLarysa Zaremba1-8/+43
2023-05-17bpftool: Support bpffs mountpoint as pin path for prog loadallPengcheng Yang1-1/+1
2023-04-21bpftool: Register struct_ops with a link.Kui-Feng Lee1-13/+0
2023-04-07bpftool: Set program type only if it differs from the desired oneWei Yongjun1-1/+2
2023-04-05bpftool: Support printing opcodes and source file references in CFGQuentin Monnet1-1/+1
2023-04-05bpftool: Support "opcodes", "linum", "visual" simultaneouslyQuentin Monnet1-28/+33
2023-04-05bpftool: Return an error on prog dumps if both CFG and JSON are requiredQuentin Monnet1-3/+5
2023-04-05bpftool: Support inline annotations when dumping the CFG of a programQuentin Monnet1-10/+7
2023-02-16bpftool: Use bpf_{btf,link,map,prog}_get_info_by_fd()Ilya Leoshkevich1-11/+11
2023-02-02bpftool: profile online CPUs instead of possibleTonghao Zhang1-8/+30
2022-11-20bpftool: clean-up usage of libbpf_get_error()Sahid Orentino Ferdjaoui1-5/+5
2022-11-20bpftool: remove support of --legacy option for bpftoolSahid Orentino Ferdjaoui1-5/+0
2022-11-09libbpf: Hashmap interface update to allow both long and void* keys/valuesEduard Zingerman1-6/+4
2022-10-25bpftool: Support setting alternative arch for JIT disasm with LLVMQuentin Monnet1-4/+2
2022-10-25bpftool: Remove asserts from JIT disassemblerQuentin Monnet1-6/+9
2022-10-25bpftool: Define _GNU_SOURCE only onceQuentin Monnet1-0/+2
2022-10-21bpftool: Add autoattach for bpf prog load|loadallWang Yufen1-2/+74
2022-07-29bpftool: Replace sizeof(arr)/sizeof(arr[0]) with ARRAY_SIZE macroRongguang Wei1-1/+1
2022-06-14Revert "bpftool: Use libbpf 1.0 API mode instead of RLIMIT_MEMLOCK"Quentin Monnet1-0/+3
2022-06-02bpftool: Use libbpf_bpf_attach_type_strDaniel Müller1-3/+22
2022-06-02bpftool: Use libbpf_bpf_prog_type_strDaniel Müller1-42/+9
2022-04-10bpftool: Use libbpf 1.0 API mode instead of RLIMIT_MEMLOCKYafang Shao1-3/+0
2022-04-04bpftool: Add syscall prog typeMilan Landaverde1-0/+1
2022-03-11bpftool: Ensure bytes_memlock json output is correctChris J Arges1-1/+1
2022-02-23bpftool: Remove usage of reallocarray()Mauricio Vásquez1-3/+4
2022-02-02bpftool: Migrate from bpf_prog_test_run_xattrDelyan Kratunov1-3/+2
2022-01-25bpftool: use preferred setters/getters instead of deprecated onesAndrii Nakryiko1-4/+4
2022-01-19bpftool: Adding support for BTF program namesRaman Shukhau1-10/+18
2022-01-12bpftool: Fix error check when calling hashmap__new()Mauricio Vásquez1-1/+1
2022-01-05libbpf 1.0: Deprecate bpf_map__is_offload_neutral()Christy Lee1-1/+1
2021-12-10bpftool: Switch bpf_object__load_xattr() to bpf_object__load()Andrii Nakryiko1-14/+10
2021-12-05bpftool: Add debug mode for gen_loader.Alexei Starovoitov1-9/+11
2021-11-14bpftool: Fix memory leak in prog_dump()Quentin Monnet1-6/+9
2021-11-12bpftool: Enable libbpf's strict mode by defaultStanislav Fomichev1-16/+24
2021-11-03bpftool: Use bpf_obj_get_info_by_fd directlyDave Marchevsky1-34/+125
2021-10-25bpftool: Switch to libbpf's hashmap for PIDs/names referencesQuentin Monnet1-3/+3
2021-10-25bpftool: Switch to libbpf's hashmap for pinned paths of BPF objectsQuentin Monnet1-16/+20
2021-10-25bpftool: Do not expose and init hash maps for pinned path in main.cQuentin Monnet1-1/+8
2021-10-22bpftool: Avoid leaking the JSON writer prepared for program metadataQuentin Monnet1-7/+9
2021-10-08bpftool: Remove unused includes to <bpf/bpf_gen_internal.h>Quentin Monnet1-1/+0
2021-10-06selftests/bpf: Switch to new bpf_object__next_{map,program} APIsHengqi Chen1-1/+1
2021-07-30tools: bpftool: Document and add bash completion for -L, -B optionsQuentin Monnet1-1/+2
2021-07-30tools: bpftool: Update and synchronise option list in doc and help msgQuentin Monnet1-1/+2
2021-07-30tools: bpftool: Complete and synchronise attach or map typesQuentin Monnet1-2/+2
2021-07-29tools: Replace btf__get_from_id() with btf__load_from_kernel_by_id()Quentin Monnet1-8/+16
2021-07-29tools: Free BTF objects at various locationsQuentin Monnet1-1/+4
2021-05-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2021-05-25bpftool: Add sock_release help info for cgroup attach/prog load commandLiu Jian1-1/+1
2021-05-19bpftool: Use syscall/loader program in "prog load" and "gen skeleton" command.Alexei Starovoitov1-1/+106
2021-04-01sock_map: Introduce BPF_SK_SKB_VERDICTCong Wang1-0/+1
2021-02-11bpf: Count the number of times recursion was preventedAlexei Starovoitov1-0/+4
2020-11-20bpftool: Add {i,d}tlb_misses support for bpftool profileYonghong Song1-1/+29
2020-11-05tools/bpftool: Fix attaching flow dissectorLorenz Bauer1-1/+1
2020-09-15bpftool: Support dumping metadataYiFei Zhu1-0/+199
2020-09-03tools/bpftool: Replace bpf_program__title() with bpf_program__section_name()Andrii Nakryiko1-2/+2
2020-08-13tools/bpftool: Fix compilation warnings in 32-bit modeAndrii Nakryiko1-8/+8
2020-07-27tools, bpftool: Add LSM type to array of prog namesQuentin Monnet1-0/+1
2020-07-17tools/bpftool: Add name mappings for SK_LOOKUP prog and attach typeJakub Sitnicki1-1/+2
2020-06-25tools, bpftool: Define prog_type_name array only onceTobias Klauser1-0/+34
2020-06-22tools/bpftool: Show info for processes holding BPF map/prog/link/btf FDsAndrii Nakryiko1-0/+7
2020-06-22tools/bpftool: Move map/prog parsing logic into commonAndrii Nakryiko1-152/+0
2020-06-01tools, bpftool: Clean subcommand help messagesQuentin Monnet1-15/+12
2020-05-19bpf, bpftool: Enable get{peer, sock}name attach typesDaniel Borkmann1-2/+4
2020-05-11tools, bpftool: Poison and replace kernel integer typedefsQuentin Monnet1-1/+1
2020-03-13tools: bpftool: Restore message on failure to guess program typeQuentin Monnet1-4/+23
2020-03-13tools: bpftool: Allow all prog/map handles for pinning objectsQuentin Monnet1-1/+1
2020-03-13bpftool: Only build bpftool-prog-profile if supported by clangSong Liu1-0/+1
2020-03-10bpftool: Introduce "prog profile" commandSong Liu1-1/+423
2020-02-26bpftool: Support struct_ops, tracing, ext prog typesAndrey Ignatov1-2/+2
2020-02-07bpftool: Don't crash on missing xlated program instructionsToke Høiland-Jørgensen1-1/+1
2020-01-20bpftool: Use consistent include paths for libbpfToke Høiland-Jørgensen1-3/+3
2019-12-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-117/+271
2019-12-15bpftool: Match programs by namePaul Chaignon1-4/+18
2019-12-15bpftool: Match several programs with same tagPaul Chaignon1-116/+256
2019-12-11bpftool: Don't crash on missing jited insns or ksymsToke Høiland-Jørgensen1-1/+1
2019-10-22libbpf: Make DECLARE_LIBBPF_OPTS macro strictly a variable declarationAndrii Nakryiko1-4/+4
2019-10-07bpftool: Fix bpftool build by switching to bpf_object__open_file()Andrii Nakryiko1-10/+12
2019-08-15tools: bpftool: close prog FD before exit on showing a single programQuentin Monnet1-1/+3
2019-07-05tools: bpftool: add "prog run" subcommand to test-run programsQuentin Monnet1-1/+347
2019-06-27bpftool: support cgroup sockoptStanislav Fomichev1-1/+2
2019-06-17Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+2
2019-06-06bpf, bpftool: enable recvmsg attach typesDaniel Borkmann1-1/+2
2019-05-28tools: bpftool: make -d option print debug output from verifierQuentin Monnet1-10/+17
2019-05-16tools/bpftool: move set_max_rlimit() before __bpf_object__open_xattr()Yonghong Song1-2/+2
2019-04-16bpftool: Support sysctl hookAndrey Ignatov1-1/+1
2019-04-16tools: bpftool: remove blank line after btf_id when listing programsQuentin Monnet1-1/+1
2019-04-11tools/bpftool: show btf id in program informationPrashant Bhole1-0/+6
2019-03-19bpftool: use bpf_program__get_prog_info_linear() in prog.c:do_dump()Song Liu1-207/+59
2019-03-01tools: libbpf: add a correctly named define for map iterationJakub Kicinski1-2/+2
2019-02-27tools/bpftool: recognize bpf_prog_info run_time_ns and run_cntAlexei Starovoitov1-0/+7
2019-02-19bpf: bpftool, fix documentation for attach typesAlban Crequy1-1/+1
2019-02-08Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-2/+3
2019-01-23libbpf: Show supported ELF section names when failing to guess prog/attach typeTaeung Song1-7/+3
2019-01-23bpftool: Fix prog dump by tagJiri Olsa1-2/+3
2018-12-15tools: bpftool: fix -Wmissing declaration warningsQuentin Monnet1-2/+2
2018-12-13bpf: Remove !func_info and !line_info check from test_btf and bpftoolMartin KaFai Lau1-7/+0
2018-12-13tools: bpftool: replace Netronome boilerplate with SPDX license headersJakub Kicinski1-32/+2
2018-12-10tools/bpf: rename *_info_cnt to nr_*_infoYonghong Song1-24/+24
2018-12-10bpf: bpftool: Fix newline and p_err issueMartin KaFai Lau1-2/+1
2018-12-09bpf: libbpf: bpftool: Print bpf_line_info during prog dumpMartin KaFai Lau1-10/+90
2018-12-05bpf: Expect !info.func_info and insn_off name changes in test_btf/libbpf/bpftoolMartin KaFai Lau1-0/+7
2018-12-05tools: bpftool: add a command to dump the trace pipeQuentin Monnet1-1/+3
2018-11-30tools: bpftool: add owner_prog_type and owner_jited to bpftool outputQuentin Monnet1-24/+1
2018-11-29Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-1/+1
2018-11-28Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-5/+8
2018-11-26libbpf: Name changing for btf_get_from_idMartin KaFai Lau1-1/+1
2018-11-22tools: bpftool: fix potential NULL pointer dereference in do_loadJakub Kicinski1-3/+7
2018-11-20tools/bpf: bpftool: add support for func typesYonghong Song1-0/+56
2018-11-16bpftool: make libbfd optionalStanislav Fomichev1-0/+3
2018-11-10bpftool: support loading flow dissectorStanislav Fomichev1-39/+46
2018-11-10bpftool: add pinmaps argument to the load/loadallStanislav Fomichev1-1/+23
2018-11-10bpftool: add loadall commandStanislav Fomichev1-20/+54
2018-11-09tools: bpftool: fix plain output and doc for --bpffs optionQuentin Monnet1-2/+1
2018-11-07tools: bpftool: adjust rlimit RLIMIT_MEMLOCK when loading programs, mapsQuentin Monnet1-0/+2
2018-10-18tools: bpftool: use 4 context mode for the NFP disasmJakub Kicinski1-5/+9
2018-10-15bpf: bpftool, add flag to allow non-compat map definitionsJohn Fastabend1-1/+1
2018-10-15bpf: bpftool, add support for attaching programs to mapsJohn Fastabend1-1/+98
2018-09-14bpf: support flow dissector in libbpf and bpftoolPetar Penkov1-0/+1
2018-07-11tools: bpftool: allow reuse of maps with bpftool prog loadJakub Kicinski1-13/+135
2018-07-11tools: bpftool: reimplement bpf_prog_load() for prog loadJakub Kicinski1-13/+48
2018-07-11tools: bpftool: allow users to specify program type for prog loadJakub Kicinski1-3/+41
2018-07-11tools: bpftool: add support for loading programs for offloadJakub Kicinski1-2/+33
2018-07-11tools: bpftool: refactor argument parsing for prog loadJakub Kicinski1-4/+7
2018-07-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-3/+1
2018-07-01tools: bpftool: drop unnecessary Author commentsJakub Kicinski1-3/+1
2018-06-21tools: bpftool: remember to close the libbpf object after prog loadJakub Kicinski1-1/+7
2018-06-21tools: bpftool: remove duplicated error message on prog loadJakub Kicinski1-3/+1
2018-06-15tools: bpftool: improve accuracy of load timeJakub Kicinski1-1/+3
2018-05-30bpf: add selftest for lirc_mode2 type programSean Young1-0/+1
2018-05-24tools: bpftool: add delimiters to multi-function JITed dumpsSandipan Das1-1/+72
2018-05-24tools: bpftool: resolve calls without using imm fieldSandipan Das1-0/+24
2018-05-01tools: bpftool: change time format for program 'loaded at:' informationQuentin Monnet1-2/+6
2018-04-26tools, bpftool: Display license GPL compatible in prog show/listJiri Olsa1-0/+3
2018-04-18bpftool: Support new prog types and attach typesAndrey Ignatov1-0/+3
2018-03-01tools: bpftool: new command-line option and documentation for 'visual'Jiong Wang1-1/+11
2018-03-01tools: bpftool: factor out xlated dump related code into separate fileJiong Wang1-254/+1
2018-03-01tools: bpftool: remove unnecessary 'if' to reduce indentationJiong Wang1-20/+18
2018-02-15tools: bpftool: preserve JSON for batch mode when dumping insns to fileQuentin Monnet1-0/+3
2018-01-18tools: bpftool: improve architecture detection by using ifindexJiong Wang1-1/+11
2018-01-16bpftool: recognize BPF_PROG_TYPE_CGROUP_DEVICE programsRoman Gushchin1-0/+1
2018-01-04tools: bpftool: remove new lines from errorsJakub Kicinski1-2/+2
2018-01-04tools: bpftool: alias show and list commandsJakub Kicinski1-1/+2
2017-12-31tools: bpftool: report device information for offloaded programsJakub Kicinski1-0/+3
2017-12-29Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+2
2017-12-23tools: bpftool: protect against races with disappearing objectsJakub Kicinski1-0/+2
2017-12-20bpf: allow for correlation of maps and helpers in dumpDaniel Borkmann1-9/+172
2017-12-14bpftool: implement prog load commandRoman Gushchin1-1/+28
2017-11-21bpftool: revert printing program device bound infoJakub Kicinski1-31/+0
2017-11-11tools: bpftool: optionally show filenames of pinned objectsPrashant Bhole1-1/+2
2017-11-11tools: bpftool: show filenames of pinned objectsPrashant Bhole1-0/+24
2017-11-05bpftool: print program device bound infoJakub Kicinski1-0/+31
2017-10-24tools: bpftool: update documentation for --json and --pretty usageQuentin Monnet1-0/+1
2017-10-24tools: bpftool: provide JSON output for all possible commandsQuentin Monnet1-1/+11
2017-10-24tools: bpftool: turn err() and info() macros into functionsQuentin Monnet1-26/+25
2017-10-24tools: bpftool: add JSON output for `bpftool prog dump xlated *` commandQuentin Monnet1-2/+68
2017-10-24tools: bpftool: add JSON output for `bpftool prog show *` commandQuentin Monnet1-32/+107
2017-10-22tools: bpftool: show that `opcodes` or `file FILE` should be exclusiveQuentin Monnet1-2/+2
2017-10-22tools: bpftool: print all relevant byte opcodes for "load double word"Quentin Monnet1-3/+12
2017-10-22tools: bpftool: add `bpftool prog help` as real command i.r.t exit codeQuentin Monnet1-0/+1
2017-10-22tools: bpftool: use err() instead of info() if there are too many insnsQuentin Monnet1-1/+1
2017-10-22tools: bpftool: fix return value when all eBPF programs have been shownQuentin Monnet1-1/+3
2017-10-22tools: bpftool: add pointer to file argument to print_hex()Quentin Monnet1-2/+2
2017-10-18tools: bpftool: use more common tag formatJakub Kicinski1-1/+1
2017-10-10tools: bpftool: use the kernel's instruction printerJakub Kicinski1-8/+36
2017-10-04tools: bpf: add bpftoolJakub Kicinski1-0/+456