Page MenuHomeFreeBSD

Group the decoded system calls by ABI and sort the calls within each ABI.
ClosedPublic

Authored by jhb on Oct 6 2015, 2:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 17, 5:34 PM
Unknown Object (File)
Mon, Jun 17, 5:34 PM
Unknown Object (File)
Mon, Jun 17, 5:34 PM
Unknown Object (File)
Mon, Jun 17, 5:20 PM
Unknown Object (File)
Jan 18 2024, 1:18 PM
Unknown Object (File)
Jan 8 2024, 2:53 AM
Unknown Object (File)
Jan 5 2024, 5:44 PM
Unknown Object (File)
Jan 5 2024, 4:52 AM
Subscribers

Details

Summary

Group the decoded system calls by ABI and sort the calls within each ABI.

I originally was just going to use a single sorted list, but I think it
is better to group the calls by ABI. Once I make a first pass adding more
decodings for the native ABI I plan to add decoding for freebsd32 to match
all the calls handled in the native ABI.

Test Plan
  • Compared truss output of my system call exerciser for amd64 and i386 binaries under amd64.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb retitled this revision from to Group the decoded system calls by ABI and sort the calls within each ABI..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added reviewers: kib, bdrewery.

I never realized how truss matches syscall to the table. Doing it by name is somewhat ridiculous, but I see the point.

If you keep the table ordered alphabetically, you could use binary search instead of linear.

In D3823#78888, @kib wrote:

I never realized how truss matches syscall to the table. Doing it by name is somewhat ridiculous, but I see the point.

If you keep the table ordered alphabetically, you could use binary search instead of linear.

This table isn't used for searching anymore. It's in a separate dynamic list which has unknown syscalls added to it as discovered. I'm working on making that list into a hash table.

bdrewery edited edge metadata.
This revision is now accepted and ready to land.Oct 6 2015, 4:46 PM
This revision was automatically updated to reflect the committed changes.