Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/tools/testing/selftests/pstore/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 842 B image not shown  

Quelle  pstore_crash_test

  Sprache: Text
 

#!/bin/sh
SPDX-License-Identifier: GPL-2.0-only

pstore_crash_test - Pstore test shell script which causes crash and reboot
java.lang.NullPointerException
Copyright (C) Hitachi Ltd., 2015
#  Written by Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
java.lang.NullPointerException

exit if pstore backend is not registered
. ./common_tests

prlog "Causing kernel crash ..."

enable all functions triggered by sysrq
echo 1 > /proc/sys/kernel/sysrq
setting to reboot in 3 seconds after panic
echo 3 > /proc/sys/kernel/panic

save uuid file by different name because next test execution will replace it.
mv $TOP_DIR/uuid $TOP_DIR/prev_uuid

create a file as reboot flag
touch $REBOOT_FLAG
sync

cause crash
Note: If you use kdump and want to see kmesg-* files after reboot, you should
#       specify 'crash_kexec_post_notifiers' in 1st kernel's cmdline.
echo c > /proc/sysrq-trigger

Messung V0.5 in Prozent
C=95 H=90 G=92

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-07) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.