Commit Graph

238 Commits

Author SHA1 Message Date
Simone Weiss 963f55df9e minicoredumper: Add ptest
Add the demo from minicoredumper - that is intended as a test for it -
as a ptest for minicoredumper.

Result example:

root@qemux86-64:~# ptest-runner minicoredumper
START: ptest-runner
2023-02-02T12:27
BEGIN: /usr/lib/minicoredumper/ptest
minicoredumper_demo
expecting Segmentation fault with core dump ...
[   21.791878] minicoredumper_[330]: segfault at 0 ip 00000000004014f2 sp
00007ffe4271f870 error 4 in minicoredumper_demo[401000+1000] likely on CPU 0
(core 0, socket 0)
[   21.793886] Code: 00 b8 00 00 00 00 e8 7d fb ff ff 83 bd 5c ff ff ff 01 75
2f 48 c7 45 e8 00 00 00 00 bf 58 21 40 00 e8 52 fb ff ff 48 8b 45 e8 <0f> b6
00 0f be c0 89 c6 bf 77 21 40 00 b8 00 00 00 00 e8 47 ff
/usr/lib/minicoredumper/ptest/run-ptest: line 6:   330 Segmentation fault
minicoredumper_demo
minicoredumper
SUCCESS
DURATION: 3
END: /usr/lib/minicoredumper/ptest
2023-02-02T12:28
STOP: ptest-runner
TOTAL: 1 FAIL: 0
root@qemux86-64:~#

Please note the Segmentation fault is intended to provoke a coredump.

Signed-off-by: Simone Weiss <simone.weiss@elektrobit.com>
Signed-off-by: Kai Tomerius <kai.tomerius@elektrobit.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-03 07:47:10 -08:00
Martin Jansa 49c1e98885 meta: remove True option to getVar calls (again)
* True is default since 2016 and most layers were already updated
  not to pass this parameter where not necessary, e.g. oe-core was
  updated couple times, first in:
  https://git.openembedded.org/openembedded-core/commit/?id=7c552996597faaee2fbee185b250c0ee30ea3b5f

  Updated with the same regexp as later oe-core update:
  https://git.openembedded.org/openembedded-core/commit/?id=9f551d588693328e4d99d33be94f26684eafcaba

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-01 09:28:47 -08:00
Martin Jansa ea63f13846 .patch: fix Signed-off-by formatting issues reported by patchreview tool from oe-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-27 17:06:52 -08:00
Martin Jansa e99f187966 .patch: fix Upstream-Status formatting issues reported by patchreview tool from oe-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-27 17:06:52 -08:00
Wang Mingyu bf10ef1aa6 libtracefs: upgrade 1.6.3 -> 1.6.4
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-17 01:05:53 -08:00
Wang Mingyu 1585947cb9 libtraceevent: upgrade 1.7.0 -> 1.7.1
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-17 01:05:53 -08:00
Khem Raj cadbdb28af ipmitool: Remove unneeded patch
This has been fixed with [1]

[1] https://github.com/ipmitool/ipmitool/commit/1724b031

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-11 10:20:40 -08:00
Lei Maohui a0b2c27a4b trace-cmd: Fix QA Issue of do_package when enable multilib:
ERROR: trace-cmd-3.1.5-r0 do_package: QA Issue: trace-cmd: Files/directories were installed but not shipped in any package:
  /usr/usr/lib64/libtracecmd.so
  /usr/usr/lib64/libtracecmd.so.1.3.0
  /usr/usr/lib64/libtracecmd.so.1

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-11 08:37:58 -08:00
Khem Raj 98703d0c8b trace-cmd: Update to upstream submitted patches
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-11 08:37:57 -08:00
Khem Raj e2116edf7b trace-cmd: Upgrade to 3.1.5
= Drop uneeded 0001-trace-cmd-make-it-build-with-musl.patch
- Update LFS64 patch with the upstream submitted one
- Add a patch to remove useless rpaths

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-06 17:37:58 -08:00
Khem Raj b713e454c1 libtraceevent: Move plugins into package of its own
From Peter Bergin <peter@berginkonsult.se>
see https://github.com/openembedded/meta-openembedded/pull/632/commits/cf672ba52f8c4d983ad9a74b67f226ac753a50f8

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-06 17:37:58 -08:00
Khem Raj bbc75d46ec trace-cmd: Build libs before building rest
There is a dependency on libs in trace-cmd binaries
so lets build libs first before building trace-cmd

Fixes errors like

trace-cmd/2.9.1-r0/git/tracecmd/trace-record.o: in function `make_instances':
| /usr/src/debug/trace-cmd/2.9.1-r0/tracecmd/trace-record.c:5037: undefined reference to `tracefs_instance_create'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-06 11:38:16 -08:00
Khem Raj 7f15e7975f trace-cmd: Pass ldflags to compiler
Fixes
File /usr/lib/traceevent/libtraceevent.so in package trace-cmd doesn't have GNU_HASH (didn't pass LDFLAGS?)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-27 09:55:19 -08:00
Khem Raj f84fd3a028 trace-cmd: Remove use of off64_t and lseek64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-24 14:30:48 -08:00
Khem Raj 78c9d3bc1d libtracefs: Add recipe
Needed by trace-cmd

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-24 14:30:48 -08:00
Khem Raj 191491f5e1 libtraceevent: Add recipe
Its needed by trace-cmd

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-24 14:30:48 -08:00
Gianluigi Spagnuolo a28b7fdbf4 libbpf: add native and nativesdk BBCLASSEXTEND
To build pahole-native we need libbpf-native

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-11-30 09:46:47 -08:00
Xiangyu Chen 6ebff843cc ipmitool: fix typo in .bb file's comments, using = instead of =?
Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-11-01 10:13:47 -07:00
Wang Mingyu 9712b6ea41 makedumpfile: upgrade 1.7.1 -> 1.7.2
Changelog:
=========
- LoongArch64 architecture support
- Support kernels up to v6.0 (x86_64)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-24 09:56:33 -07:00
Wang Mingyu 0afaceb22a broadcom-bt-firmware: upgrade
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-18 08:23:44 -07:00
Gianluigi Spagnuolo b53a59f326 bpftool: add aarch64 to COMPATIBLE_HOST 2022-09-29 08:14:17 -07:00
wangmy eac0f028bd libpfm4: upgrade 4.11.0 -> 4.12.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-20 18:55:26 -07:00
Khem Raj b0d2977fb1 ipmitool: Update to 1.8.19
Remove backported patches
Add a patch to fix build with clang
Add a patch to stop downloading IANA registry during configure

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-05 22:49:35 -07:00
Khem Raj d8e4451e47 ipmiutil: Add missing headers for protypes of free/malloc/atoi
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-05 22:49:35 -07:00
Khem Raj c49b8b8778 oprofile: Fix configure check for perf_events support
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-05 22:49:35 -07:00
Sakib Sajal e231c86e28 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>
2022-06-30 07:01:38 -04:00
Wang Mingyu e73f940f9c libbpf: upgrade 0.7.0 -> 0.8.0
Changelog:
https://github.com/libbpf/libbpf/releases/tag/v0.8.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-24 08:39:45 -07:00
Randy MacLeod 66e6353c57 intel-speed-select: Add libnl dependency and extend CFLAGS
Add libnl dependency and extend CFLAGS to include the libnl3 directory.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Aryaman Gupta <aryaman.gupta@windriver.com>
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Aryaman Gupta <aryaman.gupta@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-09 18:45:07 -07:00
Chase Qi fd330c4514 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>
2022-05-07 18:47:16 -07:00
Khem Raj f994a19220 makedumpfile: Use right TARGET for ppc32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-01 07:59:42 -07:00
Mingli Yu f2748082e8 makedumpfile: Upgrade to 1.7.1
Remove related man pages gz logic as it's removed in new version [1].

[1] https://github.com/makedumpfile/makedumpfile/commit/2169de66ecd4504a3e69e0be0330f492f966ce5e

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-25 11:46:44 -07:00
Khem Raj 224d8a8cbe 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>
2022-04-22 17:58:09 -07:00
Mingli Yu c7ce2371c0 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] https://github.com/crash-utility/crash/commit/ec568e2ea515b66343d3488d5d4b9a625d55b7ae

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-22 17:58:09 -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