-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ftrace: Autodetect location of tracing folder
If you don't provide a tracing location in the global config key section, rt-app usually looks in /sys/kernel/debug for the tracing folder. This patch allows rt-app to examine the content of /etc/mtab, and apply the following ordering: * If tracefs is mounted, use that location * If tracefs is not found anywhere, then look for debugfs * If we find neither, just use /sys/kernel/debug All of this is overridden if you provide the config key. This should allow rt-app to work on any platform, at least from tracing POV. Signed-off-by: Chris Redpath <[email protected]>
- Loading branch information
Showing
3 changed files
with
49 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
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