Lines Matching defs:path
90 char *path = get_events_file("header_page");
94 if (!path) {
99 if (stat(path, &st) < 0) {
100 pr_debug("can't read '%s'", path);
109 if (record_file(path, 8) < 0) {
114 put_events_file(path);
116 path = get_events_file("header_event");
117 if (!path) {
123 if (stat(path, &st) < 0) {
124 pr_debug("can't read '%s'", path);
133 if (record_file(path, 8) < 0) {
140 put_events_file(path);
226 char *path;
229 path = get_events_file("ftrace");
230 if (!path) {
235 ret = copy_event_system(path, tps);
237 put_tracing_file(path);
257 char *path;
264 path = get_tracing_file("events");
265 if (!path) {
270 dir = opendir(path);
273 pr_debug("can't read directory '%s'", path);
297 if (asprintf(&sys, "%s/%s", path, dent->d_name) < 0) {
317 put_tracing_file(path);
329 * different path) couldn't be read.
337 char *path;
341 path = get_tracing_file("printk_formats");
342 if (!path) {
347 ret = stat(path, &st);
355 err = record_file(path, 4);
358 put_tracing_file(path);
365 char *path;
369 path = get_tracing_file("saved_cmdlines");
370 if (!path) {
375 ret = stat(path, &st);
383 err = record_file(path, 8);
386 put_tracing_file(path);
406 struct tracepoint_path path, *ppath = &path;
431 put_tracepoints_path(path.next);
438 return nr_tracepoints > 0 ? path.next : NULL;