]> git.baikalelectronics.ru Git - kernel.git/commit
perf machine: Pass buffer size to machine__mmap_name
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 28 Apr 2010 00:19:05 +0000 (21:19 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 28 Apr 2010 00:19:05 +0000 (21:19 -0300)
commite4a763a1bcc272c34cadd632fc715554db5a8d35
treeb4e9a2d1cc227be96f2c3de815b5b2b4c12e3cb5
parentd7f3f0e30253306b8956f8dbc388703aa2ca601f
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>
tools/perf/util/event.c
tools/perf/util/map.c
tools/perf/util/map.h
tools/perf/util/symbol.c