tools/perf/tests/shell/test_bpf_metadata.sh

Source file repositories/reference/linux-study-clean/tools/perf/tests/shell/test_bpf_metadata.sh

File Facts

System
Linux kernel
Corpus path
tools/perf/tests/shell/test_bpf_metadata.sh
Extension
.sh
Size
1591 bytes
Lines
77
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

if (header) { header = 0; entry = 1; }
		}
		$0 !~ /^ *entry/ {
			entry = 0;
		}
		/perf_version/ {
			if (entry) print $NF;
		}
	' | grep -qF "$VERS"
	then
		echo "Basic BPF metadata test [Failed invalid output]"
		err=1
		return
	fi
	echo "Basic BPF metadata test [Success]"
}

test_bpf_metadata

cleanup
exit $err

Annotation

Implementation Notes