Home | History | Annotate | Download | only in toolbox

Lines Matching full:line

77 static int read_line(char *line, size_t line_size)
81 fd = open(line, O_RDONLY);
84 len = read(fd, line, line_size - 1);
88 line[len] = '\0';
94 char line[1024];
106 sprintf(line, "/proc/%d/task/%d/schedstat", pid, tid);
108 sprintf(line, "/proc/%d/schedstat", pid);
109 if (read_line(line, sizeof(line)))
111 if(sscanf(line, "%llu %llu %u", &info->exec_time, &info->delay_time, &info->run_count) != 3)
121 sprintf(line, "/proc/%d/cmdline", pid);
122 if (read_line(line, sizeof(line)) == 0 && line[0]) {
123 name = line;
129 sprintf(line, "/proc/%d/task/%d/stat", pid, tid);
131 sprintf(line, "/proc/%d/stat", pid);
132 if (read_line(line, sizeof(line)))
134 name = strchr(line, '(');