Page MenuHomeFreeBSD

prf: add setting of msgbuftrigger in paths where it is missing
ClosedPublic

Authored by chs on Oct 12 2023, 6:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 4, 5:22 AM
Unknown Object (File)
Apr 8 2024, 3:51 PM
Unknown Object (File)
Apr 8 2024, 9:30 AM
Unknown Object (File)
Apr 7 2024, 2:45 AM
Unknown Object (File)
Mar 26 2024, 8:50 PM
Unknown Object (File)
Dec 30 2023, 7:47 PM
Unknown Object (File)
Dec 23 2023, 12:35 AM
Unknown Object (File)
Dec 12 2023, 5:30 PM
Subscribers

Details

Summary

Logging things to msgbuf is supposed to set msgbuftrigger so that
syslogd will notice that there is more to read from /dev/klog,
but several paths do not do that. Add the missing trigger.

Diff Detail

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

Event Timeline

chs requested review of this revision.Oct 12 2023, 6:45 PM
This revision is now accepted and ready to land.Oct 12 2023, 6:55 PM

This mechanism seems to be quite fragile. In particular, I do not see any guarantee that other CPUs would see msgbuf write when msgbuftrigger is set to 1.

I agree, this msgbuftrigger thing is rather loosey-goosey. I'm just trying to have all the msgbuf paths achieve a consistent level of loosey-gooseyness.