Lines Matching refs:sys
162 static bool name_in_tp_list(char *sys, struct tracepoint_path *tps) in name_in_tp_list() argument
165 if (!strcmp(sys, tps->name)) in name_in_tp_list()
173 static int copy_event_system(const char *sys, struct tracepoint_path *tps) in copy_event_system() argument
183 dir = opendir(sys); in copy_event_system()
185 pr_debug("can't read directory '%s'", sys); in copy_event_system()
195 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system()
219 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system()
258 static bool system_in_tp_list(char *sys, struct tracepoint_path *tps) in system_in_tp_list() argument
261 if (!strcmp(sys, tps->system)) in system_in_tp_list()
274 char *sys; in record_event_files() local
317 if (asprintf(&sys, "%s/%s", path, dent->d_name) < 0) { in record_event_files()
321 ret = stat(sys, &st); in record_event_files()
326 copy_event_system(sys, tps) < 0) { in record_event_files()
328 free(sys); in record_event_files()
332 free(sys); in record_event_files()