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_rt.tc (433B)


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