Lines Matching refs: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) {
318 put_tracing_file(path);
330 * different path) couldn't be read.
338 char *path;
342 path = get_tracing_file("printk_formats");
343 if (!path) {
348 ret = stat(path, &st);
356 err = record_file(path, 4);
359 put_tracing_file(path);
366 char *path;
370 path = get_tracing_file("saved_cmdlines");
371 if (!path) {
376 ret = stat(path, &st);
384 err = record_file(path, 8);
387 put_tracing_file(path);
406 struct tracepoint_path *path = NULL;
444 path = zalloc(sizeof(*path));
445 if (!path)
447 if (asprintf(&path->system, "%.*s",
449 free(path);
452 if (asprintf(&path->name, "%.*s",
454 zfree(&path->system);
455 free(path);
458 return path;
472 struct tracepoint_path *path = tracepoint_id_to_path(config);
475 if (path && asprintf(&buf, "%s:%s", path->system, path->name) < 0)
478 put_tracepoints_path(path);
484 struct tracepoint_path *path = zalloc(sizeof(*path));
487 if (path == NULL || str == NULL) {
488 free(path);
492 path->system = strndup(name, str - name);
493 path->name = strdup(str+1);
495 if (path->system == NULL || path->name == NULL) {
496 zfree(&path->system);
497 zfree(&path->name);
498 zfree(&path);
501 return path;
507 struct tracepoint_path path, *ppath = &path;
532 put_tracepoints_path(path.next);
539 return nr_tracepoints > 0 ? path.next : NULL;