]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - tools/perf/util/parse-events.c
tools lib api fs tracing_path: Introduce opendir() method
[linux.git] / tools / perf / util / parse-events.c
index 24668300b327760a434e478c5f36fac3e9ab34ae..15eec49e71a12ad89596f928e39874522c4a65df 100644 (file)
@@ -191,7 +191,7 @@ struct tracepoint_path *tracepoint_id_to_path(u64 config)
        char evt_path[MAXPATHLEN];
        char *dir_path;
 
-       sys_dir = opendir(tracing_events_path);
+       sys_dir = tracing_events__opendir();
        if (!sys_dir)
                return NULL;
 
@@ -578,7 +578,7 @@ static int add_tracepoint_multi_sys(struct list_head *list, int *idx,
        DIR *events_dir;
        int ret = 0;
 
-       events_dir = opendir(tracing_events_path);
+       events_dir = tracing_events__opendir();
        if (!events_dir) {
                tracepoint_error(err, errno, sys_name, evt_name);
                return -1;
@@ -2106,7 +2106,7 @@ void print_tracepoint_events(const char *subsys_glob, const char *event_glob,
        bool evt_num_known = false;
 
 restart:
-       sys_dir = opendir(tracing_events_path);
+       sys_dir = tracing_events__opendir();
        if (!sys_dir)
                return;
 
@@ -2200,7 +2200,7 @@ int is_valid_tracepoint(const char *event_string)
        char evt_path[MAXPATHLEN];
        char *dir_path;
 
-       sys_dir = opendir(tracing_events_path);
+       sys_dir = tracing_events__opendir();
        if (!sys_dir)
                return 0;