-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: only synchronize application configuration on tracing start
The UST configuration of applications is currently replicated as it is changed from the ltt_ust_{session, channel, event} data structures to their ust_app_* equivalent as they are modified. While this worked correctly for the most part, it caused a problem in per-PID mode since the buffers would get allocated (and files created, in applicable tracing modes) even though tracing was never started during some applications' lifetime. A previous fix attempt, 0498a00, adressed this problem but introduced a regression that caused configurations to become mismatched between the sessiond and applications in cases where a tracing session was started, stopped, modified, and started again within the lifetime of a given application. This change introduces an explicit "synchronize" set of operations that ensures that a session's channels and events configurations, as known by the application(s), match those of the session daemon whenever a session is started. Signed-off-by: Jérémie Galarneau <[email protected]>
- Loading branch information
Showing
7 changed files
with
288 additions
and
392 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
Oops, something went wrong.