mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-09 18:58:18 +01:00
minidump: Add u-boot env variable to test minidump
To test minidump feature, we require a method to collect full dump and minidump binaries on a single run for side by side comparison. This change enables dumping of minidump and full dump binaries consecutively when uboot env variable 'dump_minimal_and_full' is set. Change-Id: I846084546d3c67398d7ef7b81e87c97bcc63c609 Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
This commit is contained in:
parent
b02ecfef9e
commit
f403ae6e97
1 changed files with 10 additions and 2 deletions
|
|
@ -714,8 +714,16 @@ void dump_func(unsigned int dump_level)
|
|||
printf("\nHit any key within 10s to stop dump activity...");
|
||||
while (!tstc()) { /* while no incoming data */
|
||||
if (get_timer_masked() >= etime) {
|
||||
if (do_dumpqca_data(dump_level) == CMD_RET_FAILURE)
|
||||
printf("Crashdump saving failed!\n");
|
||||
if (getenv("dump_minimal_and_full")) {
|
||||
/* dump minidump and full dump*/
|
||||
if (do_dumpqca_data(MINIMAL_DUMP) == CMD_RET_FAILURE)
|
||||
printf("Minidump saving failed!\n");
|
||||
if (do_dumpqca_data(FULL_DUMP) == CMD_RET_FAILURE)
|
||||
printf("Crashdump saving failed!\n");
|
||||
} else {
|
||||
if (do_dumpqca_data(dump_level) == CMD_RET_FAILURE)
|
||||
printf("Crashdump saving failed!\n");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue