/usr/bin/intel_gpu_abrt is in intel-gpu-tools 1.3-0ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #!/bin/sh
if [ -d /debug/dri ] ; then
debugfs_path=/debug_dri
fi
if [ -d /sys/kernel/debug/dri ] ; then
debugfs_path=/sys/kernel/debug/dri
fi
i915_debugfs=x
for dir in `ls $debugfs_path` ; do
if [ -f $debugfs_path/$dir/i915_error_state ] ; then
i915_debugfs=$debugfs_path/$dir
break
fi
done
if [ $i915_debugfs = "x" ] ; then
echo i915 debugfs path not found.
exit 1
fi
tmpdir=`mktemp -d`
tardir=$tmpdir/intel_gpu_abrt
mkdir $tardir
mkdir $tardir/debugfs
cp $i915_debugfs/* $tardir/debugfs
mkdir $tardir/mod_opts
cp /sys/module/i915/parameters/* $tardir/mod_opts
mkdir $tardir/X
cp /var/log/Xorg.*.log $tardir/X
cp /etc/X11/xorg.conf $tardir/X
dmesg > $tardir/dmesg
lspci -nn > $tardir/lspci
(cd $tmpdir; tar -c intel_gpu_abrt ) > intel_gpu_abrt.tar
rm $tmpdir -Rf
exit 0
|