File Index
Files and directories
Sign in
FILE

attr.sh

File preview with syntax highlighting.

linux-6.19.14/tools/perf/tests/shell/attr.sh BASH
 1#!/bin/bash
 2# Perf attribute expectations test
 3# SPDX-License-Identifier: GPL-2.0
 4
 5err=0
 6
 7cleanup() {
 8  trap - EXIT TERM INT
 9}
10
11trap_cleanup() {
12  echo "Unexpected signal in ${FUNCNAME[1]}"
13  cleanup
14  exit 1
15}
16trap trap_cleanup EXIT TERM INT
17
18shelldir=$(dirname "$0")
19perf_path=$(which perf)
20python "${shelldir}"/lib/attr.py -d "${shelldir}"/attr -v -p "$perf_path"
21cleanup
22exit $err
~/ Read-only file preview.