Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323793
b: refs/heads/master
c: bfd14b9
h: refs/heads/master
i:
  323791: df73df1
v: v3
  • Loading branch information
David Ahern authored and Arnaldo Carvalho de Melo committed Sep 8, 2012
1 parent c0270b3 commit 1e62f6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 12ceaded6b276c13d905cf09f0c1a1322022ea58
refs/heads/master: bfd14b9a7231e7cf77520bca1848c40c6b6360ae
9 changes: 8 additions & 1 deletion trunk/tools/perf/util/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,14 +984,19 @@ int symbol__annotate_printf(struct symbol *sym, struct map *map, int evidx,
int context)
{
struct dso *dso = map->dso;
const char *filename = dso->long_name, *d_filename;
char *filename;
const char *d_filename;
struct annotation *notes = symbol__annotation(sym);
struct disasm_line *pos, *queue = NULL;
u64 start = map__rip_2objdump(map, sym->start);
int printed = 2, queue_len = 0;
int more = 0;
u64 len;

filename = strdup(dso->long_name);
if (!filename)
return -ENOMEM;

if (full_paths)
d_filename = filename;
else
Expand Down Expand Up @@ -1042,6 +1047,8 @@ int symbol__annotate_printf(struct symbol *sym, struct map *map, int evidx,
}
}

free(filename);

return more;
}

Expand Down

0 comments on commit 1e62f6a

Please sign in to comment.