forked from namhyung/uftrace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request namhyung#1762 from gichoel/find-tracefs-issue
The currnet find_tracing_dir logic parses /proc/self/mounts to find tracefs, but some cases show the number of fields in /proc/self/mounts differs and it makes a parsing failure. Gichoel fixes this issue with two steps as follows. 1. Try known paths at /sys/kernel/tracing and /sys/kernel/debug/tracing 2. Use setmntent/getmntent to identify tracefs from /proc/mounts. Signed-off-by: Honggyu Kim <[email protected]>
- Loading branch information
Showing
1 changed file
with
28 additions
and
40 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