File Index
Files and directories
Sign in
FILE

kprobe_non_uniq_symbol.tc

File preview with syntax highlighting.

linux-6.19.14/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc PLAIN TEXT
 1#!/bin/sh
 2# SPDX-License-Identifier: GPL-2.0
 3# description: Test failure of registering kprobe on non unique symbol
 4# requires: kprobe_events
 5
 6SYMBOL='name_show'
 7
 8# We skip this test on kernel where SYMBOL is unique or does not exist.
 9if [ "$(grep -c -E "[[:alnum:]]+ t ${SYMBOL}" /proc/kallsyms)" -le '1' ]; then
10	exit_unsupported
11fi
12
13! echo "p:test_non_unique ${SYMBOL}" > kprobe_events
~/ Read-only file preview.