aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/lib
AgeCommit message (Expand)AuthorFilesLines
2025-06-06libbpf: Handle unsupported mmap-based /sys/kernel/btf/vmlinux correctlyAndrii Nakryiko1-3/+3
2025-06-03Merge tag 'perf-tools-for-v6.16-1-2025-06-03' of git://git.kernel.org/pub/scm...Linus Torvalds6-0/+43
2025-05-28Merge tag 'bpf-next-6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/bp...Linus Torvalds9-105/+262
2025-05-23libbpf: Use mmap to parse vmlinux BTF from sysfsLorenz Bauer1-18/+71
2025-05-21libperf threadmap: Add perf_thread_map__idx()Ian Rogers2-0/+13
2025-05-21libperf threadmap: Don't segv for index 0 for the NULL 'struct perf_thread_ma...Ian Rogers1-0/+5
2025-05-20libbpf/btf: Fix string handling to support multi-split BTFAlan Maguire1-1/+1
2025-05-16perf record: Add 8-byte aligned event type PERF_RECORD_COMPRESSED2Chun-Tse Shao2-0/+13
2025-05-14libbpf: Check bpf_map_skeleton link for NULLMykyta Yatsenko1-0/+6
2025-05-12libbpf: Use proper errno value in nlattrAnton Protopopov1-8/+7
2025-05-12libperf cpumap: Add ability to create CPU from a single CPU numberIan Rogers2-0/+12
2025-05-08Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+12
2025-05-05libbpf: Improve BTF dedup handling of "identical" BTF typesAndrii Nakryiko1-48/+89
2025-05-05bpf: Fix uninitialized values in BPF_{CORE,PROBE}_READAnton Protopopov1-0/+6
2025-04-30libbpf: Use proper errno value in linkerAnton Protopopov1-2/+2
2025-04-29perf tools: Fix in-source libperf buildJames Clark1-3/+3
2025-04-29libbpf: Add identical pointer detection to btf_dedup_is_equiv()Alan Maguire1-0/+16
2025-04-25Use thread-safe function pointer in libbpf_printJonathan Wiepert1-1/+1
2025-04-25libbpf: Remove sample_period init in perf_bufferTao Chen1-1/+0
2025-04-23perf tools: Fix arm64 build by generating unistd_64.hJames Clark1-1/+11
2025-04-22libbpf: Fix event name too long errorFeng Yang1-27/+16
2025-04-17libbpf: Support creating and destroying qdiscAmery Hung2-4/+21
2025-04-15libbpf: Verify section type in btf_find_elf_sectionsIhor Solodrai1-0/+6
2025-04-15libbpf: Fix buffer overflow in bpf_object__init_progViktor Malik1-1/+1
2025-04-09libbpf: Add getters for BTF.ext func and line infoMykyta Yatsenko3-0/+34
2025-04-04libbpf: Add likely/unlikely macros and use them in selftestsAnton Protopopov1-0/+8
2025-04-04libbpf: Fix implicit memfd_create() for bionicCarlos Llamas3-10/+10
2025-04-01Merge tag 'mm-nonmm-stable-2025-03-30-18-23' of git://git.kernel.org/pub/scm/...Linus Torvalds2-0/+36
2025-03-31Merge tag 'perf-tools-for-v6.15-2025-03-27' of git://git.kernel.org/pub/scm/l...Linus Torvalds5-15/+115
2025-03-30Merge tag 'bpf-next-6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/bp...Linus Torvalds14-124/+316
2025-03-21libbpf: Add namespace for errstr making it libbpf_errstrIan Rogers2-3/+6
2025-03-19libperf: Don't remove -g when EXTRA_CFLAGS are usedJames Clark1-9/+3
2025-03-17libbpf: Pass BPF token from find_prog_btf_id to BPF_BTF_GET_FD_BY_IDMykyta Yatsenko5-9/+23
2025-03-17lib/interval_tree: add test case for interval_tree_iter_xxx() helpersWei Yang1-0/+20
2025-03-17lib/rbtree: enable userland test suite for rbtree related data structureWei Yang1-0/+16
2025-03-15libbpf: Split bpf object load into prepare/loadMykyta Yatsenko3-43/+117
2025-03-15libbpf: Introduce more granular state for bpf_objectMykyta Yatsenko1-17/+22
2025-03-15libbpf: Use map_is_created helper in map settersMykyta Yatsenko1-9/+9
2025-03-13libapi: Add missing header with NAME_MAX define to io_dir.hArnaldo Carvalho de Melo1-0/+1
2025-02-27perf cpumap: Reduce cpu size from int to int16_tIan Rogers2-5/+6
2025-02-26libbpf: Implement bpf_usdt_arg_size BPF functionIhor Solodrai1-0/+32
2025-02-25Merge tag 'perf-tools-fixes-for-v6.14-2-2025-02-25' of git://git.kernel.org/p...Linus Torvalds3-39/+0
2025-02-24tools lib api: Add io_dir an allocation free readdir alternativeIan Rogers2-1/+105
2025-02-24libbpf: Fix out-of-bound readNandakumar Edamana1-1/+1
2025-02-20libbpf: Fix hypothetical STT_SECTION extern NULL deref caseAndrii Nakryiko1-1/+1
2025-02-19libbpf: Wrap libbpf API direct err with libbpf_errTao Chen1-13/+13
2025-02-18tools: Remove redundant quiet setupCharlie Jenkins3-39/+0
2025-02-14libbpf: fix LDX/STX/ST CO-RE relocation size adjustment logicAndrii Nakryiko1-4/+20
2025-02-05libbpf: Check the kflag of type tags in btf_dumpIhor Solodrai1-1/+4
2025-02-05libbpf: Introduce kflag for type_tags and decl_tags in BTFIhor Solodrai3-23/+68
2025-02-03libbpf: Fix accessing BTF.ext core_relo headerTony Ambardar1-2/+2
2025-01-24Merge tag 'perf-tools-for-v6.14-2025-01-21' of git://git.kernel.org/pub/scm/l...Linus Torvalds7-103/+48
2025-01-17libbpf: Work around kernel inconsistently stripping '.llvm.' suffixAndrii Nakryiko1-1/+25
2025-01-16libbpf: Fix incorrect traversal end type ID when marking BTF_IS_EMBEDDEDPu Lehui1-1/+1
2025-01-16libbpf: Fix return zero when elf_begin failedPu Lehui1-0/+1
2025-01-10libbpf: Add unique_match option for multi kprobeYonghong Song2-2/+15
2024-12-30libbpf: Set MFD_NOEXEC_SEAL when creating memfdDaniel Xu1-1/+13
2024-12-16Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpfAlexei Starovoitov1-2/+16
2024-12-13libbpf: prog load: Allow to use fd_array_cntAnton Protopopov2-2/+6
2024-12-13Merge remote-tracking branch 'torvalds/master' into perf-tools-nextArnaldo Carvalho de Melo1-2/+16
2024-12-12libbpf: Extend linker API to support in-memory ELF filesAlastair Robertson3-21/+150
2024-12-12libbpf: Pull file-opening logic up to top-level functionsAlastair Robertson1-42/+42
2024-12-11libperf: evlist: Fix --cpu argument on hybrid platformJames Clark1-2/+16
2024-12-09tool api fs: Correctly encode errno for read/write open failuresIan Rogers1-3/+3
2024-12-09libperf cpumap: Grow array of read CPUs in smaller incrementsIan Rogers1-4/+5
2024-12-09libperf cpumap: Remove perf_cpu_map__read()Ian Rogers4-60/+0
2024-12-09libperf cpumap: Remove use of perf_cpu_map__read()Ian Rogers1-5/+6
2024-12-09libperf cpumap: Be tolerant of newline at the end of a cpumaskIan Rogers1-2/+2
2024-12-09libperf cpumap: Hide/reduce scope of MAX_NR_CPUSIan Rogers2-4/+2
2024-12-09perf: Increase MAX_NR_CPUS to 4096Kyle Meyer1-1/+1
2024-12-09libperf cpumap: Refactor perf_cpu_map__merge()Leo Yan3-25/+30
2024-12-05libbpf: Fix segfault due to libelf functions not setting errnoQuentin Monnet1-14/+8
2024-12-02libbpf: Improve debug message when the base BTF cannot be foundBen Olson1-1/+1
2024-12-02libbpf: don't adjust USDT semaphore address if .stapsdt.base addr is missingAndrii Nakryiko1-1/+1
2024-11-26Merge tag 'perf-tools-for-v6.13-2024-11-24' of git://git.kernel.org/pub/scm/l...Linus Torvalds6-4/+145
2024-11-25Merge tag 'mm-nonmm-stable-2024-11-24-02-05' of git://git.kernel.org/pub/scm/...Linus Torvalds1-2/+0
2024-11-21Merge tag 'bpf-next-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/bp...Linus Torvalds26-476/+917
2024-11-16libbpf: Change hash_combine parameters from long to unsigned longSidong Yang1-1/+1
2024-11-15libbpf: Fix memory leak in bpf_program__attach_uprobe_multiJiri Olsa1-6/+5
2024-11-13Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpfAlexei Starovoitov2-1/+5
2024-11-13libsubcmd: Move va_end() before exitLuo Yifan1-1/+1
2024-11-11libbpf: Stringify errno in log messages in the remaining codeMykyta Yatsenko6-53/+56
2024-11-11libbpf: Stringify errno in log messages in btf*.cMykyta Yatsenko2-13/+16
2024-11-11libbpf: Stringify errno in log messages in libbpf.cMykyta Yatsenko1-200/+156
2024-11-11libbpf: Introduce errstr() for stringifying errnoMykyta Yatsenko2-0/+78
2024-11-11libbpf: Add support for uprobe multi session attachJiri Olsa3-3/+20
2024-11-11bpf: Add support for uprobe multi session attachJiri Olsa1-0/+1
2024-11-11Merge back thermal control material for 6.13Rafael J. Wysocki5-26/+279
2024-11-08tools api io: Ensure line_len_out is always initializedIan Rogers1-0/+1
2024-11-05tools/lib/list_sort: remove unnecessary header includesKuan-Wei Chiu1-2/+0
2024-11-04tools/lib/thermal: Remove the thermal.h soft link when doing make cleanzhang jiao1-1/+3
2024-11-04tools/lib/thermal: Fix sampling handler context ptrEmil Dahl Juhl1-0/+2
2024-10-29libbpf: start v1.6 development cycleAndrii Nakryiko2-1/+4
2024-10-28tools subcmd: Add non-waitpid check_if_command_finished()Ian Rogers1-0/+33
2024-10-24libbpf: define __uptr.Kui-Feng Lee1-0/+1
2024-10-24thermal/lib: Fix memory leak on error in thermal_genl_auto()Daniel Lezcano1-4/+7
2024-10-24tools/lib/thermal: Add the threshold netlink ABIDaniel Lezcano5-14/+241
2024-10-24tools/lib/thermal: Make more generic the command encoding functionDaniel Lezcano1-9/+32
2024-10-23libbpf: move global data mmap()'ing into bpf_object__load()Andrii Nakryiko1-43/+40
2024-10-23libsubcmd: Silence compiler warningEder Zulian1-1/+1
2024-10-23libbpf: Prevent compiler warnings/errorsEder Zulian1-2/+2
2024-10-14Merge tag 'v6.12-rc3' into perf-tools-nextNamhyung Kim16-75/+145
2024-10-11libbpf: Fix possible compiler warnings in hashmapNamhyung Kim1-10/+10
2024-10-11libbpf: never interpret subprogs in .text as entry programsAndrii Nakryiko1-1/+1
2024-10-09libbpf: fix sym_is_subprog() logic for weak global subprogsAndrii Nakryiko1-1/+1
2024-10-07libbpf: Do not resolve size on duplicate FUNCsEric Long1-0/+4
2024-10-07libbpf: Add missing per-arch include pathBjörn Töpel1-1/+2
2024-10-03libbpf: Support creating light skeleton of either endiannessTony Ambardar4-53/+139
2024-10-03libbpf: Support linking bpf objects of either endiannessTony Ambardar1-16/+62
2024-10-03libbpf: Support opening bpf objects of either endiannessTony Ambardar2-9/+52
2024-10-03libbpf: Support BTF.ext loading and output in either endiannessTony Ambardar4-57/+253
2024-10-03libbpf: Fix output .symtab byte-order during linkingTony Ambardar1-0/+2
2024-10-03libbpf: Fix header comment typos for BTF.extTony Ambardar1-2/+2
2024-10-03libbpf: Improve log message formattingTony Ambardar5-8/+8
2024-10-03libbpf: Remove unneeded semicolonChen Ni1-1/+1
2024-10-03libbpf: Fix expected_attach_type set handling in program load callbackTao Chen1-4/+8
2024-10-03libbpf: Change log level of BTF loading error messageIhor Solodrai1-4/+5
2024-10-02tools/perf: Correctly calculate sample period for inherited SAMPLE_READ valuesBen Gainey2-2/+109
2024-09-26libperf: Explicitly specify install-html dependenciesAkihiko Odaki1-1/+1
2024-09-25Merge tag 'memblock-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-0/+53
2024-09-22Merge tag 'perf-tools-for-v6.12-1-2024-09-19' of git://git.kernel.org/pub/scm...Linus Torvalds9-21/+35
2024-09-12libbpf: Add bpf_object__token_fd accessorIhor Solodrai3-0/+14
2024-09-11tools: Drop nonsensical -O6Sam James3-11/+1
2024-09-10libbpf: Fix uretprobe.multi.s programs auto attachmentJiri Olsa1-1/+1
2024-09-09libbpf: Fix some typos in commentsYusheng Zheng8-13/+13
2024-09-09libbpf: Fixed getting wrong return address on arm64 architectureShuyi Cheng1-1/+1
2024-09-06libbpf: Workaround (another) -Wmaybe-uninitialized false positiveSam James1-2/+2
2024-09-05libbpf: fix some typos in libbpfLin Yikai6-9/+9
2024-09-04libbpf: Fix accessing first syscall argument on RV64Pu Lehui1-1/+8
2024-09-04libbpf: Access first syscall argument with CO-RE direct read on arm64Pu Lehui1-2/+2
2024-09-04libbpf: Access first syscall argument with CO-RE direct read on s390Pu Lehui1-2/+2
2024-09-04libsubcmd: Don't free the usage stringAditya Gupta1-5/+3
2024-08-30libbpf: Ensure new BTF objects inherit input endiannessTony Ambardar1-0/+4
2024-08-29libbpf: Fix bpf_object__open_skeleton()'s mishandling of optionsAndrii Nakryiko1-33/+19
2024-08-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpfAlexei Starovoitov1-0/+20
2024-08-15libbpf: Workaround -Wmaybe-uninitialized false positiveSam James1-0/+3
2024-08-12libbpf: Fix license for btf_relocate.cAlan Maguire1-1/+1
2024-08-06memblock test: fix implicit declaration of function 'memparse'Wei Yang1-0/+53
2024-08-05tools build: Correct bpf fixdep dependenciesBrian Norris2-3/+11
2024-08-05tools build: Correct libsubcmd fixdep dependenciesBrian Norris1-1/+1
2024-08-01perf list: Give clues if failed to open tracing events directoryTiezhu Yang1-1/+1
2024-08-01libperf: Add gitignoreCharlie Jenkins1-0/+5
2024-07-31perf annotate: Add disasm_line__parse() to parse raw instruction for powerpcAthira Rajeev1-0/+13
2024-07-29libbpf: Don't take direct pointers into BTF data from st_opsDavid Vernet1-10/+13
2024-07-26Merge tag 'bitmap-6.11-rc1' of https://github.com:/norov/linuxLinus Torvalds1-0/+20
2024-07-25Merge tag 'net-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-3/+5
2024-07-25Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-3/+5
2024-07-21Merge tag 'mm-nonmm-stable-2024-07-21-15-07' of git://git.kernel.org/pub/scm/...Linus Torvalds1-10/+0
2024-07-18Merge tag 'perf-tools-for-v6.11-2024-07-16' of git://git.kernel.org/pub/scm/l...Linus Torvalds2-31/+44
2024-07-17libbpf: Fix no-args func prototype BTF dumping syntaxAndrii Nakryiko1-3/+5
2024-07-10radix tree test suite: put definition of bitmap_clear() into lib/bitmap.cWei Yang1-0/+20
2024-07-09libbpf: improve old BPF skeleton handling for map auto-attachAndrii Nakryiko1-12/+14
2024-07-09libbpf: fix BPF skeleton forward/backward compat handlingAndrii Nakryiko1-20/+27
2024-07-08libbpf: Add NULL checks to bpf_object__{prev_map,next_map}Andreas Ziegler1-2/+2
2024-07-02Merge remote-tracking branch 'perf-tools' into perf-tools-nextNamhyung Kim1-1/+31
2024-07-01libbpf: Fix error handling in btf__distill_base()Alan Maguire1-1/+1
2024-06-26libbpf: Fix clang compilation error in btf_relocate.cAlan Maguire1-2/+2
2024-06-24tools/lib/list_sort: remove redundant code for cond_resched handlingKuan-Wei Chiu1-10/+0
2024-06-24libbpf: Skip base btf sanity checksAntoine Tenart1-1/+1
2024-06-21libbpf,bpf: Share BTF relocate-related code with kernelAlan Maguire2-0/+31
2024-06-21libbpf: Split field iter code into its own file kernelAlan Maguire3-163/+170
2024-06-21libbpf: BTF relocation followup fixing naming, loop logicAlan Maguire1-41/+31
2024-06-21libbpf: Checking the btf_type kind when fixing variable offsetsDonglin Peng1-2/+9
2024-06-17libbpf: Make btf_parse_elf process .BTF.base transparentlyEduard Zingerman2-54/+111
2024-06-17libbpf: Split BTF relocationAlan Maguire6-1/+542
2024-06-17libbpf: Add btf__distill_base() creating split BTF with distilled base BTFAlan Maguire3-6/+335
2024-06-13perf record: Ensure space for lost samplesIan Rogers1-0/+6
2024-06-10Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski6-168/+368
2024-06-06libbpf: Auto-attach struct_ops BPF maps in BPF skeletonMykyta Yatsenko3-3/+81
2024-06-05libbpf: Remove callback-based type/string BTF field visitor helpersAndrii Nakryiko2-132/+0
2024-06-05libbpf: Make use of BTF field iterator in BTF handling codeAndrii Nakryiko1-22/+54
2024-06-05libbpf: Make use of BTF field iterator in BPF linker codeAndrii Nakryiko3-26/+40
2024-06-05libbpf: Add BTF field iteratorAndrii Nakryiko2-0/+186
2024-05-31libbpf: keep FD_CLOEXEC flag when dup()'ing FDAndrii Nakryiko1-7/+3
2024-05-31libbpf: don't close(-1) in multi-uprobe feature detectorAndrii Nakryiko1-1/+2
2024-05-30tools api io: Move filling the io buffer to its own functionIan Rogers1-31/+38
2024-05-28libbpf: Configure log verbosity with env variableMykyta Yatsenko2-2/+28
2024-05-27Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-1/+30
2024-05-25libbpf: detect broken PID filtering logic for multi-uprobeAndrii Nakryiko1-1/+30
2024-05-21Merge tag 'perf-tools-for-v6.10-1-2024-05-21' of git://git.kernel.org/pub/scm...Linus Torvalds7-41/+131
2024-05-19Merge tag 'mm-nonmm-stable-2024-05-19-11-56' of git://git.kernel.org/pub/scm/...Linus Torvalds1-1/+1
2024-05-15libbpf: fix feature detectors when using token_fdAndrii Nakryiko2-2/+2
2024-05-12tools lib subcmd: Show parent options in helpNamhyung Kim1-12/+24
2024-05-10libsubcmd: Fix parse-options memory leakIan Rogers1-3/+5
2024-05-08bpf: Avoid uninitialized value in BPF_CORE_READ_BITFIELDJose E. Marchesi1-0/+1
2024-05-08tools lib rbtree: pick some improvements from the kernel rbtree codeArnaldo Carvalho de Melo1-1/+1
2024-05-07libbpf: improve early detection of doomed-to-fail BPF program loadingAndrii Nakryiko1-1/+14
2024-05-07libbpf: fix libbpf_strerror_r() handling unknown errorsAndrii Nakryiko1-2/+14
2024-05-07libbpf: handle yet another corner case of nulling out struct_ops programAndrii Nakryiko1-1/+9
2024-05-07libbpf: remove unnecessary struct_ops prog validity checkAndrii Nakryiko1-10/+3
2024-05-02libbpf: Avoid casts from pointers to enums in bpf_tracing.hJose E. Marchesi2-47/+47
2024-05-02libbpf: Fix bpf_ksym_exists() in GCCJose E. Marchesi1-3/+14
2024-05-02libbpf: fix ring_buffer__consume_n() return result logicAndrii Nakryiko1-1/+1
2024-05-02libbpf: fix potential overflow in ring__consume_n()Andrii Nakryiko1-1/+1
2024-05-02libbpf: Fix error message in attach_kprobe_multiJiri Olsa1-1/+1
2024-05-02libbpf: Fix error message in attach_kprobe_sessionJiri Olsa1-1/+1
2024-05-01libbpf: better fix for handling nulled-out struct_ops programAndrii Nakryiko1-11/+26
2024-05-01libbpf: support "module: Function" syntax for tracing programsViktor Malik1-9/+26
2024-04-30libbpf: Add kprobe session attach type name to attach_type_nameJiri Olsa1-0/+1
2024-04-30libbpf: Add support for kprobe session attachJiri Olsa3-3/+41