diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2023-02-18 18:25:43 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-02-18 13:19:36 -0800 |
| commit | c840260ff408dc6229cb89a906bca8f8d265c5d2 (patch) | |
| tree | 37c3c5c83002e1966c9b6b89f257966aff990ebd | |
| parent | c257c5c3437cfe935d1322f40fe53f4a281014c4 (diff) | |
| download | meta-openembedded-c840260ff408dc6229cb89a906bca8f8d265c5d2.tar.gz | |
minicoredumper: upgrade 2.0.2 -> 2.0.3
0001-minicoredumper_demo-Use-optnone-attribute-with-clang.patch
removed since it's included in 2.0.3
Changelog:
==========
* Dump zero-blocks as 4KB blocks instead of single bytes to speed up
piping to the compressor. (Only relevant if tar is not used.)
* Drop core data exceeding the ustar 8GB limit. The core file is
appropriately truncated and the actions are logged. This fixes tar
file corruption for core files >8GB.
* Known problems:
- If tar is active, core files larger than 8GB will be
truncated. If it is known that the core files will be >8GB and
the full core file is needed, tar must be disabled.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-kernel/minicoredumper/files/0001-minicoredumper_demo-Use-optnone-attribute-with-clang.patch | 37 | ||||
| -rw-r--r-- | meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.3.bb (renamed from meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.2.bb) | 3 |
2 files changed, 1 insertions, 39 deletions
diff --git a/meta-oe/recipes-kernel/minicoredumper/files/0001-minicoredumper_demo-Use-optnone-attribute-with-clang.patch b/meta-oe/recipes-kernel/minicoredumper/files/0001-minicoredumper_demo-Use-optnone-attribute-with-clang.patch deleted file mode 100644 index 05371e5cd6..0000000000 --- a/meta-oe/recipes-kernel/minicoredumper/files/0001-minicoredumper_demo-Use-optnone-attribute-with-clang.patch +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | From abaac31d1cb4d0ba0e8e9ef7f344e62de3b150de Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sat, 4 Feb 2023 16:50:46 -0800 | ||
| 4 | Subject: [PATCH] minicoredumper_demo: Use 'optnone' attribute with clang | ||
| 5 | |||
| 6 | clang does not support optimize("On") yet, therefore use optnone which | ||
| 7 | should give intended results with clang compiler | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [https://github.com/diamon/minicoredumper/pull/7] | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | src/minicoredumper_demo/main.c | 9 +++++++-- | ||
| 13 | 1 file changed, 7 insertions(+), 2 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/src/minicoredumper_demo/main.c b/src/minicoredumper_demo/main.c | ||
| 16 | index 65aac46..e60eb82 100644 | ||
| 17 | --- a/src/minicoredumper_demo/main.c | ||
| 18 | +++ b/src/minicoredumper_demo/main.c | ||
| 19 | @@ -11,8 +11,13 @@ | ||
| 20 | #include <sys/types.h> | ||
| 21 | |||
| 22 | #include "minicoredumper.h" | ||
| 23 | - | ||
| 24 | -int __attribute__((optimize("O0"))) main(int argc, char *argv[]) | ||
| 25 | +int | ||
| 26 | +#ifdef __clang__ | ||
| 27 | +__attribute__((optnone)) | ||
| 28 | +#else | ||
| 29 | +__attribute__((optimize("O0"))) | ||
| 30 | +#endif | ||
| 31 | +main(int argc, char *argv[]) | ||
| 32 | { | ||
| 33 | char *str1 = "This is string 1."; | ||
| 34 | unsigned long val1 = 0x1abc123f; | ||
| 35 | -- | ||
| 36 | 2.39.1 | ||
| 37 | |||
diff --git a/meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.2.bb b/meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.3.bb index 5763f845a6..2c4111bc3e 100644 --- a/meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.2.bb +++ b/meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.3.bb | |||
| @@ -9,10 +9,9 @@ DEPENDS = "elfutils dbus dbus-glib-native glib-2.0 dbus-glib util-linux json-c" | |||
| 9 | 9 | ||
| 10 | inherit autotools pkgconfig ptest systemd update-rc.d | 10 | inherit autotools pkgconfig ptest systemd update-rc.d |
| 11 | 11 | ||
| 12 | SRCREV = "0bed11b3d69877ce59b1a71359349af60f2009ff" | 12 | SRCREV = "e4706bf28a0699094add5d77a4b97145c2292c47" |
| 13 | 13 | ||
| 14 | SRC_URI = "git://github.com/diamon/minicoredumper;protocol=https;branch=master \ | 14 | SRC_URI = "git://github.com/diamon/minicoredumper;protocol=https;branch=master \ |
| 15 | file://0001-minicoredumper_demo-Use-optnone-attribute-with-clang.patch \ | ||
| 16 | file://minicoredumper.service \ | 15 | file://minicoredumper.service \ |
| 17 | file://minicoredumper.init \ | 16 | file://minicoredumper.init \ |
| 18 | file://run-ptest \ | 17 | file://run-ptest \ |
