diff options
| author | Toke Høiland-Jørgensen <[email protected]> | 2020-03-29 13:22:53 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-03-29 23:17:35 +0000 |
| commit | e5fb60ee4c958b92686830ecfaf5e60bbd139130 (patch) | |
| tree | d347b0b3979feee72d5b4a87edd55fb03a1fc0e8 /security/bpf/hooks.c | |
| parent | libbpf: Add setter for initial value for internal maps (diff) | |
| download | kernel-e5fb60ee4c958b92686830ecfaf5e60bbd139130.tar.gz kernel-e5fb60ee4c958b92686830ecfaf5e60bbd139130.zip | |
selftests: Add test for overriding global data value before load
This adds a test to exercise the new bpf_map__set_initial_value() function.
The test simply overrides the global data section with all zeroes, and
checks that the new value makes it into the kernel map on load.
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'security/bpf/hooks.c')
0 files changed, 0 insertions, 0 deletions
