cregit-Linux how code gets into the kernel

Release 4.10 tools/perf/tests/bpf-script-test-kbuild.c

Directory: tools/perf/tests
/*
 * bpf-script-test-kbuild.c
 * Test include from kernel header
 */
#ifndef LINUX_VERSION_CODE
# error Need LINUX_VERSION_CODE
# error Example: for 4.2 kernel, put 'clang-opt="-DLINUX_VERSION_CODE=0x40200" into llvm section of ~/.perfconfig'
#endif

#define SEC(NAME) __attribute__((section(NAME), used))

#include <uapi/linux/fs.h>
#include <uapi/asm/ptrace.h>

SEC("func=vfs_llseek")

int bpf_func__vfs_llseek(void *ctx) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
wang nanwang nan12100.00%1100.00%
Total12100.00%1100.00%

char _license[] SEC("license") = "GPL"; int _version SEC("version") = LINUX_VERSION_CODE;

Overall Contributors

PersonTokensPropCommitsCommitProp
wang nanwang nan60100.00%1100.00%
Total60100.00%1100.00%
Directory: tools/perf/tests
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.