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) {
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);
405 struct tracepoint_path *path = NULL;
443 path = zalloc(sizeof(*path));
444 if (!path)
446 if (asprintf(&path->system, "%.*s",
448 free(path);
451 if (asprintf(&path->name, "%.*s",
453 zfree(&path->system);
454 free(path);
457 return path;
471 struct tracepoint_path *path = tracepoint_id_to_path(config);
474 if (path && asprintf(&buf, "%s:%s", path->system, path->name) < 0)
477 put_tracepoints_path(path);
483 struct tracepoint_path *path = zalloc(sizeof(*path));
486 if (path == NULL || str == NULL) {
487 free(path);
491 path->system = strndup(name, str - name);
492 path->name = strdup(str+1);
494 if (path->system == NULL || path->name == NULL) {
495 zfree(&path->system);
496 zfree(&path->name);
497 zfree(&path);
500 return path;
506 struct tracepoint_path path, *ppath = &path;
531 put_tracepoints_path(path.next);
538 return nr_tracepoints > 0 ? path.next : NULL;