Page MenuHomeFreeBSD

Move shared utrace code from kdump and truss to a new libsysdecode library.
ClosedPublic

Authored by jhb on Dec 12 2015, 6:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 12:36 PM
Unknown Object (File)
Mon, May 6, 10:44 PM
Unknown Object (File)
Fri, May 3, 9:13 AM
Unknown Object (File)
Fri, May 3, 6:56 AM
Unknown Object (File)
Fri, May 3, 6:56 AM
Unknown Object (File)
Fri, May 3, 6:56 AM
Unknown Object (File)
Fri, May 3, 6:33 AM
Unknown Object (File)
Sun, Apr 14, 5:50 PM
Subscribers

Details

Summary

Start on a new library (libsysdecode) that provides routines for decoding
system call information such as system call arguments. Initially this
will consist of pulling duplicated code out of truss and kdump though it
may prove useful for other utilities in the future.

This commit moves the shared utrace(2) record parser out of kdump into
the library and updates kdump and truss to use it. One difference from
the previous version is that the library version treats unknown events
that start with the "RTLD" signature as unknown events. This simplifies
the interface and allows the consumer to decide how to handle all
non-recognized events. Instead, this function only generates a string
description for known malloc() and RTLD records.

Test Plan
  • Ran 'env LD_UTRACE=yes MALLOC_CONF="utrace:yes" ktrace -t u /bin/ls' and compared the output of old and new kdump binaries on the resultning ktrace.out.
  • Ran the same test under both old and new truss and compared the output.

Diff Detail

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

Event Timeline

jhb retitled this revision from to Move shared utrace code from kdump and truss to a new libsysdecode library..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added a reviewer: bdrewery.
bdrewery edited edge metadata.

Looks good

This revision is now accepted and ready to land.Dec 14 2015, 10:21 PM
jhb edited edge metadata.
  • Update Makefile.depend files for new library.
This revision now requires review to proceed.Dec 14 2015, 11:57 PM
bdrewery edited edge metadata.

Thanks!

This revision is now accepted and ready to land.Dec 14 2015, 11:58 PM
This revision was automatically updated to reflect the committed changes.