Lines Matching refs:line
73 static int disasm_line__parse(char *line, const char **namep, char **rawp);
1132 static int disasm_line__parse(char *line, const char **namep, char **rawp)
1134 char tmp, *name = skip_spaces(line);
1166 char *line;
1175 al->line = strdup(args->line);
1183 zfree(&al->line);
1194 * Allocating the disasm annotation line data with
1217 if (dl->al.line == NULL)
1221 if (disasm_line__parse(dl->al.line, &dl->ins.name, &dl->ops.raw) < 0)
1230 zfree(&dl->al.line);
1360 color_fprintf(stdout, annotate__asm_color(br), "%s", dl->al.line);
1413 * Also color the filename and line if needed, with
1415 * twice for close colored addr with the same filename:line
1458 if (!*al->line)
1461 printf(" %*s: %*s %s\n", width, " ", addr_fmt_width, " ", al->line);
1484 * means that it's not a disassembly line so should be treated differently.
1498 /* /filename:linenr ? Save line number and ignore. */
1518 args->line = parsed_line;
1569 if (!strstr(dl->al.line, " nop ") &&
1570 !strstr(dl->al.line, " nopl ") &&
1571 !strstr(dl->al.line, " nopw "))
1812 args->line = strdup(srcline);
1823 args->line = buf + prev_buf_size;
1857 args->line = strdup("to be implemented");
1863 free(args->line);
1868 * Possibly create a new version of line with tabs expanded. Returns the
1869 * existing or new line, storage is updated if a new line is allocated. If
1872 static char *expand_tabs(char *line, char **storage, size_t *storage_len)
1876 size_t line_len = strlen(line);
1879 if (line[i] == '\t')
1883 return line;
1886 * Space for the line and '\0', less the leading and trailing
1903 if (line[i] == '\t') {
1905 memcpy(&new_line[dst], &line[src], len);
1917 memcpy(&new_line[dst], &line[src], len);
1941 char *line;
2039 line = NULL;
2047 if (getline(&line, &line_len, file) < 0 || !line)
2051 match = strstr(line, symfs_filename);
2055 expanded_line = strim(line);
2056 expanded_line = expand_tabs(expanded_line, &line, &line_len);
2061 * The source code line number (lineno) needs to be kept in
2071 free(line);
2356 struct annotation_line *line;
2358 list_for_each_entry_reverse(line, lines, node) {
2359 if (line->offset != -1)
2360 return scnprintf(bf, sizeof(bf), "%" PRIx64, start + line->offset);
2600 return fprintf(fp, "%s\n", dl->al.line);
2673 size_t line_len = strlen(al->line);
3004 if (show_title && !*al->line) {
3012 if (!*al->line)
3020 obj__printf(obj, "%-*s", width - printed - pcnt_width - cycles_width + 1, al->line);