Searched refs:sys_dir (Results 1 – 2 of 2) sorted by relevance
/linux-4.4.14/tools/perf/util/ |
D | parse-events.c | 141 #define for_each_subsystem(sys_dir, sys_dirent, sys_next) \ argument 142 while (!readdir_r(sys_dir, &sys_dirent, &sys_next) && sys_next) \ 147 static int tp_event_has_id(struct dirent *sys_dir, struct dirent *evt_dir) in tp_event_has_id() argument 153 sys_dir->d_name, evt_dir->d_name); in tp_event_has_id() 175 DIR *sys_dir, *evt_dir; in tracepoint_id_to_path() local 183 sys_dir = opendir(tracing_events_path); in tracepoint_id_to_path() 184 if (!sys_dir) in tracepoint_id_to_path() 187 for_each_subsystem(sys_dir, sys_dirent, sys_next) { in tracepoint_id_to_path() 210 closedir(sys_dir); in tracepoint_id_to_path() 233 closedir(sys_dir); in tracepoint_id_to_path() [all …]
|
/linux-4.4.14/tools/perf/tests/ |
D | parse-events.c | 1287 DIR *sys_dir; in count_tracepoints() local 1299 sys_dir = opendir(sys_path); in count_tracepoints() 1300 TEST_ASSERT_VAL("Can't open sys dir", sys_dir); in count_tracepoints() 1302 while ((sys_ent = readdir(sys_dir))) { in count_tracepoints() 1312 closedir(sys_dir); in count_tracepoints()
|