aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib
AgeCommit message (Expand)AuthorFilesLines
2024-03-26Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Paolo Abeni1-3/+7
2024-03-21Merge tag 'kbuild-v6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/masa...Linus Torvalds1-1/+1
2024-03-21libbpf: Define MFD_CLOEXEC if not availableArnaldo Carvalho de Melo1-0/+4
2024-03-19libbpf: fix u64-to-pointer cast on 32-bit archesAndrii Nakryiko1-2/+2
2024-03-15libbpf, selftests/bpf: Adjust libbpf, bpftool, selftests to match LLVMAlexei Starovoitov1-1/+1
2024-03-14Merge tag 'perf-tools-for-v6.9-2024-03-13' of git://git.kernel.org/pub/scm/li...Linus Torvalds4-8/+18
2024-03-11libbpf: Recognize __arena global variables.Andrii Nakryiko2-13/+107
2024-03-11libbpf: Add support for bpf_arena.Alexei Starovoitov2-8/+46
2024-03-11libbpf: Add __arg_arena to bpf_helpers.hAlexei Starovoitov1-0/+1
2024-03-10kbuild: unexport abs_srctree and abs_objtreeMasahiro Yamada1-1/+1
2024-03-07libbpf: Allow specifying 64-bit integers in map BTF.Alexei Starovoitov2-2/+43
2024-03-06libbpf: Rewrite btf datasec names starting from '?'Eduard Zingerman3-2/+41
2024-03-06libbpf: Struct_ops in SEC("?.struct_ops") / SEC("?.struct_ops.link")Eduard Zingerman1-1/+14
2024-03-06libbpf: Replace elf_state->st_ops_* fields with SEC_ST_OPS sec_typeEduard Zingerman1-29/+32
2024-03-06libbpf: Sync progs autoload with maps autocreate for struct_ops mapsEduard Zingerman1-0/+43
2024-03-06libbpf: Honor autocreate flag for struct_ops mapsEduard Zingerman1-3/+15
2024-03-06libbpf: Tie struct_ops programs to kernel BTF ids, not to local idsEduard Zingerman1-23/+26
2024-03-06libbpf: Allow version suffixes (___smth) for struct_ops typesEduard Zingerman1-1/+5
2024-03-04libbpf: Correct debug message in btf__load_vmlinux_btfChen Shen1-1/+1
2024-02-29libbpf: Convert st_ops->data to shadow type.Kui-Feng Lee1-2/+38
2024-02-29libbpf: Set btf_value_type_id of struct bpf_map for struct_ops.Kui-Feng Lee1-0/+5
2024-02-29libperf evlist: Avoid out-of-bounds accessIan Rogers2-8/+14
2024-02-22bpf: Clarify batch lookup/lookup_and_delete semanticsMartin Kelly1-5/+12
2024-02-22tools subcmd: Add a no exec function call optionIan Rogers2-0/+4
2024-02-14libbpf: Make remark about zero-initializing bpf_*_info structsMatt Bobrowski1-5/+17
2024-02-13libbpf: Add support to GCC in CORE macro definitionsCupertino Miranda1-7/+38
2024-02-06libbpf: Use OPTS_SET() macro in bpf_xdp_query()Toke Høiland-Jørgensen1-2/+2
2024-02-05libbpf: fix return value for PERF_EVENT __arg_ctx type fix up checkAndrii Nakryiko1-3/+3
2024-02-01libbpf: Add missed btf_ext__raw_data() APIAndrii Nakryiko3-3/+7
2024-02-01libbpf: Add btf__new_split() API that was declared but not implementedAndrii Nakryiko2-1/+7
2024-02-01libbpf: Add missing LIBBPF_API annotation to libbpf_set_memlock_rlim APIAndrii Nakryiko1-1/+1
2024-02-01libbpf: Call memfd_create() syscall directlyAndrii Nakryiko1-1/+10
2024-02-01libbpf: Remove unnecessary null check in kernel_supports()Eduard Zingerman1-1/+1
2024-01-30libbpf: add bpf_core_cast() macroAndrii Nakryiko1-0/+13
2024-01-30libbpf: add __arg_trusted and __arg_nullable tag macrosAndrii Nakryiko1-0/+2
2024-01-29libbpf: Add some details for BTF parsing failuresIan Rogers1-4/+18
2024-01-29libbpf: fix __arg_ctx type enforcement for perf_event programsAndrii Nakryiko1-1/+20
2024-01-29libbpf: integrate __arg_ctx feature detector into kernel_supports()Andrii Nakryiko3-64/+61
2024-01-29libbpf: Fix faccessat() usage on AndroidAndrii Nakryiko1-0/+14
2024-01-26Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski13-490/+800
2024-01-24libbpf: Support BPF token path setting through LIBBPF_BPF_TOKEN_PATH envvarAndrii Nakryiko2-0/+14
2024-01-24libbpf: Wire up BPF token support at BPF object levelAndrii Nakryiko4-11/+131
2024-01-24libbpf: Wire up token_fd into feature probing logicAndrii Nakryiko5-47/+97
2024-01-24libbpf: Move feature detection code into its own fileAndrii Nakryiko6-466/+481
2024-01-24libbpf: Further decouple feature checking logic from bpf_objectAndrii Nakryiko3-11/+22
2024-01-24libbpf: Split feature detectors definitions from cached resultsAndrii Nakryiko1-6/+12
2024-01-24libbpf: Add BPF token support to bpf_prog_load() APIAndrii Nakryiko2-2/+4
2024-01-24libbpf: Add BPF token support to bpf_btf_load() APIAndrii Nakryiko2-2/+9
2024-01-24libbpf: Add BPF token support to bpf_map_create() APIAndrii Nakryiko2-4/+7
2024-01-24libbpf: Add bpf_token_create() APIAndrii Nakryiko3-0/+42
2024-01-24libbpf: Ensure undefined bpf_attr field stays 0Martin KaFai Lau1-1/+1
2024-01-23libbpf: Correct bpf_core_read.h comment wrt bpf_core_relo structDima Tisnek1-1/+1
2024-01-23libbpf: Find correct module BTFs for struct_ops maps and progs.Kui-Feng Lee4-12/+38
2024-01-23libbpf: call dup2() syscall directlyAndrii Nakryiko1-1/+11
2024-01-23libbpf: Apply map_set_def_max_entries() for inner_maps on creationAndrey Grafin1-0/+4
2024-01-19Merge tag 'perf-tools-for-v6.8-1-2024-01-09' of git://git.kernel.org/pub/scm/...Linus Torvalds16-111/+161
2024-01-17libbpf: warn on unexpected __arg_ctx type when rewriting BTFAndrii Nakryiko1-9/+66
2024-01-17libbpf: feature-detect arg:ctx tag support in kernelAndrii Nakryiko1-0/+67
2024-01-04libsubcmd: Fix memory leak in uniq()Ian Rogers1-4/+14
2024-01-03libbpf: implement __arg_ctx fallback logicAndrii Nakryiko1-4/+252
2024-01-03libbpf: move BTF loading step after relocation stepAndrii Nakryiko1-1/+1
2024-01-03libbpf: move exception callbacks assignment logic into relocation stepAndrii Nakryiko1-80/+85
2024-01-03libbpf: use stable map placeholder FDsAndrii Nakryiko2-38/+77
2024-01-03libbpf: don't rely on map->fd as an indicator of map being createdAndrii Nakryiko1-15/+27
2024-01-03libbpf: use explicit map reuse flag to skip map creation stepsAndrii Nakryiko1-1/+1
2024-01-03libbpf: make uniform use of btf__fd() accessor inside libbpfAndrii Nakryiko1-1/+1
2023-12-21libbpf: Fix NULL pointer dereference in bpf_object__collect_prog_relosMingyi Zhang1-0/+2
2023-12-21libbpf: Skip DWARF sections in linker sanity checkAlyssa Ross1-0/+3
2023-12-19libbpf: add __arg_xxx macros for annotating global func argsAndrii Nakryiko1-0/+3
2023-12-19Revert BPF token-related functionalityAndrii Nakryiko12-741/+478
2023-12-18Merge remote-tracking branch 'torvalds/master' into perf-tools-nextArnaldo Carvalho de Melo10-57/+688
2023-12-18libperf cpumap: Document perf_cpu_map__nr()'s behaviorIan Rogers1-0/+11
2023-12-13libbpf: support BPF token path setting through LIBBPF_BPF_TOKEN_PATH envvarAndrii Nakryiko2-6/+21
2023-12-13libbpf: wire up BPF token support at BPF object levelAndrii Nakryiko4-12/+158
2023-12-13libbpf: wire up token_fd into feature probing logicAndrii Nakryiko5-46/+66
2023-12-13libbpf: move feature detection code into its own fileAndrii Nakryiko6-466/+479
2023-12-13libbpf: further decouple feature checking logic from bpf_objectAndrii Nakryiko3-11/+22
2023-12-13libbpf: split feature detectors definitions from cached resultsAndrii Nakryiko1-6/+12
2023-12-13libbpf: Add BPF_CORE_WRITE_BITFIELD() macroDaniel Xu1-0/+32
2023-12-12libperf cpumap: Add for_each_cpu() that skips the "any CPU" caseIan Rogers1-0/+6
2023-12-12libperf cpumap: Replace usage of perf_cpu_map__new(NULL) with perf_cpu_map__n...Ian Rogers5-6/+6
2023-12-12libperf cpumap: Rename perf_cpu_map__empty() to perf_cpu_map__has_any_cpu_or_...Ian Rogers5-7/+7
2023-12-12libperf cpumap: Rename perf_cpu_map__default_new() to perf_cpu_map__new_onlin...Ian Rogers4-27/+51
2023-12-12libperf cpumap: Rename perf_cpu_map__dummy_new() to perf_cpu_map__new_any_cpu()Ian Rogers7-9/+9
2023-12-08libbpf: Add pr_warn() for EINVAL cases in linker_sanity_check_elfSergei Trofimovich1-4/+20
2023-12-08bpf: Load vmlinux btf for any struct_ops mapDavid Vernet1-0/+11
2023-12-06libbpf: add BPF token support to bpf_prog_load() APIAndrii Nakryiko2-2/+4
2023-12-06libbpf: add BPF token support to bpf_btf_load() APIAndrii Nakryiko2-2/+5
2023-12-06libbpf: add BPF token support to bpf_map_create() APIAndrii Nakryiko2-2/+7
2023-12-06libbpf: add bpf_token_create() APIAndrii Nakryiko3-0/+42
2023-11-30tools api fs: Avoid reading whole file for a 1 byte boolIan Rogers1-9/+15
2023-11-30tools api fs: Switch filename__read_str to use io.hIan Rogers2-45/+22
2023-11-30libperf: Lazily allocate/size mmap event copyIan Rogers2-4/+19
2023-11-30libapi: Add missing linux/types.h header to get the __u64 type on io.hArnaldo Carvalho de Melo1-0/+1
2023-11-28libbpf: Add st_type argument to elf_resolve_syms_offsets functionJiri Olsa3-4/+6
2023-11-23libbpf: Start v1.4 development cycleEduard Zingerman2-1/+4
2023-11-09libbpf: Fix potential uninitialized tail padding with LIBBPF_OPTS_RESETYonghong Song1-5/+8
2023-11-03Merge tag 'perf-tools-for-v6.7-1-2023-11-01' of git://git.kernel.org/pub/scm/...Linus Torvalds4-1/+24
2023-10-25libperf rc_check: Add RC_CHK_EQUALIan Rogers1-0/+7
2023-10-25libperf rc_check: Make implicit enabling work for GCCIan Rogers1-1/+5
2023-10-24libbpf: Add link-based API for netkitDaniel Borkmann5-0/+76
2023-10-17libbpf: Don't assume SHT_GNU_verdef presence for SHT_GNU_versym sectionAndrii Nakryiko1-6/+10
2023-10-12tools api: Avoid potential double freeIan Rogers1-0/+1
2023-10-11libbpf: Add support for cgroup unix socket address hooksDaan De Meyer1-0/+10
2023-10-04libbpf: Fix syscall access arguments on riscvAlexandre Ghiti1-2/+0
2023-09-29libbpf: Allow Golang symbols in uprobe secdefHengqi Chen1-6/+16
2023-09-25libbpf: Add ring__consumeMartin Kelly3-0/+22
2023-09-25libbpf: Add ring__map_fdMartin Kelly3-0/+15
2023-09-25libbpf: Add ring__sizeMartin Kelly3-0/+16
2023-09-25libbpf: Add ring__avail_data_sizeMartin Kelly3-0/+21
2023-09-25libbpf: Add ring__producer_pos, ring__consumer_posMartin Kelly3-0/+34
2023-09-25libbpf: Add ring_buffer__ringMartin Kelly3-0/+24
2023-09-25libbpf: Switch rings to array of pointersMartin Kelly1-8/+12
2023-09-25libbpf: Refactor cleanup in ring_buffer__addMartin Kelly1-6/+9
2023-09-22libbpf: Support symbol versioning for uprobeHengqi Chen2-12/+124
2023-09-22libbpf: Resolve symbol conflicts at the same offset for uprobeHengqi Chen1-1/+4
2023-09-17Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller3-24/+303
2023-09-16libbpf: Add support for custom exception callbacksKumar Kartikeya Dwivedi1-5/+109
2023-09-16libbpf: Refactor bpf_object__reloc_codeKumar Kartikeya Dwivedi1-19/+33
2023-09-12perf evlist: Add perf_evlist__go_system_wide() helperYang Jihong2-0/+11
2023-09-09Merge tag 'perf-tools-for-v6.6-1-2023-09-05' of git://git.kernel.org/pub/scm/...Linus Torvalds1-2/+12
2023-09-08libbpf: Add __percpu_kptr macro definitionYonghong Song1-0/+1
2023-09-08libbpf: Add basic BTF sanity validationAndrii Nakryiko1-0/+160
2023-09-01Merge tag 'riscv-for-linus-6.6-mw1' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-0/+66
2023-08-29libperf: Get rid of attr.id fieldNamhyung Kim1-1/+7
2023-08-29libperf: Add perf_record_header_attr_id()Namhyung Kim1-0/+4
2023-08-23libbpf: fix signedness determination in CO-RE relo handling logicAndrii Nakryiko1-1/+1
2023-08-23libbpf: Add bpf_object__unpin()Daniel Xu3-0/+17
2023-08-22libbpf: Free btf_vmlinux when closing bpf_objectHao Luo1-0/+1
2023-08-21libbpf: Add uprobe multi link support to bpf_program__attach_usdtJiri Olsa2-17/+82
2023-08-21libbpf: Add uprobe multi link detectionJiri Olsa2-0/+38
2023-08-21libbpf: Add support for u[ret]probe.multi[.s] program sectionsJiri Olsa1-0/+36
2023-08-21libbpf: Add bpf_program__attach_uprobe_multi functionJiri Olsa3-0/+166
2023-08-21libbpf: Add bpf_link_create support for multi uprobesJiri Olsa2-1/+21
2023-08-21libbpf: Add elf_resolve_pattern_offsets functionJiri Olsa3-1/+67
2023-08-21libbpf: Add elf_resolve_syms_offsets functionJiri Olsa2-0/+112
2023-08-21libbpf: Add elf symbol iteratorJiri Olsa1-64/+115
2023-08-21libbpf: Add elf_open/elf_close functionsJiri Olsa3-42/+57
2023-08-21libbpf: Move elf_find_func_offset* functions to elf objectJiri Olsa4-186/+202
2023-08-21libbpf: Add uprobe_multi attach type and link namesJiri Olsa1-0/+2
2023-08-18libbpf: Support triple-underscore flavors for kfunc relocationDave Marchevsky1-1/+19
2023-08-16tools: lib: perf: Implement riscv mmap supportAlexandre Ghiti1-0/+66
2023-08-16libperf: Implement riscv mmap supportAlexandre Ghiti1-0/+66
2023-08-14libbpf: Set close-on-exec flag on gzopenMarco Vedovati1-2/+2
2023-08-04libbpf: Use local includes inside the librarySergey Kacheev2-3/+3
2023-08-02libbpf: fix typos in MakefileRandy Dunlap1-2/+2
2023-07-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-6/+12
2023-07-19libbpf: Add helper macro to clear opts structsDaniel Borkmann1-0/+16
2023-07-19libbpf: Add link-based API for tcxDaniel Borkmann5-11/+88
2023-07-19libbpf: Add opts-based attach/detach/query API for tcxDaniel Borkmann4-53/+159
2023-07-19xsk: add new netlink attribute dedicated for ZC max fragsMaciej Fijalkowski2-1/+7
2023-07-13Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski7-35/+268
2023-07-11libsubcmd: Avoid SEGV/use-after-free when commands aren't excludedIan Rogers1-6/+12
2023-07-11libbpf: Remove HASHMAP_INIT static initialization helperJohn Sanpe1-10/+0
2023-07-11libbpf: Fix realloc API handling in zero-sized edge casesAndrii Nakryiko2-4/+16
2023-07-08libbpf: only reset sec_def handler when necessaryAndrii Nakryiko1-8/+19
2023-07-06libbpf: Use available_filter_functions_addrs with multi-kprobesJackie Liu1-1/+61
2023-07-06libbpf: Cross-join available_filter_functions and kallsyms for multi-kprobesJackie Liu1-13/+97
2023-06-30libbpf: Add netfilter link attach helperFlorian Westphal5-0/+72
2023-06-30libbpf: Skip modules BTF loading when CAP_SYS_ADMIN is missingAndrea Terzolo1-0/+4
2023-06-30Merge tag 'perf-tools-for-v6.5-1-2023-06-28' of git://git.kernel.org/pub/scm/...Linus Torvalds11-195/+325
2023-06-28Merge tag 'net-next-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds13-48/+229
2023-06-27Merge tag 'objtool-core-2023-06-27' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds2-9/+4
2023-06-20perf subcmd: Fix missing check for return value of malloc() in add_cmdname()Chenyuan Mi1-0/+2
2023-06-14tools api: Add simple timeout to io readIan Rogers1-1/+27
2023-06-13tools api fs: More thread safety for global filesystem variablesIan Rogers1-125/+86
2023-06-12lib subcmd: Avoid memory leak in exclude_cmdsIan Rogers1-2/+6
2023-06-08Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski2-1/+4
2023-06-05bpf: netfilter: Add BPF_NETFILTER bpf_attach_typeFlorian Westphal2-1/+4
2023-05-28libsubcmd: Avoid two path statics, removing 8192 bytes from .bssIan Rogers1-15/+20
2023-05-28tools api fs: Dynamically allocate cgroupfs mount point cache, removing 4128 ...Ian Rogers1-6/+11
2023-05-28tools lib api fs tracing_path: Remove two unused MAX_PATH pathsIan Rogers1-11/+6
2023-05-28tools api fs: Avoid large static PATH_MAX arraysIan Rogers1-7/+18
2023-05-27perf evlist: Propagate user CPU maps intersecting core PMU mapsIan Rogers2-8/+23
2023-05-27perf evsel: Add is_pmu_core inorder to interpret own_cpusIan Rogers1-0/+9
2023-05-27libperf cpumap: Add "any CPU"/dummy test functionIan Rogers2-0/+15
2023-05-27perf cpumap: Add equal functionIan Rogers2-0/+23
2023-05-27perf cpumap: Add internal nr and cpu accessorsIan Rogers1-29/+45
2023-05-26perf cpumap: Add intersect functionIan Rogers2-0/+37
2023-05-26libbpf: Ensure FD >= 3 during bpf_map__reuse_fd()Andrii Nakryiko1-7/+6
2023-05-26libbpf: Ensure libbpf always opens files with O_CLOEXECAndrii Nakryiko4-8/+7
2023-05-25libbpf: Change var type in datasec resize funcJP Kobryn1-2/+2
2023-05-24libbpf: Add capability for resizing datasec mapsJP Kobryn2-11/+142
2023-05-23libbpf: Add opts-based bpf_obj_pin() API and add support for path_fdAndrii Nakryiko3-5/+32
2023-05-23libbpf: Start v1.3 development cycleAndrii Nakryiko2-1/+4
2023-05-23perf stat record: Save cache level informationK Prateek Nayak1-1/+2
2023-05-23perf stat: Setup the foundation to allow aggregation based on cache topologyK Prateek Nayak1-0/+5
2023-05-16libbpf: Store zero fd to fd_array for loader kfunc relocationJiri Olsa1-7/+7
2023-05-16Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski3-9/+31
2023-05-16tools/lib/subcmd: Replace NORETURN usage with __noreturnJosh Poimboeuf2-9/+4
2023-05-12libbpf: fix offsetof() and container_of() to work with CO-REAndrii Nakryiko1-5/+10
2023-05-07Merge tag 'perf-tools-for-v6.4-3-2023-05-06' of git://git.kernel.org/pub/scm/...Linus Torvalds9-52/+236
2023-05-04libbpf: Fix comment about arc and riscv arch in bpf_tracing.hKenjiro Nakayama1-1/+2
2023-05-01libbpf: btf_dump_type_data_check_overflow needs to consider BTF_MEMBER_BITFIE...Martin KaFai Lau1-3/+19
2023-04-27Merge tag 'mm-nonmm-stable-2023-04-27-16-01' of git://git.kernel.org/pub/scm/...Linus Torvalds2-2/+2
2023-04-21tools: bpftool: print netfilter link infoFlorian Westphal2-0/+4
2023-04-20libperf rc_check: Enable implicitly with sanitizersIan Rogers1-0/+8
2023-04-18libbpf: mark bpf_iter_num_{new,next,destroy} as __weakAndrii Nakryiko1-3/+3
2023-04-18libbpf: move bpf_for(), bpf_for_each(), and bpf_repeat() into bpf_helpers.hAndrii Nakryiko1-0/+103
2023-04-18libbpf: improve handling of unresolved kfuncsAndrii Nakryiko1-3/+69