diff options
| author | Daniel Borkmann <[email protected]> | 2020-01-10 16:20:07 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-01-10 16:20:19 +0000 |
| commit | 7a2d070f91db83a1e08bf212e8f6a34d852efb7f (patch) | |
| tree | 29f80d80eff2526f251e5def34a8b7eb870b0504 /tools/testing/selftests/bpf/progs/pyperf_global.c | |
| parent | Merge branch 'selftest-makefile-cleanup' (diff) | |
| parent | selftests/bpf: Add unit tests for global functions (diff) | |
| download | kernel-7a2d070f91db83a1e08bf212e8f6a34d852efb7f.tar.gz kernel-7a2d070f91db83a1e08bf212e8f6a34d852efb7f.zip | |
Merge branch 'bpf-global-funcs'
Alexei Starovoitov says:
====================
Introduce static vs global functions and function by function verification.
This is another step toward dynamic re-linking (or replacement) of global
functions. See patch 2 for details.
v2->v3:
- cleaned up a check spotted by Song.
- rebased and dropped patch 2 that was trying to improve BTF based on ELF.
- added one more unit test for scalar return value from global func.
v1->v2:
- addressed review comments from Song, Andrii, Yonghong
- fixed memory leak in error path
- added modified ctx check
- added more tests in patch 7
====================
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/pyperf_global.c')
| -rw-r--r-- | tools/testing/selftests/bpf/progs/pyperf_global.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/progs/pyperf_global.c b/tools/testing/selftests/bpf/progs/pyperf_global.c new file mode 100644 index 000000000000..079e78a7562b --- /dev/null +++ b/tools/testing/selftests/bpf/progs/pyperf_global.c @@ -0,0 +1,5 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (c) 2020 Facebook */ +#define STACK_MAX_LEN 50 +#define GLOBAL_FUNC +#include "pyperf.h" |
