xref: /kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/bin/kcsan-collapse.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/bin/
18c2ecf20Sopenharmony_ci#!/bin/bash
28c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0+
38c2ecf20Sopenharmony_ci#
48c2ecf20Sopenharmony_ci# If this was a KCSAN run, collapse the reports in the various console.log
58c2ecf20Sopenharmony_ci# files onto pairs of functions.
68c2ecf20Sopenharmony_ci#
78c2ecf20Sopenharmony_ci# Usage: kcsan-collapse.sh resultsdir
88c2ecf20Sopenharmony_ci#
98c2ecf20Sopenharmony_ci# Copyright (C) 2020 Facebook, Inc.
108c2ecf20Sopenharmony_ci#
118c2ecf20Sopenharmony_ci# Authors: Paul E. McKenney <paulmck@kernel.org>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciif test -z "$TORTURE_KCONFIG_KCSAN_ARG"
148c2ecf20Sopenharmony_cithen
158c2ecf20Sopenharmony_ci	exit 0
168c2ecf20Sopenharmony_cifi
178c2ecf20Sopenharmony_cicat $1/*/console.log |
188c2ecf20Sopenharmony_ci	grep "BUG: KCSAN: " |
198c2ecf20Sopenharmony_ci	sed -e 's/^\[[^]]*] //' |
208c2ecf20Sopenharmony_ci	sort |
218c2ecf20Sopenharmony_ci	uniq -c |
228c2ecf20Sopenharmony_ci	sort -k1nr > $1/kcsan.sum
23

Indexes created Thu Nov 07 10:32:03 CST 2024