Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | # | |
3 | # Copyright (C) - 2015 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> | |
4 | # | |
5 | # SPDX-License-Identifier: GPL-2.0-only | |
6 | # | |
7 | ||
8 | # launch with: run-getcpu-override progname args | |
9 | DIR=$(dirname $0) | |
10 | DIR=$(readlink -f $DIR) | |
11 | ||
12 | if [ -x "$DIR/.libs/lttng-ust-getcpu-override-test.so" ]; then | |
13 | ret=`LTTNG_UST_GETCPU_PLUGIN="$DIR/.libs/lttng-ust-getcpu-override-test.so" $@` | |
14 | exit $ret | |
15 | else | |
16 | echo "Getcpu-override missing shared object" | |
17 | exit $1 | |
18 | fi |