aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2014-11-03 20:14:29 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-11-05 08:14:07 -0500
commit714c9c4a98f722115e10d021ea80600f4427b71e (patch)
tree5426f20c150526ffac2b8e5b34460b958fe60834 /tools
parente92ce12ed6a46302f64269d2d406cf04525f0a8f (diff)
perf build-id: Rename dsos__write_buildid_table()
The dsos__write_buildid_table() is not use struct dso and it mostly uses perf_session struct. So rename it to perf_session__write_buildid_ table() so that it corresponds to other related functions such as perf_session__read_build_ids() and perf_session__cache_build_ids(). Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung.kim@lge.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1415063674-17206-4-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/header.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index 0ecf4a304cbc..be8d02eb97e9 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -297,10 +297,8 @@ static int machine__write_buildid_table(struct machine *machine, int fd)
297 return err; 297 return err;
298} 298}
299 299
300static int dsos__write_buildid_table(struct perf_header *header, int fd) 300static int perf_session__write_buildid_table(struct perf_session *session, int fd)
301{ 301{
302 struct perf_session *session = container_of(header,
303 struct perf_session, header);
304 struct rb_node *nd; 302 struct rb_node *nd;
305 int err = machine__write_buildid_table(&session->machines.host, fd); 303 int err = machine__write_buildid_table(&session->machines.host, fd);
306 304
@@ -523,7 +521,7 @@ static int write_build_id(int fd, struct perf_header *h,
523 if (!perf_session__read_build_ids(session, true)) 521 if (!perf_session__read_build_ids(session, true))
524 return -1; 522 return -1;
525 523
526 err = dsos__write_buildid_table(h, fd); 524 err = perf_session__write_buildid_table(session, fd);
527 if (err < 0) { 525 if (err < 0) {
528 pr_debug("failed to write buildid table\n"); 526 pr_debug("failed to write buildid table\n");
529 return err; 527 return err;