Page MenuHomeFreeBSD

makesyscalls: Generate systruss.h
Needs ReviewPublic

Authored by imp on Apr 14 2023, 4:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 18, 1:41 PM
Unknown Object (File)
Tue, May 14, 11:51 AM
Unknown Object (File)
Tue, May 14, 9:06 AM
Unknown Object (File)
Tue, May 14, 9:05 AM
Unknown Object (File)
Tue, May 14, 8:03 AM
Unknown Object (File)
Mar 10 2024, 9:27 PM
Unknown Object (File)
Jan 28 2024, 10:29 AM
Unknown Object (File)
Dec 26 2023, 10:22 PM
Subscribers
None

Details

Reviewers
kevans
jhb
Summary

systruss.h replaces the decode table in
usr.bin/truss/syscalls.c. Genereate it here when we generate the other
things. This is the least bad way to go given the current structure of
the code, but if we make makesyscalls.lua a library, we could abstract
this out to only run when we're building truss.

Posted for comments mostly... And I think we'll need to add _Pseudo_Mmapflags type of thing for the ints that are really flags. Ad I'm not sure I like the struct hacks I've done...

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 50916
Build 47807: arc lint + arc unit

Event Timeline

imp requested review of this revision.Apr 14 2023, 4:06 AM
imp created this revision.
imp added reviewers: kevans, jhb.

Add some ifdefs to make it tolerant of a range of versions
to use it in, say, bsd-user