Home
last modified time | relevance | path

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

/linux-4.1.27/tools/perf/util/
Dparse-events.c131 #define for_each_subsystem(sys_dir, sys_dirent, sys_next) \ argument
132 while (!readdir_r(sys_dir, &sys_dirent, &sys_next) && sys_next) \
137 static int tp_event_has_id(struct dirent *sys_dir, struct dirent *evt_dir) in tp_event_has_id() argument
143 sys_dir->d_name, evt_dir->d_name); in tp_event_has_id()
165 DIR *sys_dir, *evt_dir; in tracepoint_id_to_path() local
173 sys_dir = opendir(tracing_events_path); in tracepoint_id_to_path()
174 if (!sys_dir) in tracepoint_id_to_path()
177 for_each_subsystem(sys_dir, sys_dirent, sys_next) { in tracepoint_id_to_path()
200 closedir(sys_dir); in tracepoint_id_to_path()
223 closedir(sys_dir); in tracepoint_id_to_path()
[all …]
/linux-4.1.27/tools/perf/tests/
Dparse-events.c1247 DIR *sys_dir; in count_tracepoints() local
1259 sys_dir = opendir(sys_path); in count_tracepoints()
1260 TEST_ASSERT_VAL("Can't open sys dir", sys_dir); in count_tracepoints()
1262 while ((sys_ent = readdir(sys_dir))) { in count_tracepoints()
1272 closedir(sys_dir); in count_tracepoints()