summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
Commit message (Collapse)AuthorAgeFilesLines
* bpftrace: Fix llvm-objcopy issue and backport libbpf patches for ↵Soumya Sambu2025-03-268-1/+837
| | | | | | | | | | | | | | | | | | | | | | kirkstone-clang18 Fix bpftrace do_configure failure for kirkstone-clang18: | CMake Error at tests/data/CMakeLists.txt:6 (find_program): | Could not find LLVM_OBJCOPY using the following names: llvm-objcopy, | llvm-objcopy-18, llvm18-objcopy This error occurs because bpftrace searches for llvm-objcopy-${LLVM_VERSION_MAJOR}, expecting llvm version 18.x, while llvm-native from oe-core provides v13.0.1. Since clang-native provides v18.1.6, switching to it resolves the issue. While fixing this, additional libbpf compatibility issues were identified during bpftrace compilation, requiring backporting of multiple patches to resolve: • Undefined BTF_KIND_ENUM64, replaced with BTF_KIND_ENUM. • Missing kprobe_multi in bpf_link_create_opts. • Undefined BPF_TRACE_KPROBE_MULTI. • Undefined reference to btf_is_enum64 in libbpf.so and other related libbpf errors Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
* libbpf: Backport bpf_btf_get_info_by_fdSoumya Sambu2025-03-262-0/+98
| | | | | | | | | | | | | | | | bcc v0.29.1 depends on bpf_btf_get_info_by_fd, which was introduced in libbpf v1.2.0. Since meta-oe kirkstone provides libbpf v0.7.0, this function was missing, resulting in a linker error in the bcc build: undefined reference to `bpf_btf_get_info_by_fd` This patch backports the necessary commit from libbpf v1.2.0 to v0.7.0, allowing bcc v0.29.1 to build successfully. Upstream patch: https://github.com/libbpf/libbpf/commit/30f6bc3c0a296638e3b6930dbcff6f1547f13997 Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
* perf: Use nongnu libunwind alwaysKhem Raj2019-09-281-1/+0
| | | | | | llvm is not tested yet with this package Signed-off-by: Khem Raj <raj.khem@gmail.com>
* perf: Do not use clang override to add clang-cross depKhem Raj2019-05-101-1/+1
| | | | | | | | | perf uses gcc as default compiler to toolchain-clang will not be set hence this dependency wont be added, so we assume that when meta-clang is used then you want to use clang as cross compiler and hence its added as dependency in addition to gcc cross compiler Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer.conf: Use dynamic layer featureKhem Raj2018-12-271-1/+0
| | | | | | | | | | | | This feature lets bbappend to be applied only when a given layer is present in layermix move kernel-selftest.bbappend to dynamic-layers/openembedded-layer where it belongs Fix Issue #78 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* perf: Do not pin toolchain to gccKhem Raj2018-12-091-1/+1
| | | | | | Correct the dependency for clang-cross Signed-off-by: Khem Raj <raj.khem@gmail.com>
* kernel-selftest: Add dependency on clang nativeKhem Raj2018-09-121-0/+1
| | | | | | kernel 4.18+ we need clang to build bpf tests Signed-off-by: Khem Raj <raj.khem@gmail.com>
* perf.bbappend: Add clang-cross dep only when using clang as default compilerKhem Raj2018-09-091-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* perf,mdadm: Fix build with clangKhem Raj2017-02-111-0/+1
When clang is used to compile python then it needs to be there for building python extentions of perf Signed-off-by: Khem Raj <raj.khem@gmail.com>