tools/build/feature/test-llvm-perf.cpp

Source file repositories/reference/linux-study-clean/tools/build/feature/test-llvm-perf.cpp

File Facts

System
Linux kernel
Corpus path
tools/build/feature/test-llvm-perf.cpp
Extension
.cpp
Size
302 bytes
Lines
15
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

// SPDX-License-Identifier: GPL-2.0
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/raw_ostream.h"

#if LLVM_VERSION_MAJOR < 13
# error "Perf requires llvm-devel/llvm-dev version 13 or greater"
#endif

int main()
{
	llvm::errs() << "Hello World!\n";
	llvm::llvm_shutdown();
	return 0;
}

Annotation

Implementation Notes