Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277360
b: refs/heads/master
c: 1b54950
h: refs/heads/master
v: v3
  • Loading branch information
Robert Richter authored and Arnaldo Carvalho de Melo committed Dec 23, 2011
1 parent 25dd0ab commit 2012479
Show file tree
Hide file tree
Showing 3 changed files with 265 additions and 268 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: 002c4fd92d772becf8745b9cbcebe5c95fe6dad0
refs/heads/master: 1b5495043d5bc058def21f9b66fd8feaa794eb44
36 changes: 18 additions & 18 deletions trunk/tools/perf/builtin-buildid-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,6 @@ static const struct option options[] = {
OPT_END()
};

static int perf_session__list_build_ids(void)
{
struct perf_session *session;

session = perf_session__new(input_name, O_RDONLY, force, false,
&build_id__mark_dso_hit_ops);
if (session == NULL)
return -1;

if (with_hits)
perf_session__process_events(session, &build_id__mark_dso_hit_ops);

perf_session__fprintf_dsos_buildid(session, stdout, with_hits);

perf_session__delete(session);
return 0;
}

static int sysfs__fprintf_build_id(FILE *fp)
{
u8 kallsyms_build_id[BUILD_ID_SIZE];
Expand Down Expand Up @@ -85,6 +67,24 @@ static int filename__fprintf_build_id(const char *name, FILE *fp)
return fprintf(fp, "%s\n", sbuild_id);
}

static int perf_session__list_build_ids(void)
{
struct perf_session *session;

session = perf_session__new(input_name, O_RDONLY, force, false,
&build_id__mark_dso_hit_ops);
if (session == NULL)
return -1;

if (with_hits)
perf_session__process_events(session, &build_id__mark_dso_hit_ops);

perf_session__fprintf_dsos_buildid(session, stdout, with_hits);

perf_session__delete(session);
return 0;
}

static int __cmd_buildid_list(void)
{
if (show_kernel)
Expand Down
Loading

0 comments on commit 2012479

Please sign in to comment.