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

kcsan-collapse.sh (484B)


      1#!/bin/bash
      2# SPDX-License-Identifier: GPL-2.0+
      3#
      4# If this was a KCSAN run, collapse the reports in the various console.log
      5# files onto pairs of functions.
      6#
      7# Usage: kcsan-collapse.sh resultsdir
      8#
      9# Copyright (C) 2020 Facebook, Inc.
     10#
     11# Authors: Paul E. McKenney <paulmck@kernel.org>
     12
     13if test -z "$TORTURE_KCONFIG_KCSAN_ARG"
     14then
     15	exit 0
     16fi
     17find $1 -name console.log -exec cat {} \; |
     18	grep "BUG: KCSAN: " |
     19	sed -e 's/^\[[^]]*] //' |
     20	sort |
     21	uniq -c |
     22	sort -k1nr > $1/kcsan.sum