]> git.baikalelectronics.ru Git - kernel.git/commit
perf jvmti: Create libdir directory before installing libperf-jvmti.so
authorLaura Abbott <labbott@redhat.com>
Fri, 6 Jan 2017 22:18:08 +0000 (14:18 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 11 Jan 2017 19:48:00 +0000 (16:48 -0300)
commit3cabbdf982a43f2cf807e1c247bef0a2da1ae987
tree80bb3228a5d650d379227362109f247b9f4e73d5
parentdcf0b4e306a4314137cd6ccd0b448e8a659c4282
perf jvmti: Create libdir directory before installing libperf-jvmti.so

The install command for libperf-jvmti.so does not check if libdir exists
before installing. This means that when the install command is run:

install libperf-jvmti.so '/tmp/test_root/usr/lib64';

libperf-jvmti.so will get installed to /usr/lib64 as a file and break
further installation. Fix this by ensuring the directory gets created
first.

See https://bugzilla.redhat.com/show_bug.cgi?id=1410296

Signed-off-by: Laura Abbott <labbott@redhat.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Fixes: 3217bcc3f123 ("perf jvmti: Plug compilation into perf build")
Link: http://lkml.kernel.org/r/1483741088-13543-1-git-send-email-labbott@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.perf