Linux Perf
llvm-src-kbuild.c File Reference
#include <tests/llvm.h>
Include dependency graph for llvm-src-kbuild.c:

Go to the source code of this file.

Variables

const char test_llvm__bpf_test_kbuild_prog []
 

Variable Documentation

◆ test_llvm__bpf_test_kbuild_prog

const char test_llvm__bpf_test_kbuild_prog[]
Initial value:
=
"/*\n"
" * bpf-script-test-kbuild.c\n"
" * Test include from kernel header\n"
" */\n"
"#ifndef LINUX_VERSION_CODE\n"
"# error Need LINUX_VERSION_CODE\n"
"# error Example: for 4.2 kernel, put 'clang-opt=\"-DLINUX_VERSION_CODE=0x40200\" into llvm section of ~/.perfconfig'\n"
"#endif\n"
"#define SEC(NAME) __attribute__((section(NAME), used))\n"
"\n"
"#include <uapi/linux/fs.h>\n"
"#include <uapi/asm/ptrace.h>\n"
"\n"
"SEC(\"func=vfs_llseek\")\n"
"int bpf_func__vfs_llseek(void *ctx)\n"
"{\n"
" return 0;\n"
"}\n"
"\n"
"char _license[] SEC(\"license\") = \"GPL\";\n"
"int _version SEC(\"version\") = LINUX_VERSION_CODE;\n"

Definition at line 2 of file llvm-src-kbuild.c.