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)
Tue, Jul 14, 9:09 PM
Unknown Object (File)
Fri, Jul 10, 8:56 PM
Unknown Object (File)
Sun, Jun 28, 7:19 PM
Unknown Object (File)
Sat, Jun 27, 3:13 PM
Unknown Object (File)
Thu, Jun 25, 12:52 AM
Unknown Object (File)
Wed, Jun 24, 8:01 AM
Unknown Object (File)
Tue, Jun 23, 11:59 AM
Unknown Object (File)
Tue, Jun 23, 2:46 AM
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