thesis/linux-6.8.1/tools/testing/selftests/damon/debugfs_rm_non_contexts.sh
2025-03-19 13:44:23 +01:00

19 lines
339 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
source _debugfs_common.sh
# Test putting non-ctx files/dirs to rm_contexts file
# ===================================================
dmesg -C
for file in "$DBGFS/"*
do
(echo "$(basename "$f")" > "$DBGFS/rm_contexts") &> /dev/null
if dmesg | grep -q BUG
then
dmesg
exit 1
fi
done