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, Nov 25, 11:52 PM
Unknown Object (File)
Nov 24 2025, 7:31 AM
Unknown Object (File)
Nov 23 2025, 12:06 PM
Unknown Object (File)
Nov 20 2025, 9:07 AM
Unknown Object (File)
Nov 12 2025, 7:38 PM
Unknown Object (File)
Nov 10 2025, 10:43 PM
Unknown Object (File)
Nov 6 2025, 11:42 PM
Unknown Object (File)
Nov 2 2025, 6:13 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39326
Build 36215: arc lint + arc unit

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.