Page MenuHomeFreeBSD

syscall: Create a script to export the data as json
ClosedPublic

Authored by imp on Apr 15 2026, 2:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 5, 1:49 AM
Unknown Object (File)
Thu, Jun 4, 2:29 AM
Unknown Object (File)
Fri, May 29, 3:51 AM
Unknown Object (File)
Wed, May 27, 10:22 PM
Unknown Object (File)
Tue, May 26, 10:32 AM
Unknown Object (File)
Thu, May 21, 1:41 PM
Unknown Object (File)
Mon, May 18, 12:18 PM
Unknown Object (File)
Mon, May 18, 12:10 PM
Subscribers
None

Details

Summary

Create a script to export the parsed data as json. Include the
annotations for the system call arguments, since they are helpful to
downstream uses.

Sponsored by: Netflix

Diff Detail

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

Event Timeline

imp requested review of this revision.Apr 15 2026, 2:17 PM
imp created this revision.

on second thought, simplify a bit: always write to stdout.

brooks added inline comments.
sys/tools/syscalls/scripts/syscall_json.lua
9

Does it actually make sense of this to be a module? I guess it's harmless.

97–98

I find it a little odd to be providing both of these things in one file, but I don't have a feel for what makes "good" use of JSON.

This revision is now accepted and ready to land.Apr 16 2026, 8:18 AM
sys/tools/syscalls/scripts/syscall_json.lua
9

Oh, likely no.

97–98

I find it a little odd to be providing both of these things in one file, but I don't have a feel for what makes "good" use of JSON.

I'm unsure as well, but I'll see if I wind up needing it. after noticing this after the commit (I missed it before somehow) I got to thinking about it and maybe it's not needed. It can be inferred by looking at all the other syscalls. It only saves about 50 lines in the output.