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

probe.sh (329B)


      1# SPDX-License-Identifier: GPL-2.0
      2# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017
      3
      4skip_if_no_perf_probe() {
      5	perf probe 2>&1 | grep -q 'is not a perf-command' && return 2
      6	return 0
      7}
      8
      9skip_if_no_perf_trace() {
     10	perf trace -h 2>&1 | grep -q -e 'is not a perf-command' -e 'trace command not available' && return 2
     11	return 0
     12}