Lines Matching refs:tps

144 static bool name_in_tp_list(char *sys, struct tracepoint_path *tps)  in name_in_tp_list()  argument
146 while (tps) { in name_in_tp_list()
147 if (!strcmp(sys, tps->name)) in name_in_tp_list()
149 tps = tps->next; in name_in_tp_list()
155 #define for_each_event_tps(dir, dent, tps) \ argument
161 static int copy_event_system(const char *sys, struct tracepoint_path *tps) in copy_event_system() argument
177 for_each_event_tps(dir, dent, tps) { in copy_event_system()
178 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system()
199 for_each_event_tps(dir, dent, tps) { in copy_event_system()
200 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system()
224 static int record_ftrace_files(struct tracepoint_path *tps) in record_ftrace_files() argument
235 ret = copy_event_system(path, tps); in record_ftrace_files()
242 static bool system_in_tp_list(char *sys, struct tracepoint_path *tps) in system_in_tp_list() argument
244 while (tps) { in system_in_tp_list()
245 if (!strcmp(sys, tps->system)) in system_in_tp_list()
247 tps = tps->next; in system_in_tp_list()
253 static int record_event_files(struct tracepoint_path *tps) in record_event_files() argument
277 for_each_event_tps(dir, dent, tps) { in record_event_files()
279 !system_in_tp_list(dent->d_name, tps)) in record_event_files()
292 for_each_event_tps(dir, dent, tps) { in record_event_files()
294 !system_in_tp_list(dent->d_name, tps)) in record_event_files()
306 copy_event_system(sys, tps) < 0) { in record_event_files()
391 put_tracepoints_path(struct tracepoint_path *tps) in put_tracepoints_path() argument
393 while (tps) { in put_tracepoints_path()
394 struct tracepoint_path *t = tps; in put_tracepoints_path()
396 tps = tps->next; in put_tracepoints_path()
594 struct tracepoint_path *tps; in tracing_data_get() local
600 tps = get_tracepoints_path(pattrs); in tracing_data_get()
601 if (!tps) in tracing_data_get()
642 err = record_ftrace_files(tps); in tracing_data_get()
645 err = record_event_files(tps); in tracing_data_get()
670 put_tracepoints_path(tps); in tracing_data_get()