]> Git Repo - J-linux.git/blob - tools/perf/tests/shell/attr.sh
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / tools / perf / tests / shell / attr.sh
1 #!/bin/bash
2 # Perf attribute expectations test
3 # SPDX-License-Identifier: GPL-2.0
4
5 err=0
6
7 cleanup() {
8   trap - EXIT TERM INT
9 }
10
11 trap_cleanup() {
12   echo "Unexpected signal in ${FUNCNAME[1]}"
13   cleanup
14   exit 1
15 }
16 trap trap_cleanup EXIT TERM INT
17
18 shelldir=$(dirname "$0")
19 perf_path=$(which perf)
20 python "${shelldir}"/lib/attr.py -d "${shelldir}"/attr -v -p "$perf_path"
21 cleanup
22 exit $err
This page took 0.027531 seconds and 4 git commands to generate.