Home
last modified time | relevance | path

Searched refs:sys_dir (Results 1 – 4 of 4) sorted by relevance

/tools/perf/util/
Dtracepoint.c31 DIR *sys_dir, *evt_dir; in is_valid_tracepoint() local
36 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()
Dtracepoint.h17 #define for_each_subsystem(sys_dir, sys_dirent) \ argument
18 while ((sys_dirent = readdir(sys_dir)) != NULL) \
Dtrace-event-info.c406 DIR *sys_dir, *evt_dir; in tracepoint_id_to_path() local
414 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()
/tools/perf/tests/
Dparse-events.c1731 DIR *sys_dir; in count_tracepoints() local
1743 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()