diff options
author | Andrii Nakryiko <[email protected]> | 2021-03-24 10:29:41 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2021-03-26 01:17:04 +0100 |
commit | a46410d5e4975d701d526397156fa0815747dc2f (patch) | |
tree | e5be15e300a5a3a1a0bfaf183fc7b90896343219 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 5d9034938720a15fa0f62db3e195c0c473c72c1b (diff) |
libbpf: Constify few bpf_program getters
bpf_program__get_type() and bpf_program__get_expected_attach_type() shouldn't
modify given bpf_program, so mark input parameter as const struct bpf_program.
This eliminates unnecessary compilation warnings or explicit casts in user
programs.
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/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions