0faa3f6b32
Resolves: rhbz#1969277 Signed-off-by: Qiao Zhao <qzhao@redhat.com>
18 lines
315 B
Bash
18 lines
315 B
Bash
#!/usr/bin/bash
|
|
|
|
# make sure we have trace-cmd installed
|
|
if rpm -q --quiet trace-cmd; then
|
|
:
|
|
else
|
|
sudo dnf install -y trace-cmd
|
|
if [[ $? != 0 ]]; then
|
|
echo "install of trace-cmd failed!"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
# run a simple command to list available tracers
|
|
trace-cmd list || exit 2
|
|
|
|
exit 0
|