summaryrefslogtreecommitdiff
path: root/tests/debugfs_emon_crash
blob: 809bfab3a88389e29829ab4f9268f92ec4facc94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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 0