Home
last modified time | relevance | path

Searched refs:evt_dir (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.1/tools/perf/util/
Dtracepoint.c12 int tp_event_has_id(const char *dir_path, struct dirent *evt_dir) in tp_event_has_id() argument
17 snprintf(evt_path, MAXPATHLEN, "%s/%s/id", dir_path, evt_dir->d_name); in tp_event_has_id()
31 DIR *sys_dir, *evt_dir; in is_valid_tracepoint() local
44 evt_dir = opendir(dir_path); in is_valid_tracepoint()
45 if (!evt_dir) in is_valid_tracepoint()
48 for_each_event(dir_path, evt_dir, evt_dirent) { in is_valid_tracepoint()
52 closedir(evt_dir); in is_valid_tracepoint()
57 closedir(evt_dir); in is_valid_tracepoint()
Dtracepoint.h8 int tp_event_has_id(const char *dir_path, struct dirent *evt_dir);
10 #define for_each_event(dir_path, evt_dir, evt_dirent) \ argument
11 while ((evt_dirent = readdir(evt_dir)) != NULL) \
Dprint-events.c69 DIR *sys_dir, *evt_dir; in print_tracepoint_events() local
96 evt_dir = opendir(dir_path); in print_tracepoint_events()
97 if (!evt_dir) in print_tracepoint_events()
100 for_each_event(dir_path, evt_dir, evt_dirent) { in print_tracepoint_events()
120 closedir(evt_dir); in print_tracepoint_events()
151 closedir(evt_dir); in print_tracepoint_events()
Dtrace-event-info.c414 DIR *sys_dir, *evt_dir; in tracepoint_id_to_path() local
430 evt_dir = opendir(dir_path); in tracepoint_id_to_path()
431 if (!evt_dir) in tracepoint_id_to_path()
434 for_each_event(dir_path, evt_dir, evt_dirent) { in tracepoint_id_to_path()
449 closedir(evt_dir); in tracepoint_id_to_path()
468 closedir(evt_dir); in tracepoint_id_to_path()
Dparse-events.c509 DIR *evt_dir; in add_tracepoint_multi_event() local
517 evt_dir = opendir(evt_path); in add_tracepoint_multi_event()
518 if (!evt_dir) { in add_tracepoint_multi_event()
524 while (!ret && (evt_ent = readdir(evt_dir))) { in add_tracepoint_multi_event()
546 closedir(evt_dir); in add_tracepoint_multi_event()