summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/map.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-04-27 21:19:05 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-04-27 21:19:05 -0300
commit48ea8f5470aa6f35244d1b218316705ea88c0259 (patch)
treeb4e9a2d1cc227be96f2c3de815b5b2b4c12e3cb5 /tools/perf/util/map.h
parent23346f21b277e3aae5e9989e711a11cbe8133a45 (diff)
downloadlinux-stable-48ea8f5470aa6f35244d1b218316705ea88c0259.tar.gz
linux-stable-48ea8f5470aa6f35244d1b218316705ea88c0259.tar.bz2
linux-stable-48ea8f5470aa6f35244d1b218316705ea88c0259.zip
perf machine: Pass buffer size to machine__mmap_name
Don't blindly assume that the size of the buffer is enough, use snprintf. Cc: Avi Kivity <avi@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Zhang, Yanmin <yanmin_zhang@linux.intel.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/map.h')
-rw-r--r--tools/perf/util/map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/map.h b/tools/perf/util/map.h
index 4c1c2da704b2..6fabad1fd025 100644
--- a/tools/perf/util/map.h
+++ b/tools/perf/util/map.h
@@ -133,7 +133,7 @@ struct machine *machines__add(struct rb_root *self, pid_t pid,
struct machine *machines__find_host(struct rb_root *self);
struct machine *machines__find(struct rb_root *self, pid_t pid);
struct machine *machines__findnew(struct rb_root *self, pid_t pid);
-char *machine__mmap_name(struct machine *self, char *buff);
+char *machine__mmap_name(struct machine *self, char *bf, size_t size);
/*
* Default guest kernel is defined by parameter --guestkallsyms