diff options
author | Grant Seltzer <[email protected]> | 2022-04-20 12:12:24 -0400 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2022-04-21 16:28:11 +0200 |
commit | 93442f132b94721c7143ace7f43e51a9025f46fd (patch) | |
tree | 5f59ffe1851a842f9906bc97a605a60f2e48a5f3 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | db69264f983a5890fe8ba20ed4c20dfd4b687615 (diff) |
libbpf: Add error returns to two API functions
This adds an error return to the following API functions:
- bpf_program__set_expected_attach_type()
- bpf_program__set_type()
In both cases, the error occurs when the BPF object has
already been loaded when the function is called. In this
case -EBUSY is returned.
Signed-off-by: Grant Seltzer <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions