]> git.baikalelectronics.ru Git - kernel.git/commit
perf utils: Readlink /proc/self/exe to find the perf binary
authorTommi Rantala <tommi.t.rantala@nokia.com>
Wed, 22 Mar 2017 13:06:24 +0000 (15:06 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 27 Mar 2017 18:37:54 +0000 (15:37 -0300)
commit9296a6163a4c8d1426930b0b62201910cb07056f
tree7a66bdfb40a15766eaf910a66da46cd1e38c968f
parent7c5e5625b3914d8c6ddd876d8308c4d687998383
perf utils: Readlink /proc/self/exe to find the perf binary

Simplification: it is easier to open /proc/self/exe than /proc/$pid/exe.

Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20170322130624.21881-7-tommi.t.rantala@nokia.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/header.c