Page MenuHomeFreeBSD

Refactor core dumping code a bit
ClosedPublic

Authored by trasz on May 20 2021, 8:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 15, 10:53 PM
Unknown Object (File)
Fri, Mar 28, 6:09 AM
Unknown Object (File)
Mar 18 2025, 2:52 AM
Unknown Object (File)
Feb 23 2025, 12:36 PM
Unknown Object (File)
Jan 23 2025, 8:29 PM
Unknown Object (File)
Jan 14 2025, 2:16 AM
Unknown Object (File)
Dec 27 2024, 1:01 AM
Unknown Object (File)
Dec 18 2024, 5:56 AM
Subscribers

Details

Summary

This makes it possible to use core_write(), core_output(),
and sbuf_drain_core_output(), in Linux coredump code. Moving
them out of imgact_elf.c is necessary because of the weird way
it's being built.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

trasz requested review of this revision.May 20 2021, 8:56 PM
kib added inline comments.
sys/kern/kern_exec.c
2015

As a follow-up, please somewhat clean this function:

  • rename 'p' to e.g. cp
  • add local var p for cp->td->td_proc and use it
This revision is now accepted and ready to land.May 20 2021, 9:38 PM
This revision was automatically updated to reflect the committed changes.