Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache dbus name owner identification data for debugging purposes
Textual identification of dbus name owner can be requested via two new functions: mce_dbus_get_name_owner_ident() and mce_dbus_get_message_sender_ident(). If requested name is not already known, the functions will - after initiating asynchronous pid query - return only the dbus name for use at the call site. Once the async pid query finishes, the command name is resolved from /proc file system and full information is logged so that previously written log entries can be associated with a command. Subsequent calls will immediately provide full information for use at the call site. If the identified name drops from system bus, the cached entry is released.
- Loading branch information
Showing
2 changed files
with
348 additions
and
4 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