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

busy_check.tc (374B)


      1#!/bin/sh
      2# SPDX-License-Identifier: GPL-2.0
      3# description: Kprobe dynamic event - busy event check
      4# requires: kprobe_events
      5
      6echo p:myevent $FUNCTION_FORK > kprobe_events
      7test -d events/kprobes/myevent
      8echo 1 > events/kprobes/myevent/enable
      9echo > kprobe_events && exit_fail # this must fail
     10echo 0 > events/kprobes/myevent/enable
     11echo > kprobe_events # this must succeed