From: Roland Hieber <rhi@pengutronix.de>
To: PTXdist Mailing List <ptxdist@pengutronix.de>
Cc: Jan Luebbe <jlu@pengutronix.de>, Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH v1 03/11] minicoredumper: enable and configure minicoredumper
Date: Tue, 28 May 2019 13:57:48 +0200 [thread overview]
Message-ID: <20190528115756.2279-3-rhi@pengutronix.de> (raw)
In-Reply-To: <20190528115756.2279-1-rhi@pengutronix.de>
From: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
.../etc/minicoredumper/generic.recept.json | 25 +++++++++++++++++++
.../minicoredumper/minicoredumper.cfg.json | 8 ++++++
.../usr/lib/sysctl.d/50-minicoredumper.conf | 1 +
rules/minicoredumper.make | 3 +++
4 files changed, 37 insertions(+)
create mode 100644 projectroot/etc/minicoredumper/generic.recept.json
create mode 100644 projectroot/etc/minicoredumper/minicoredumper.cfg.json
create mode 100644 projectroot/usr/lib/sysctl.d/50-minicoredumper.conf
diff --git a/projectroot/etc/minicoredumper/generic.recept.json b/projectroot/etc/minicoredumper/generic.recept.json
new file mode 100644
index 000000000000..59dc8cd5b844
--- /dev/null
+++ b/projectroot/etc/minicoredumper/generic.recept.json
@@ -0,0 +1,25 @@
+{
+ "stacks": {
+ "dump_stacks": true,
+ "first_thread_only": false,
+ "max_stack_size": 0
+ },
+ "maps": {
+ "dump_by_name": [
+ "[vdso]"
+ ]
+ },
+ "compression": {
+ "compressor": "gzip",
+ "extension": "gz",
+ "in_tar": true
+ },
+ "dump_auxv_so_list": true,
+ "dump_pthread_list": true,
+ "dump_robust_mutex_list": true,
+ "dump_scope": 1024,
+ "live_dumper": true,
+ "write_proc_info": true,
+ "write_debug_log": true,
+ "dump_fat_core": false
+}
diff --git a/projectroot/etc/minicoredumper/minicoredumper.cfg.json b/projectroot/etc/minicoredumper/minicoredumper.cfg.json
new file mode 100644
index 000000000000..58753fcad4f9
--- /dev/null
+++ b/projectroot/etc/minicoredumper/minicoredumper.cfg.json
@@ -0,0 +1,8 @@
+{
+ "base_dir": "/var/crash/minicoredumper",
+ "watch": [
+ {
+ "recept": "generic.recept.json"
+ }
+ ]
+}
diff --git a/projectroot/usr/lib/sysctl.d/50-minicoredumper.conf b/projectroot/usr/lib/sysctl.d/50-minicoredumper.conf
new file mode 100644
index 000000000000..68c2d7ea7f7f
--- /dev/null
+++ b/projectroot/usr/lib/sysctl.d/50-minicoredumper.conf
@@ -0,0 +1 @@
+kernel.core_pattern=||/usr/sbin/minicoredumper %P %u %g %s %t %h %e
diff --git a/rules/minicoredumper.make b/rules/minicoredumper.make
index 1a4dddae1819..d9e45fe5ab0c 100644
--- a/rules/minicoredumper.make
+++ b/rules/minicoredumper.make
@@ -61,6 +61,9 @@ $(STATEDIR)/minicoredumper.targetinstall:
@$(call install_copy, minicoredumper, 0, 0, 0755, /var/crash/minicoredumper)
+ @$(call install_alternative, minicoredumper, 0, 0, 0644, \
+ /usr/lib/sysctl.d/50-minicoredumper.conf)
+
@$(call install_finish, minicoredumper)
@$(call touch)
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2019-05-28 11:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 02/11] yajl: improve kconfig help text Roland Hieber
2019-05-28 11:57 ` Roland Hieber [this message]
2019-05-28 11:57 ` [ptxdist] [PATCH v1 04/11] paho-mqtt-c: new package Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 05/11] paho-mqtt-cpp: " Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 06/11] host-autotools-autoconf-archive: " Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 07/11] rootfs: add tpm user and group Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 08/11] tpm: add new menu Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 09/11] tpm2-tss: new package Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 10/11] tpm2-abrmd: " Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 11/11] tpm2-tools: " Roland Hieber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190528115756.2279-3-rhi@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=jlu@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox