tools/testing/selftests/net/test_bpf.sh

Source file repositories/reference/linux-study-clean/tools/testing/selftests/net/test_bpf.sh

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/net/test_bpf.sh
Extension
.sh
Size
225 bytes
Lines
12
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: tools
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Runs bpf test using test_bpf kernel module

if /sbin/modprobe -q test_bpf ; then
	/sbin/modprobe -q -r test_bpf;
	echo "test_bpf: ok";
else
	echo "test_bpf: [FAIL]";
	exit 1;
fi

Annotation

Implementation Notes