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

wakeup.tc (429B)


      1#!/bin/sh
      2# SPDX-License-Identifier: GPL-2.0
      3# description: Test wakeup tracer
      4# requires: wakeup:tracer
      5
      6if ! which chrt ; then
      7  echo "chrt is not found. This test requires nice command."
      8  exit_unresolved
      9fi
     10
     11echo wakeup > current_tracer
     12echo 1 > tracing_on
     13echo 0 > tracing_max_latency
     14
     15: "Wakeup higher priority task"
     16chrt -f 5 sleep 1
     17
     18echo 0 > tracing_on
     19grep '+ \[[[:digit:]]*\]' trace
     20grep '==> \[[[:digit:]]*\]' trace
     21