• Home
  • Raw
  • Download

Lines Matching refs:path

86     char path[255];  in show_wchan()  local
92 sprintf(path, "/proc/%d/wchan", pid); in show_wchan()
93 if ((fd = open(path, O_RDONLY)) < 0) { in show_wchan()
94 printf("Failed to open '%s' (%s)\n", path, strerror(errno)); in show_wchan()
99 printf("Failed to read '%s' (%s)\n", path, strerror(errno)); in show_wchan()
145 int dump_file(const char *title, const char* path) { in dump_file() argument
147 int fd = open(path, O_RDONLY); in dump_file()
150 if (title) printf("------ %s (%s) ------\n", title, path); in dump_file()
151 printf("*** %s: %s\n", path, strerror(err)); in dump_file()
156 if (title) printf("------ %s (%s", title, path); in dump_file()
160 if (memcmp(path, "/proc/", 6) && memcmp(path, "/sys/", 5) && !fstat(fd, &st)) { in dump_file()
301 pid_t redirect_to_file(FILE *redirect, char *path, int gzip_level) { in redirect_to_file() argument
302 char *chp = path; in redirect_to_file()
313 mkdir(path, 0775); /* drwxrwxr-x */ in redirect_to_file()
318 int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in redirect_to_file()
320 fprintf(stderr, "%s: %s\n", path, strerror(errno)); in redirect_to_file()
366 static bool should_dump_native_traces(const char* path) { in should_dump_native_traces() argument
368 if (!strcmp(*p, path)) { in should_dump_native_traces()
446 char path[PATH_MAX]; in dump_traces() local
448 snprintf(path, sizeof(path), "/proc/%d/exe", pid); in dump_traces()
449 ssize_t len = readlink(path, data, sizeof(data) - 1); in dump_traces()
457 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid); in dump_traces()
458 int fd = open(path, O_RDONLY); in dump_traces()
519 void play_sound(const char* path) { in play_sound() argument
520 run_command(NULL, 5, "/system/bin/stagefright", "-o", "-a", path, NULL); in play_sound()