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.
utils: Modify logic to check path for tracefs using '/proc/mounts'
This logic change is to address issue namhyung#1753, which was causing issue on some kernels. The previous logic used '/proc/self/mountinfo', but in some cases the number of fields was different, causing a parse error. This has been fixed by using getmntent() and setmntent() to parse '/proc/mounts' structurally. Signed-off-by: Gichoel Choi <[email protected]>
- Loading branch information
Showing
1 changed file
with
14 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