Lines Matching refs:tps

152 static bool name_in_tp_list(char *sys, struct tracepoint_path *tps)  in name_in_tp_list()  argument
154 while (tps) { in name_in_tp_list()
155 if (!strcmp(sys, tps->name)) in name_in_tp_list()
157 tps = tps->next; in name_in_tp_list()
163 #define for_each_event_tps(dir, dent, tps) \ argument
169 static int copy_event_system(const char *sys, struct tracepoint_path *tps) in copy_event_system() argument
185 for_each_event_tps(dir, dent, tps) { in copy_event_system()
186 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system()
207 for_each_event_tps(dir, dent, tps) { in copy_event_system()
208 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system()
232 static int record_ftrace_files(struct tracepoint_path *tps) in record_ftrace_files() argument
243 ret = copy_event_system(path, tps); in record_ftrace_files()
250 static bool system_in_tp_list(char *sys, struct tracepoint_path *tps) in system_in_tp_list() argument
252 while (tps) { in system_in_tp_list()
253 if (!strcmp(sys, tps->system)) in system_in_tp_list()
255 tps = tps->next; in system_in_tp_list()
261 static int record_event_files(struct tracepoint_path *tps) in record_event_files() argument
285 for_each_event_tps(dir, dent, tps) { in record_event_files()
287 !system_in_tp_list(dent->d_name, tps)) in record_event_files()
300 for_each_event_tps(dir, dent, tps) { in record_event_files()
302 !system_in_tp_list(dent->d_name, tps)) in record_event_files()
314 copy_event_system(sys, tps) < 0) { in record_event_files()
399 put_tracepoints_path(struct tracepoint_path *tps) in put_tracepoints_path() argument
401 while (tps) { in put_tracepoints_path()
402 struct tracepoint_path *t = tps; in put_tracepoints_path()
404 tps = tps->next; in put_tracepoints_path()
590 struct tracepoint_path *tps; in tracing_data_get() local
596 tps = get_tracepoints_path(pattrs); in tracing_data_get()
597 if (!tps) in tracing_data_get()
638 err = record_ftrace_files(tps); in tracing_data_get()
641 err = record_event_files(tps); in tracing_data_get()
666 put_tracepoints_path(tps); in tracing_data_get()