If the uprobes.ko module was built then it will be needed at staprun
time. Copy the module into the cache directory alongside compiled
scripts.
skip=1 ;;
-h|-V|-k|-F)
;;
+ -u)
+ echo -n "--save-uprobes " ;;
*)
echo -n $o" " ;;
esac
pushd "$tmpdir" &> /dev/null
logex $STAP -m "$1" -p4 -r $KRELEASE $opts "$f"
ret=$?
+ if [ $ret -eq 0 ]; then
+ if [ -f "uprobes/uprobes.ko" ]; then
+ logex mkdir -p "$CACHE_PATH/uprobes"
+ logex mv "uprobes/uprobes.ko" "$CACHE_PATH/uprobes/"
+ ret=$?
+ fi
+ fi
if [ $ret -eq 0 ]; then
$UNAME -a > "$1.opts"
echo $opts >> "$1.opts"