Move the mkioctls script to libsysdecode and use it to generate a
sysdecode_ioctlname() function. This function matches the behavior
of the truss variant in that it returns a pointer to a string description
for known ioctls. The caller is responsible for displaying unknown
ioctl requests. For kdump this meant moving the logic to handle unknown
ioctl requests out of the generated function and into an ioctlname()
function in kdump.c instead.
Details
Details
- Reviewers
bdrewery - Group Reviewers
manpages - Commits
- rS292622: Move the mkioctls script to libsysdecode and use it to generate a
- Compared truss and kdump output before/after of a /bin/ls run.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
lib/libsysdecode/Makefile | ||
---|---|---|
26 ↗ | (On Diff #11408) | Note that the ${.TARGET} route didn't actually work well here as I would have needed to define separate variables for ioctl.o, ioctl.So and ioctl.po. Using ${.IMPSRC} let me only define a single variable. |
lib/libsysdecode/sysdecode_ioctlname.3 | ||
28 ↗ | (On Diff #11408) | git is just confused here, this is a new file, not copied from sysdecode.3. |