File: run-getcpu-override

package info (click to toggle)
ltt-control 2.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,860 kB
  • sloc: cpp: 192,012; sh: 28,777; ansic: 10,960; python: 7,108; makefile: 3,520; java: 109; xml: 46
file content (18 lines) | stat: -rwxr-xr-x 446 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
#
# Copyright (C) - 2015 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
#
# SPDX-License-Identifier: GPL-2.0-only
#

# launch with: run-getcpu-override progname args
DIR=$(dirname $0)
DIR=$(readlink -f $DIR)

if [ -x "$DIR/.libs/lttng-ust-getcpu-override-test.so" ]; then
	ret=`LTTNG_UST_GETCPU_PLUGIN="$DIR/.libs/lttng-ust-getcpu-override-test.so" $@`
	exit $ret
else
	echo "Getcpu-override missing shared object"
	exit $1
fi