Lines Matching refs:tps
144 static bool name_in_tp_list(char *sys, struct tracepoint_path *tps)
146 while (tps) {
147 if (!strcmp(sys, tps->name))
149 tps = tps->next;
155 #define for_each_event_tps(dir, dent, tps) \
161 static int copy_event_system(const char *sys, struct tracepoint_path *tps)
177 for_each_event_tps(dir, dent, tps) {
178 if (!name_in_tp_list(dent->d_name, tps))
199 for_each_event_tps(dir, dent, tps) {
200 if (!name_in_tp_list(dent->d_name, tps))
224 static int record_ftrace_files(struct tracepoint_path *tps)
235 ret = copy_event_system(path, tps);
242 static bool system_in_tp_list(char *sys, struct tracepoint_path *tps)
244 while (tps) {
245 if (!strcmp(sys, tps->system))
247 tps = tps->next;
253 static int record_event_files(struct tracepoint_path *tps)
277 for_each_event_tps(dir, dent, tps) {
279 !system_in_tp_list(dent->d_name, tps))
292 for_each_event_tps(dir, dent, tps) {
294 !system_in_tp_list(dent->d_name, tps))
306 copy_event_system(sys, tps) < 0) {
392 put_tracepoints_path(struct tracepoint_path *tps)
394 while (tps) {
395 struct tracepoint_path *t = tps;
397 tps = tps->next;
595 struct tracepoint_path *tps;
601 tps = get_tracepoints_path(pattrs);
602 if (!tps)
643 err = record_ftrace_files(tps);
646 err = record_event_files(tps);
671 put_tracepoints_path(tps);