mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-30 13:00:02 +00:00
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>
This commit is contained in:
-37
@@ -1,37 +0,0 @@
|
|||||||
From abaac31d1cb4d0ba0e8e9ef7f344e62de3b150de Mon Sep 17 00:00:00 2001
|
|
||||||
From: Khem Raj <raj.khem@gmail.com>
|
|
||||||
Date: Sat, 4 Feb 2023 16:50:46 -0800
|
|
||||||
Subject: [PATCH] minicoredumper_demo: Use 'optnone' attribute with clang
|
|
||||||
|
|
||||||
clang does not support optimize("On") yet, therefore use optnone which
|
|
||||||
should give intended results with clang compiler
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://github.com/diamon/minicoredumper/pull/7]
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
---
|
|
||||||
src/minicoredumper_demo/main.c | 9 +++++++--
|
|
||||||
1 file changed, 7 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/minicoredumper_demo/main.c b/src/minicoredumper_demo/main.c
|
|
||||||
index 65aac46..e60eb82 100644
|
|
||||||
--- a/src/minicoredumper_demo/main.c
|
|
||||||
+++ b/src/minicoredumper_demo/main.c
|
|
||||||
@@ -11,8 +11,13 @@
|
|
||||||
#include <sys/types.h>
|
|
||||||
|
|
||||||
#include "minicoredumper.h"
|
|
||||||
-
|
|
||||||
-int __attribute__((optimize("O0"))) main(int argc, char *argv[])
|
|
||||||
+int
|
|
||||||
+#ifdef __clang__
|
|
||||||
+__attribute__((optnone))
|
|
||||||
+#else
|
|
||||||
+__attribute__((optimize("O0")))
|
|
||||||
+#endif
|
|
||||||
+main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
char *str1 = "This is string 1.";
|
|
||||||
unsigned long val1 = 0x1abc123f;
|
|
||||||
--
|
|
||||||
2.39.1
|
|
||||||
|
|
||||||
+1
-2
@@ -9,10 +9,9 @@ DEPENDS = "elfutils dbus dbus-glib-native glib-2.0 dbus-glib util-linux json-c"
|
|||||||
|
|
||||||
inherit autotools pkgconfig ptest systemd update-rc.d
|
inherit autotools pkgconfig ptest systemd update-rc.d
|
||||||
|
|
||||||
SRCREV = "0bed11b3d69877ce59b1a71359349af60f2009ff"
|
SRCREV = "e4706bf28a0699094add5d77a4b97145c2292c47"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/diamon/minicoredumper;protocol=https;branch=master \
|
SRC_URI = "git://github.com/diamon/minicoredumper;protocol=https;branch=master \
|
||||||
file://0001-minicoredumper_demo-Use-optnone-attribute-with-clang.patch \
|
|
||||||
file://minicoredumper.service \
|
file://minicoredumper.service \
|
||||||
file://minicoredumper.init \
|
file://minicoredumper.init \
|
||||||
file://run-ptest \
|
file://run-ptest \
|
||||||
Reference in New Issue
Block a user