File Index
Files and directories
Sign in
FILE

probe_vfs_getname.sh

File preview with syntax highlighting.

linux-6.19.14/tools/perf/tests/shell/probe_vfs_getname.sh BASH
 1#!/bin/bash
 2# Add vfs_getname probe to get syscall args filenames (exclusive)
 3
 4# SPDX-License-Identifier: GPL-2.0
 5# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017
 6
 7# shellcheck source=lib/probe.sh
 8. "$(dirname $0)"/lib/probe.sh
 9
10skip_if_no_perf_probe || exit 2
11[ "$(id -u)" = 0 ] || exit 2
12
13# shellcheck source=lib/probe_vfs_getname.sh
14. "$(dirname $0)"/lib/probe_vfs_getname.sh
15
16add_probe_vfs_getname
17err=$?
18
19if [ $err -eq 1 ] ; then
20	skip_if_no_debuginfo
21	err=$?
22fi
23
24cleanup_probe_vfs_getname
25exit $err
~/ Read-only file preview.