tools: Adopt memdup() from tools/perf, moving it to tools/lib/string.c
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 16 Nov 2015 14:36:29 +0000 (11:36 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 18 Nov 2015 20:51:02 +0000 (17:51 -0300)
commit4ddd32741da87657113d964588ce13ee64b34820
treec6ef98fadb95631fb72bf05c45a6f97b9ca92c04
parent9a13c6587e2f0d5e80ce02f5f9ef62788b48d163
tools: Adopt memdup() from tools/perf, moving it to tools/lib/string.c

That will contain more string functions with counterparts, sometimes
verbatim copies, in the kernel.

Acked-by: Wang Nan <wangnan0@huawei.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/n/tip-rah6g97kn21vfgmlramorz6o@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/linux/string.h [new file with mode: 0644]
tools/lib/string.c [new file with mode: 0644]
tools/perf/MANIFEST
tools/perf/util/Build
tools/perf/util/include/linux/string.h [deleted file]
tools/perf/util/string.c