Home
last modified time | relevance | path

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

/openbmc/linux/tools/perf/util/
H A 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()
H A Dtracepoint.h17 #define for_each_subsystem(sys_dir, sys_dirent) \ argument
18 while ((sys_dirent = readdir(sys_dir)) != NULL) \
H A 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()
/openbmc/linux/tools/perf/tests/
H A 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()