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

trace_printk.tc (775B)


      1#!/bin/sh
      2# SPDX-License-Identifier: GPL-2.0
      3# description: Test trace_printk from module
      4
      5rmmod trace-printk ||:
      6if ! modprobe trace-printk ; then
      7  echo "No trace-printk sample module - please make CONFIG_SAMPLE_TRACE_PRINTK=m"
      8  exit_unresolved;
      9fi
     10
     11echo "Waiting for irq work"
     12sleep 1
     13
     14grep -q ": This .* trace_bputs" trace
     15grep -q ": This .* trace_puts" trace
     16grep -q ": This .* trace_bprintk" trace
     17grep -q ": This .* trace_printk" trace
     18
     19grep -q ": (irq) .* trace_bputs" trace
     20grep -q ": (irq) .* trace_puts" trace
     21grep -q ": (irq) .* trace_bprintk" trace
     22grep -q ": (irq) .* trace_printk" trace
     23
     24grep -q "This is a %s that will use trace_bprintk" printk_formats
     25grep -q "(irq) This is a static string that will use trace_bputs" printk_formats
     26
     27rmmod trace-printk ||: