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

profile.tc (468B)


      1#!/bin/sh
      2# SPDX-License-Identifier: GPL-2.0
      3# description: Kprobe profile
      4# requires: kprobe_events
      5
      6! grep -q 'myevent' kprobe_profile
      7echo "p:myevent $FUNCTION_FORK" > kprobe_events
      8grep -q 'myevent[[:space:]]*0[[:space:]]*0$' kprobe_profile
      9echo 1 > events/kprobes/myevent/enable
     10( echo "forked" )
     11grep -q 'myevent[[:space:]]*[[:digit:]]*[[:space:]]*0$' kprobe_profile
     12echo 0 > events/kprobes/myevent/enable
     13echo > kprobe_events
     14! grep -q 'myevent' kprobe_profile