test_run.c (c1ff181ffabc292abcd1832a1c83aac2bc499e71) | test_run.c (4656569643409568fa7c162614c17277abdf84de) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* Copyright (c) 2017 Facebook 3 */ 4#include <linux/bpf.h> 5#include <linux/btf.h> 6#include <linux/btf_ids.h> 7#include <linux/slab.h> 8#include <linux/init.h> --- 158 unchanged lines hidden (view full) --- 167 */ 168__diag_push(); 169__diag_ignore(GCC, 8, "-Wmissing-prototypes", 170 "Global functions as their definitions will be in vmlinux BTF"); 171int noinline bpf_fentry_test1(int a) 172{ 173 return a + 1; 174} | 1// SPDX-License-Identifier: GPL-2.0-only 2/* Copyright (c) 2017 Facebook 3 */ 4#include <linux/bpf.h> 5#include <linux/btf.h> 6#include <linux/btf_ids.h> 7#include <linux/slab.h> 8#include <linux/init.h> --- 158 unchanged lines hidden (view full) --- 167 */ 168__diag_push(); 169__diag_ignore(GCC, 8, "-Wmissing-prototypes", 170 "Global functions as their definitions will be in vmlinux BTF"); 171int noinline bpf_fentry_test1(int a) 172{ 173 return a + 1; 174} |
175EXPORT_SYMBOL_GPL(bpf_fentry_test1); 176ALLOW_ERROR_INJECTION(bpf_fentry_test1, ERRNO); |
|
175 176int noinline bpf_fentry_test2(int a, u64 b) 177{ 178 return a + b; 179} 180 181int noinline bpf_fentry_test3(char a, int b, u64 c) 182{ --- 1017 unchanged lines hidden --- | 177 178int noinline bpf_fentry_test2(int a, u64 b) 179{ 180 return a + b; 181} 182 183int noinline bpf_fentry_test3(char a, int b, u64 c) 184{ --- 1017 unchanged lines hidden --- |