Page MenuHomeFreeBSD

filemon needs to handle openat
ClosedPublic

Authored by sjg on Jun 14 2015, 5:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 9, 4:35 PM
Unknown Object (File)
Nov 9 2024, 4:48 AM
Unknown Object (File)
Oct 28 2024, 10:26 AM
Unknown Object (File)
Oct 25 2024, 11:33 PM
Unknown Object (File)
Oct 25 2024, 11:33 PM
Unknown Object (File)
Oct 25 2024, 11:33 PM
Unknown Object (File)
Oct 25 2024, 11:33 PM
Unknown Object (File)
Oct 5 2024, 2:08 AM
Subscribers
None

Details

Summary

Latest clang is using openat during pre-processing.

Its using absolute paths anyway which somewhat defeats the point I'd have thought.
Anyway, patch below handles two simple cases of openat - where path is absolute
or fd is AT_FDCWD, both of which can be treated like normal open for purpose of logging.

If anyone has a clue how to handle the remaining case - ie find the pathname associated with the fd,
let me know...

Diff Detail

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

Event Timeline

sjg retitled this revision from to filemon needs to handle openat.
sjg updated this object.
sjg edited the test plan for this revision. (Show Details)

output an A record to indicate when we are lost

jhb added a reviewer: jhb.
This revision is now accepted and ready to land.Jun 14 2015, 4:23 PM
This revision was automatically updated to reflect the committed changes.