Searched refs:sys_dir (Results 1 – 4 of 4) sorted by relevance
31 DIR *sys_dir, *evt_dir; in is_valid_tracepoint() local36 sys_dir = tracing_events__opendir(); in is_valid_tracepoint()37 if (!sys_dir) in is_valid_tracepoint()40 for_each_subsystem(sys_dir, sys_dirent) { in is_valid_tracepoint()54 closedir(sys_dir); in is_valid_tracepoint()62 closedir(sys_dir); in is_valid_tracepoint()
17 #define for_each_subsystem(sys_dir, sys_dirent) \ argument18 while ((sys_dirent = readdir(sys_dir)) != NULL) \
406 DIR *sys_dir, *evt_dir; in tracepoint_id_to_path() local414 sys_dir = tracing_events__opendir(); in tracepoint_id_to_path()415 if (!sys_dir) in tracepoint_id_to_path()418 for_each_subsystem(sys_dir, sys_dirent) { in tracepoint_id_to_path()442 closedir(sys_dir); in tracepoint_id_to_path()465 closedir(sys_dir); in tracepoint_id_to_path()
1731 DIR *sys_dir; in count_tracepoints() local1743 sys_dir = opendir(sys_path); in count_tracepoints()1744 TEST_ASSERT_VAL("Can't open sys dir", sys_dir); in count_tracepoints()1746 while ((sys_ent = readdir(sys_dir))) { in count_tracepoints()1756 closedir(sys_dir); in count_tracepoints()