Lines Matching refs:line

64 static int disasm_line__parse(char *line, const char **namep, char **rawp);
1174 static int disasm_line__parse(char *line, const char **namep, char **rawp)
1176 char tmp, *name = skip_spaces(line);
1208 char *line;
1218 al->line = strdup(args->line);
1227 zfree(&al->line);
1238 * Allocating the disasm annotation line data with
1261 if (dl->al.line == NULL)
1265 if (disasm_line__parse(dl->al.line, &dl->ins.name, &dl->ops.raw) < 0)
1274 zfree(&dl->al.line);
1462 color_fprintf(stdout, annotate__asm_color(br), "%s", dl->al.line);
1535 * Also color the filename and line if needed, with
1537 * twice for close colored addr with the same filename:line
1558 if (!*al->line)
1561 printf(" %*s: %-*d %s\n", width, " ", addr_fmt_width, al->line_nr, al->line);
1584 * means that it's not a disassembly line so should be treated differently.
1598 /* /filename:linenr ? Save line number and ignore. */
1620 args->line = parsed_line;
1671 if (!strstr(dl->al.line, " nop ") &&
1672 !strstr(dl->al.line, " nopl ") &&
1673 !strstr(dl->al.line, " nopw "))
1932 args->line = strdup(srcline);
1944 args->line = buf + prev_buf_size;
1979 args->line = strdup("to be implemented");
1986 zfree(&args->line);
1991 * Possibly create a new version of line with tabs expanded. Returns the
1992 * existing or new line, storage is updated if a new line is allocated. If
1995 static char *expand_tabs(char *line, char **storage, size_t *storage_len)
1999 size_t line_len = strlen(line);
2002 if (line[i] == '\t')
2006 return line;
2009 * Space for the line and '\0', less the leading and trailing
2026 if (line[i] == '\t') {
2028 memcpy(&new_line[dst], &line[src], len);
2040 memcpy(&new_line[dst], &line[src], len);
2065 char *line;
2165 line = NULL;
2173 if (getline(&line, &line_len, file) < 0 || !line)
2177 match = strstr(line, symfs_filename);
2181 expanded_line = strim(line);
2182 expanded_line = expand_tabs(expanded_line, &line, &line_len);
2187 * The source code line number (lineno) needs to be kept in
2197 free(line);
2486 struct annotation_line *line;
2488 list_for_each_entry_reverse(line, lines, node) {
2489 if (line->offset != -1)
2490 return scnprintf(bf, sizeof(bf), "%" PRIx64, start + line->offset);
2730 return fprintf(fp, "%s\n", dl->al.line);
2803 size_t line_len = strlen(al->line);
3164 if (show_title && !*al->line) {
3172 if (!*al->line)
3180 obj__printf(obj, "%-*s", width - printed - pcnt_width - cycles_width + 1, al->line);