Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182357
b: refs/heads/master
c: fed5af6
h: refs/heads/master
i:
  182355: e2fe7d9
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Jan 13, 2010
1 parent 5b94281 commit 8ea7f09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 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: 8d9e503928638fc95317be42c416fb7907322aff
refs/heads/master: fed5af61dc0d9402d26e7fb8fb9731a60a8e05ca
25 changes: 1 addition & 24 deletions trunk/tools/perf/builtin-buildid-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,6 @@ static const struct option options[] = {
OPT_END()
};

static int perf_file_section__process_buildids(struct perf_file_section *self,
int feat, int fd)
{
if (feat != HEADER_BUILD_ID)
return 0;

if (lseek(fd, self->offset, SEEK_SET) < 0) {
pr_warning("Failed to lseek to %Ld offset for buildids!\n",
self->offset);
return -1;
}

if (perf_header__read_build_ids(fd, self->offset, self->size)) {
pr_warning("Failed to read buildids!\n");
return -1;
}

return 0;
}

static int __cmd_buildid_list(void)
{
int err = -1;
Expand All @@ -60,10 +40,7 @@ static int __cmd_buildid_list(void)
if (session == NULL)
return -1;

err = perf_header__process_sections(&session->header, session->fd,
perf_file_section__process_buildids);
if (err >= 0)
dsos__fprintf_buildid(stdout);
dsos__fprintf_buildid(stdout);

perf_session__delete(session);
return err;
Expand Down

0 comments on commit 8ea7f09

Please sign in to comment.