Lines Matching refs:path
107 char *path; in record_header_files() local
111 path = get_tracing_file("events/header_page"); in record_header_files()
112 if (!path) { in record_header_files()
117 if (stat(path, &st) < 0) { in record_header_files()
118 pr_debug("can't read '%s'", path); in record_header_files()
127 if (record_file(path, 8) < 0) { in record_header_files()
132 put_tracing_file(path); in record_header_files()
134 path = get_tracing_file("events/header_event"); in record_header_files()
135 if (!path) { in record_header_files()
141 if (stat(path, &st) < 0) { in record_header_files()
142 pr_debug("can't read '%s'", path); in record_header_files()
151 if (record_file(path, 8) < 0) { in record_header_files()
158 put_tracing_file(path); in record_header_files()
242 char *path; in record_ftrace_files() local
245 path = get_tracing_file("events/ftrace"); in record_ftrace_files()
246 if (!path) { in record_ftrace_files()
251 ret = copy_event_system(path, tps); in record_ftrace_files()
253 put_tracing_file(path); in record_ftrace_files()
273 char *path; in record_event_files() local
280 path = get_tracing_file("events"); in record_event_files()
281 if (!path) { in record_event_files()
286 dir = opendir(path); in record_event_files()
289 pr_debug("can't read directory '%s'", path); in record_event_files()
317 if (asprintf(&sys, "%s/%s", path, dent->d_name) < 0) { in record_event_files()
337 put_tracing_file(path); in record_event_files()
357 char *path; in record_ftrace_printk() local
361 path = get_tracing_file("printk_formats"); in record_ftrace_printk()
362 if (!path) { in record_ftrace_printk()
367 ret = stat(path, &st); in record_ftrace_printk()
375 err = record_file(path, 4); in record_ftrace_printk()
378 put_tracing_file(path); in record_ftrace_printk()
398 struct tracepoint_path path, *ppath = &path; in get_tracepoints_path() local
423 put_tracepoints_path(&path); in get_tracepoints_path()
430 return nr_tracepoints > 0 ? path.next : NULL; in get_tracepoints_path()