Page MenuHomeFreeBSD

vm: Remove kernel stack swapping support, part 6
ClosedPublic

Authored by markj on Jul 24 2024, 9:39 PM.
Tags
None
Referenced Files
F93161988: D46117.id.diff
Sat, Sep 7, 6:43 PM
F93160843: D46117.id.diff
Sat, Sep 7, 6:29 PM
F93101677: D46117.id141373.diff
Sat, Sep 7, 8:51 AM
Unknown Object (File)
Thu, Sep 5, 8:42 PM
Unknown Object (File)
Thu, Sep 5, 6:13 AM
Unknown Object (File)
Wed, Aug 21, 7:27 PM
Unknown Object (File)
Aug 3 2024, 6:20 AM
Unknown Object (File)
Jul 29 2024, 3:18 AM
Subscribers

Details

Summary
  • Remove most checks of the P_INMEM flag.
  • Some uses remain since a few userspace tools expect the flag to be set.

Diff Detail

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

Event Timeline

markj requested review of this revision.Jul 24 2024, 9:39 PM

Can we document which processes/tools do that?

This revision is now accepted and ready to land.Jul 24 2024, 9:51 PM
In D46117#1051135, @imp wrote:

Can we document which processes/tools do that?

In the commit log message you mean? Sure. It's ps(1) and top(1) mainly, but I'm sure that code's been copy-pasted around.

sys/fs/procfs/procfs_status.c
124–125

Could this be properly de-indented, please?

sys/kern/sys_process.c
98–99

IMO this macro should go away.

markj marked 2 inline comments as done.

Handle kib's comments.

This revision now requires review to proceed.Jul 25 2024, 1:59 PM
This revision is now accepted and ready to land.Jul 25 2024, 2:06 PM
sys/kern/sys_process.c
74

drop ()