mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 16:36:14 +00:00
17 lines
367 B
Bash
Executable File
17 lines
367 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# This check if we can crash the kernel with segmentation-fault
|
|
# by reading /sys/kernel/debug/dri/0/i915_emon_status too quickly
|
|
#
|
|
|
|
SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
|
. $SOURCE_DIR/drm_lib.sh
|
|
|
|
for z in $(seq 1 1000); do
|
|
cat $i915_dfs_path/i915_emon_status > /dev/null 2&>1
|
|
done
|
|
|
|
# If we got here, we haven't crashed
|
|
|
|
exit $IGT_EXIT_SUCCESS
|