Searched refs:evt_path (Results 1 – 2 of 2) sorted by relevance
32 char *evt_path; in tp_pmu__for_each_tp_event() local 37 evt_path = get_events_file(sys); in tp_pmu__for_each_tp_event() 38 if (!evt_path) in tp_pmu__for_each_tp_event() 41 io_dir__init(&evt_dir, open(evt_path, O_CLOEXEC | O_DIRECTORY | O_RDONLY)); in tp_pmu__for_each_tp_event() 44 put_events_file(evt_path); in tp_pmu__for_each_tp_event() 47 put_events_file(evt_path); in tp_pmu__for_each_tp_event()
16 char evt_path[MAXPATHLEN]; in tp_event_has_id() local 19 snprintf(evt_path, MAXPATHLEN, "%s/%s/id", dir_path, evt_dir->d_name); in tp_event_has_id() 20 fd = open(evt_path, O_RDONLY); in tp_event_has_id()