217 Commits

Author SHA1 Message Date
Khem Raj
e3d1e62e2b oprofile: Fix failing ptests
Files need to be in right directory structure

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 51b38953a6e7f2769b5f4ac021f55299f3c68b99)
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
2025-10-20 08:53:23 +02:00
Gyorgy Sarvari
6d17a28ac2 kernel-selftest: fix ptest
The run-ptest script was trying to call test_align executable, which
doesn't exist (anymore?).

Instead align more to master branch, and execute the selftests themselves.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
2025-10-20 08:53:04 +02:00
Mingli Yu
ff6fc4270d minicoredumper: correct the sysvinit service file attribute
Add the execute attribute for sysvinit service file to fix the
below error:
  $ service minicoredumper status
  minicoredumper: unrecognized service

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit d477cbb5267f39846d129f27d0f6a7f2b001db7b)
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
2025-10-01 19:40:58 +02:00
akash hadke
198cf66134 meta-oe: Remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.

Signed-off-by: Akash Hadke <akash.hadke27@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2025-01-22 19:12:54 -05:00
Xiangyu Chen
5f120a926b libbpf: installing uapi headers for native package
using libbpf-native provided headers for pahole-native or other application.

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-05-23 23:12:51 -04:00
Gianluigi Spagnuolo
d7131db314 libbpf: add native and nativesdk BBCLASSEXTEND
To build pahole-native we need libbpf-native

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(backport from commit a28b7fdbf4bf973112530219d63f7559060ec8c7)
Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-05-06 07:43:11 -04:00
Chase Qi
d03e8eecce kernel-selftest: install kselftest runner
Install kselftest runner and the required kselftest-list.txt.

Signed-off-by: Chase Qi <chase.qi@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit fd330c4514ae5acefa5e472e6775419066d60385)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2022-11-01 08:58:25 -04:00
Sakib Sajal
bd2d8fba76 minicoredumper: retry elf parsing as long as needed
Maximum number of tries, in rare cases, is insufficient for
elf parse. Backport patch that fixes the issue.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit e231c86e282eefff0e8164551f75f8e01682abe6)
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
2022-09-25 11:03:26 -04:00
Khem Raj
35b74d369a makedumpfile: Use right TARGET for ppc32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit f994a19220ab42d3d8002adc89a04b3904020feb)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2022-05-17 05:57:10 -07:00
Mingli Yu
9b7cbd177e makedumpfile: Upgrade to 1.7.1
Remove related man pages gz logic as it's removed in new version [1].

[1] 2169de66ec

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit f2748082e84b70c0a73d7d494b0f02338fedded1)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2022-05-03 06:49:08 -07:00
Khem Raj
2acf451b1b crash: Fix build for mips target
The patch to remove these options is removed therefore instrument them
via sed operations

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Mingli Yu <mingli.yu@windriver.com>
(cherry picked from commit 224d8a8cbeef0c5ccdf03e9f6660203af7abead6)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2022-05-03 06:49:07 -07:00
Mingli Yu
2cd60a5003 crash: Upgrade to 8.0.0
The bundled gdb upgraded to 10.2 [1] and remove related patches
against the previous gdb 7.6.

[1] ec568e2ea5

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit c7ce2371c021d713f5328a0a50b23a21f2e4792b)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2022-05-03 06:49:07 -07:00
Khem Raj
bb71d97301 libpfm4: Remove -Werror from compiler flags
Newer versions of compilers get stricter and add new diagnostics which
cause build failures that upstream should address not distros

Fixes
| In function 'perf_table_alloc_umask',
|     inlined from 'gen_tracepoint_table' at pfmlib_perf_event_pmu.c:434:10:
| pfmlib_perf_event_pmu.c:304:47: error: pointer may be used after 'realloc' [-Werror=use-after-free]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-13 19:21:41 -07:00
wangmy
568d2f6dfc libbpf: upgrade 0.5.0 -> 0.7.0
Changelog:
https://github.com/libbpf/libbpf/releases/tag/v0.7.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-12 09:28:25 -07:00
wangmy
01104d4ef1 broadcom-bt-firmware: upgrade 12.0.1.1105_p2 -> 12.0.1.1105_p3
Changelog:
==========
Fixed #26 (unable to install RPM pacakge), updated documentation.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-11 08:52:55 -07:00
Khem Raj
e3e020c1a3 libbpf: Enable on ppc64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-21 08:25:11 -07:00
Khem Raj
745a79ce54 libbpf: Enable builds for riscv64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-05 23:14:47 -08:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Claus Stovgaard
6a271fd428 Added usbip-tools for kernel USB/IP
Userspace tool from the kernel. Used for control the client/server of
USB/IP. The server expect USB devices and the client import them on the
client machine. Making it look like a device is physical connected to
the client, even though it is physical connected to the server.

Signed-off-by: Claus Stovgaard <clst@ambu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-21 18:49:37 -08:00
William A. Kennington III
f5c6c4bf9a ipmitool: Split ipmievd into a separate package
We generally want to use ipmitool without the event daemon. Generally
this utility is less commonly used and takes up space in our images.

Signed-off-by: William A. Kennington III <wak@google.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-21 18:49:37 -08:00
Fathi Boudra
2fdb6eb87e makedumpfile: upgrade from 1.6.9 to 1.7.0
* Drop 0002-mem_section-Support-only-46-bit-for-MAX_PHYSMEM_BITS.patch
  This patch has been introduced in January 2017 for makedumpfile 1.6.1.
  It has never reached upstream, hence the pending status is
  inappropriate. Since that time, the upstream code to retrieve
  MAX_PHYSMEM_BITS has been updated to use vmcoreinfo, with a backward
  compatibility for older kernels.
* Remove the deprecated comment about arm/aarch64 would compile but has never
  been tested upstream, introduced in July 2016. Nowadays, it works just fine
  on those architectures.
* Add PACKAGECONFIG option for zstd compression
  Since 1.7.0 release, Zstandard (zstd) compression support has been added.
  With zstd, the vmcore size and time consumption can have a better balance
  than zlib/lzo/snappy.
  http://lists.infradead.org/pipermail/kexec/2021-September/023011.html

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-18 11:07:10 -08:00
Richard Purdie
b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Oleksandr Kravchuk
ec41b54b29 libbpf: fix PV
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-10-16 09:50:38 -07:00
Matteo Croce
1664cb6c8f libbpf: bump to 0.5.0
Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-14 19:14:42 -07:00
zangrc
c833f02489 crash: upgrade 7.2.9 -> 7.3.0
Refresh the following patch:
donnot-extract-gdb-during-do-compile.patch
remove-unrecognized-gcc-option-m32-for-mips.patch

0001-printk-add-support-for-lockless-ringbuffer.patch
0002-printk-use-committed-finalized-state-values.patch
Removed since these are included in 7.3.0.

Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-09 09:34:13 -07:00
Peter Morrow
4c21b66338 libbpf: remove kernel configuration dependency
This dependency introduces a cycle with pahole:

```
kernel --> pahole --> libbpf
  ^                      /
   \                    /
    `------------------<
```

pahole is a build time dependency of the kernel which is required to
generate BTF symbols. The dependency on the kernel configuration is nice
to have but makes using pahole during kernel compile time impossible.

Furthermore this dependency doesn't make sense when building libbpf
purely to ship it via a SDK.

Signed-off-by: Peter Morrow <pemorrow@linux.microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-07 10:03:49 -07:00
Peter Morrow
2fcda37554 libbpf: remove stale comment
The license typo (LPGL --> LGPL) was fixed in libbpf 0.4.

Signed-off-by: Peter Morrow <pemorrow@linux.microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-31 09:05:43 -07:00
Matteo Croce
8d62db7265 libbpf: bump to 0.4.0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-26 11:57:26 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Khem Raj
c5f7cfb8db libhugetlbfs: Disable build with glibc 2.34+
It uses __morecore internal function from glibc which has been removed
in 2.34+ and replacing it is not so simple and upstream needs to fix it
see [1]

[1] https://github.com/libhugetlbfs/libhugetlbfs/issues/52

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-03 10:21:25 -07:00
Olivier Georget
d02bd48673 libpfm4 4.10.1 : enable arm64 host platform
libpfm4 is only enabled for powerpc arch as of now.
This enables the lib on Arm 64bit platform as well.

Signed-off-by: Olivier Georget <olivier.georget@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-25 08:37:42 -07:00
Daniel Klauer
6892201821 spidev-test: Update common-licenses reference
The license files were renamed in oe-core to match the SPDX names.

Most recipes here were already updated in commit ed54f12e19
("recipes: Update common-licenses references to match new names"),
but spidev-test was still missing.

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:39:32 -07:00
Khem Raj
b649d4cde4 libpfm4: Upgrade to 4.11.0
Add a patch to fix compiler error with latest clang compiler

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:33:07 -07:00
LiweiSong
8edab5f09d pm-graph: parse separated cpu exec line
if cpu exec line was split into different line, there will be an error
when parse it:

  File "/usr/bin/sleepgraph", line 3165, in parseTraceLog
    proclist[name] = int(val[1])
IndexError: list index out of range

check this case and append to parse the unfinished line.

Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-28 06:55:33 -07:00
zangrc
2c4ee27216 makedumpfile: upgrade 1.6.8 -> 1.6.9
Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-19 18:39:35 -07:00
wangmy
d8402fdd6f trace-cmd: Conflict resolution
perf(oe-core) also uses the doc included in plugins/, so package it in own subdirs of trace-cmd.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-19 18:39:35 -07:00
Khem Raj
af43242a22 minicoredumper: Replace pthread_mutexattr_setrobust_np with pthread_mutexattr_setrobust
Remove unused patch 0001-minicoredumper-Initialize-pointer-to-config-struct-t.patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 08:27:27 -07:00
Bruce Mitchell
5f3f162145 makedumpfile: Bump srcrev
supports for kernel 5.10, prior to 1.6.9 release

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-06 20:56:59 -07:00
INC@Cisco)
120de5e02a bpftool: improve reproducibility
Pass -f(debug|macro)-prefix-map through CC because libbpf
build system overrides CFLAGS. Also remap STAGING_KERNEL_DIR
because it is also stored in resulting executable

Signed-off-by: Denys Zagorui <dzagorui@cisco.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-30 09:15:52 -07:00
INC@Cisco)
2179569945 bpftool: remove recipe from blacklist
Have not seen build issues for 5.4 and 5.10
x86-64 kernels so allow to build it

Signed-off-by: Denys Zagorui <dzagorui@cisco.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-28 12:12:58 -07:00
Khem Raj
04e2f6b543 oprofile: Upgrade to 1.4.0 release
Drop upstreamed patches
Backport musl fix and deterministic build patches from master

Release notes - https://oprofile.sourceforge.io/release-notes/oprofile-1.4.0

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-18 11:26:33 -07:00
Khem Raj
0587a7c65a oprofile: Fix build on musl
MAX_INPUT is defined in linux/limits.h, therefore include it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-13 00:56:14 -08:00
Khem Raj
9480e9681b libbpf: Depend on virtual/kernel:do_shared_workdir
its checking for .config values which means we need to stage kernel
sources before executing do_compile

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Matteo Croce <mcroce@microsoft.com>
2021-03-11 15:00:07 -08:00
Matteo Croce
ac05388b62 libbpf: use pkg-config
The libbpf makefile uses pkg-config to get the libelf build flags and
file paths.
Inherit pkgconfig so the install target can copy the binaries in the
sysroot, which are needed by other packages, like bcc.

Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-11 00:12:55 -08:00
Matteo Croce
e80d14dc55 recipes-kernel: add libbpf
Add a recipe to build libbpf from https://github.com/libbpf/libbpf
The only patch fixes a build issue, and it's already merged upstream.

Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-27 07:21:29 -08:00
Mingli Yu
1f1f01cf09 crash: add support for lockless ringbuffer
Backport 2 patches to add support for lockless ringbuffer to fix
below issue:
crash: cannot determine length of symbol: log_end

Reference: https://github.com/crash-utility/crash/issues/74

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-20 10:40:53 -08:00
Khem Raj
9ed4bea30b kernel-selftest: Disable building bpf
with 5.10 it builds bpf-bootstrap tool and then tries to run it as well
which wont work in cross builds. Disable it until it can be make cross
compile friendly.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-08 22:48:21 -08:00
zhengruoqin
89eb9a1dde crash: upgrade 7.2.8 -> 7.2.9
crash/0001-Fix-for-an-ARM64-gcc-10-compilation-error.-Without-t.patch
Removed since this is included in 7.2.9

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-30 22:42:20 -08:00
Beniamin Sandu
45b9864e13 trace-cmd: create recipe for version 2.9.1
Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-30 11:40:31 -08:00
Alexander Kamensky
1a505b094d makedumpfile: upgrade 1.6.7 -> 1.6.8
* Starting with 1.6.8 makedumpfile project migrated from sourceforge to github;
properly updated SRC_URI, HOMEPAGE, UPSTREAM_CHECK_XX

* Refreshed patch 0001-makedumpfile-replace-hardcode-CFLAGS.patch

* Refreshed patch 0002-mem_section-Support-only-46-bit-for-MAX_PHYSMEM_BITS.patch;
had conflict in patch removed function, is this patch still required?

* Removed 0001-PATCH-Remove-duplicated-variable-definitions.patch backported
patch

* Added dependency to xz required by new version

Signed-off-by: Alexander Kamensky <alexander.kamensky42@gmail.com>
2020-11-23 07:09:33 -08:00