xref: /kernel/linux/linux-6.6/tools/testing/selftests/damon/debugfs_empty_targets.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/testing/selftests/damon/
162306a36Sopenharmony_ci#!/bin/bash
262306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
362306a36Sopenharmony_ci
462306a36Sopenharmony_cisource _debugfs_common.sh
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci# Test empty targets case
762306a36Sopenharmony_ci# =======================
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciorig_target_ids=$(cat "$DBGFS/target_ids")
1062306a36Sopenharmony_ciecho "" > "$DBGFS/target_ids"
1162306a36Sopenharmony_ciorig_monitor_on=$(cat "$DBGFS/monitor_on")
1262306a36Sopenharmony_citest_write_fail "$DBGFS/monitor_on" "on" "orig_monitor_on" "empty target ids"
1362306a36Sopenharmony_ciecho "$orig_target_ids" > "$DBGFS/target_ids"
14

Indexes created Thu Nov 07 10:32:03 CST 2024