Lines Matching refs:tps
162 static bool name_in_tp_list(char *sys, struct tracepoint_path *tps) in name_in_tp_list() argument
164 while (tps) { in name_in_tp_list()
165 if (!strcmp(sys, tps->name)) in name_in_tp_list()
167 tps = tps->next; in name_in_tp_list()
173 static int copy_event_system(const char *sys, struct tracepoint_path *tps) in copy_event_system() argument
193 !name_in_tp_list(dent->d_name, tps)) in copy_event_system()
217 !name_in_tp_list(dent->d_name, tps)) in copy_event_system()
240 static int record_ftrace_files(struct tracepoint_path *tps) in record_ftrace_files() argument
251 ret = copy_event_system(path, tps); in record_ftrace_files()
258 static bool system_in_tp_list(char *sys, struct tracepoint_path *tps) in system_in_tp_list() argument
260 while (tps) { in system_in_tp_list()
261 if (!strcmp(sys, tps->system)) in system_in_tp_list()
263 tps = tps->next; in system_in_tp_list()
269 static int record_event_files(struct tracepoint_path *tps) in record_event_files() argument
298 !system_in_tp_list(dent->d_name, tps)) in record_event_files()
315 !system_in_tp_list(dent->d_name, tps)) in record_event_files()
326 copy_event_system(sys, tps) < 0) { in record_event_files()
383 put_tracepoints_path(struct tracepoint_path *tps) in put_tracepoints_path() argument
385 while (tps) { in put_tracepoints_path()
386 struct tracepoint_path *t = tps; in put_tracepoints_path()
388 tps = tps->next; in put_tracepoints_path()
486 struct tracepoint_path *tps; in tracing_data_get() local
492 tps = get_tracepoints_path(pattrs); in tracing_data_get()
493 if (!tps) in tracing_data_get()
532 err = record_ftrace_files(tps); in tracing_data_get()
535 err = record_event_files(tps); in tracing_data_get()
557 put_tracepoints_path(tps); in tracing_data_get()