cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

debugfs_empty_targets.sh (368B)


      1#!/bin/bash
      2# SPDX-License-Identifier: GPL-2.0
      3
      4source _debugfs_common.sh
      5
      6# Test empty targets case
      7# =======================
      8
      9orig_target_ids=$(cat "$DBGFS/target_ids")
     10echo "" > "$DBGFS/target_ids"
     11orig_monitor_on=$(cat "$DBGFS/monitor_on")
     12test_write_fail "$DBGFS/monitor_on" "on" "orig_monitor_on" "empty target ids"
     13echo "$orig_target_ids" > "$DBGFS/target_ids"