Skip to content

Commit 1b54950

Browse files
Robert Richteracmel
authored andcommitted
perf tools: Moving code in some files
Needed for later changes. No modified functionality. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1323248577-11268-4-git-send-email-robert.richter@amd.com Signed-off-by: Robert Richter <robert.richter@amd.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 002c4fd commit 1b54950

2 files changed

Lines changed: 264 additions & 267 deletions

File tree

‎tools/perf/builtin-buildid-list.c‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,6 @@ static const struct option options[] = {
3939
OPT_END()
4040
};
4141

42-
static int perf_session__list_build_ids(void)
43-
{
44-
struct perf_session *session;
45-
46-
session = perf_session__new(input_name, O_RDONLY, force, false,
47-
&build_id__mark_dso_hit_ops);
48-
if (session == NULL)
49-
return -1;
50-
51-
if (with_hits)
52-
perf_session__process_events(session, &build_id__mark_dso_hit_ops);
53-
54-
perf_session__fprintf_dsos_buildid(session, stdout, with_hits);
55-
56-
perf_session__delete(session);
57-
return 0;
58-
}
59-
6042
static int sysfs__fprintf_build_id(FILE *fp)
6143
{
6244
u8 kallsyms_build_id[BUILD_ID_SIZE];
@@ -85,6 +67,24 @@ static int filename__fprintf_build_id(const char *name, FILE *fp)
8567
return fprintf(fp, "%s\n", sbuild_id);
8668
}
8769

70+
static int perf_session__list_build_ids(void)
71+
{
72+
struct perf_session *session;
73+
74+
session = perf_session__new(input_name, O_RDONLY, force, false,
75+
&build_id__mark_dso_hit_ops);
76+
if (session == NULL)
77+
return -1;
78+
79+
if (with_hits)
80+
perf_session__process_events(session, &build_id__mark_dso_hit_ops);
81+
82+
perf_session__fprintf_dsos_buildid(session, stdout, with_hits);
83+
84+
perf_session__delete(session);
85+
return 0;
86+
}
87+
8888
static int __cmd_buildid_list(void)
8989
{
9090
if (show_kernel)

0 commit comments

Comments
 (0)