perf tools: Add memdup function
authorJiri Olsa <jolsa@redhat.com>
Mon, 10 Sep 2012 16:50:17 +0000 (18:50 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 11 Sep 2012 15:04:41 +0000 (12:04 -0300)
commitb232e0732b1d763834c3d5b098d25d59337ba075
tree8efb458e33231aa64779c0bfa5bf34dbf7f0d819
parentbdde37163e1fd474509aab90f5eaacee46100107
perf tools: Add memdup function

Adding memdup function to duplicate region of memory.

  void *memdup(const void *src, size_t len)

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1347295819-23177-3-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/include/linux/string.h
tools/perf/util/string.c