summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-kernel/minicoredumper/files
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2023-02-18 18:25:43 +0800
committerKhem Raj <raj.khem@gmail.com>2023-02-18 13:19:36 -0800
commitc840260ff408dc6229cb89a906bca8f8d265c5d2 (patch)
tree37c3c5c83002e1966c9b6b89f257966aff990ebd /meta-oe/recipes-kernel/minicoredumper/files
parentc257c5c3437cfe935d1322f40fe53f4a281014c4 (diff)
downloadmeta-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>
Diffstat (limited to 'meta-oe/recipes-kernel/minicoredumper/files')
-rw-r--r--meta-oe/recipes-kernel/minicoredumper/files/0001-minicoredumper_demo-Use-optnone-attribute-with-clang.patch37
1 files changed, 0 insertions, 37 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 @@
1From abaac31d1cb4d0ba0e8e9ef7f344e62de3b150de Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 4 Feb 2023 16:50:46 -0800
4Subject: [PATCH] minicoredumper_demo: Use 'optnone' attribute with clang
5
6clang does not support optimize("On") yet, therefore use optnone which
7should give intended results with clang compiler
8
9Upstream-Status: Submitted [https://github.com/diamon/minicoredumper/pull/7]
10Signed-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
15diff --git a/src/minicoredumper_demo/main.c b/src/minicoredumper_demo/main.c
16index 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--
362.39.1
37