MCPcopy Create free account
hub / github.com/F-Stack/f-stack / textdump_dump_panic

Function textdump_dump_panic

freebsd/ddb/db_textdump.c:387–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387static void
388textdump_dump_panic(struct dumperinfo *di)
389{
390 u_int len;
391
392 /*
393 * Write out tar header -- we store up to one block of panic message.
394 */
395 len = min(strlen(panicstr), TEXTDUMP_BLOCKSIZE);
396 textdump_mkustar(textdump_block_buffer, TAR_PANIC_FILENAME, len);
397 (void)textdump_writenextblock(di, textdump_block_buffer);
398
399 /*
400 * Zero-pad the panic string and write out block.
401 */
402 bzero(textdump_block_buffer, sizeof(textdump_block_buffer));
403 bcopy(panicstr, textdump_block_buffer, len);
404 (void)textdump_writenextblock(di, textdump_block_buffer);
405}
406
407static void
408textdump_dump_version(struct dumperinfo *di)

Callers 1

textdump_dumpsysFunction · 0.85

Calls 4

minFunction · 0.85
textdump_mkustarFunction · 0.85
textdump_writenextblockFunction · 0.85
bzeroFunction · 0.85

Tested by

no test coverage detected