perf probe: Make a copy of exec path for passing to basename
authorDavid Ahern <dsahern@gmail.com>
Sat, 8 Sep 2012 15:06:51 +0000 (09:06 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 8 Sep 2012 20:15:04 +0000 (17:15 -0300)
commit1fb89448871500e5d5e7ad93d6dae68ee4fa464a
tree3092d01f4007951b9776379695b6917a8ccf4145
parentbfd14b9a7231e7cf77520bca1848c40c6b6360ae
perf probe: Make a copy of exec path for passing to basename

The basename function may modify the string passed to it, so the string
should not be marked const.

Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Pekka Enberg <penberg@kernel.org>
Cc: Irina Tirdea <irina.tirdea@gmail.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1347116812-93646-3-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-event.c