diff options
| author | KP Singh <[email protected]> | 2020-03-04 20:18:53 +0100 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-03-04 13:41:06 -0800 |
| commit | 3d08b6f29cf33aeaf301553d8d3805f0aa609df7 (patch) | |
| tree | 7e9836d1926fce0e65362a47474fed446ea75f8c /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | da00d2f117a08fbca262db5ea422c80a568b112b (diff) | |
bpf: Add selftests for BPF_MODIFY_RETURN
Test for two scenarios:
* When the fmod_ret program returns 0, the original function should
be called along with fentry and fexit programs.
* When the fmod_ret program returns a non-zero value, the original
function should not be called, no side effect should be observed and
fentry and fexit programs should be called.
The result from the kernel function call and whether a side-effect is
observed is returned via the retval attr of the BPF_PROG_TEST_RUN (bpf)
syscall.
Signed-off-by: KP Singh <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions