]> sourceware.org Git - systemtap.git/blame - run-stap.in
Update tty.stp tapset for Linux 6.1 and newer
[systemtap.git] / run-stap.in
CommitLineData
2f62657c
RM
1#!/bin/sh
2
3srcdir='@abs_top_srcdir@'
4builddir='@abs_top_builddir@'
5
6rundir="${0%/*}"
ff0f23d9 7[ "$rundir" = "$0" ] || builddir="$rundir"
2f62657c
RM
8
9# Absolutify the paths.
10case "$srcdir" in
11/*) ;;
12*) srcdir=`cd "$srcdir" && pwd` || exit ;;
13esac
14case "$builddir" in
15/*) ;;
16*) builddir=`cd "$builddir" && pwd` || exit ;;
17esac
18
19# Set all the variables to find the source and build trees.
20SYSTEMTAP_TAPSET="${srcdir}/tapset"
21SYSTEMTAP_RUNTIME="${srcdir}/runtime"
66c3c633 22SYSTEMTAP_STAPDYN="${builddir}/stapdyn/stapdyn"
02311ab4 23SYSTEMTAP_STAPRUN="${builddir}/staprun/run-staprun"
2466bf70 24export SYSTEMTAP_TAPSET SYSTEMTAP_RUNTIME SYSTEMTAP_STAPDYN SYSTEMTAP_STAPRUN
2f62657c 25
47088594
JS
26if [ -z "$DEBUG_STAP" ]; then
27 exec "${builddir}/stap" ${1+"$@"}
28else
4f581fcf 29 exec ${GDB:-gdb} --args "${builddir}/stap" ${1+"$@"}
47088594 30fi
This page took 0.167819 seconds and 6 git commands to generate.