diff options
author | Yuval Lifshitz <yuvalif@yahoo.com> | 2019-08-21 08:27:42 +0200 |
---|---|---|
committer | Yuval Lifshitz <yuvalif@yahoo.com> | 2019-09-06 08:38:32 +0200 |
commit | b8b43fe59d7c03cea7347a8de3b7e7272cef0935 (patch) | |
tree | 2e414135b4acdca9cbea60e9011476d4a52a7c04 /examples | |
parent | Merge pull request #29973 from theanalyst/doc/releases/14.2.3 (diff) | |
download | ceph-b8b43fe59d7c03cea7347a8de3b7e7272cef0935.tar.xz ceph-b8b43fe59d7c03cea7347a8de3b7e7272cef0935.zip |
allow for multiple "build" dirs to exist
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/rbd-replay/trace | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/rbd-replay/trace b/examples/rbd-replay/trace index 43697b086a3..8739d46e174 100755 --- a/examples/rbd-replay/trace +++ b/examples/rbd-replay/trace @@ -5,6 +5,7 @@ lttng create -o traces librbd lttng enable-event -u 'librbd:*' lttng add-context -u -t pthread_id lttng start -LD_LIBRARY_PATH=../../build/lib qemu-system-i386 -m 1024 rbd:rbd/my-image:conf=../../src/ceph.conf +[ -z "$BUILD_DIR" ] && BUILD_DIR=build +LD_LIBRARY_PATH=../../${BUILD_DIR}/lib qemu-system-i386 -m 1024 rbd:rbd/my-image:conf=../../src/ceph.conf lttng stop lttng view > trace.log |