-
Notifications
You must be signed in to change notification settings - Fork 733
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a filtercheck for when a fd name changes
Add a filtercheck fd.name_changed which is true when parsing an event changes the "name" of a fd. This mostly occurs when a bind/connect/sendto/recvfrom/etc changes the ip/port information associated with a socket fd, and is useful if you want to track when a stream of sendto/recvfroms on a single socket changes addresses. This is done by adding a m_oldname to fdinfo, which is set when threadinfo returns a fd and associates it with an event. If after parsing, the name changes, the filtercheck will return true. Whether the name changed or not is an event property and set at the end of sinsp_parser::process_event(). It does this by checking the original fd name and comparing it to the fd name that exists after parsing the event.
- Loading branch information
Showing
6 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters