Add getitem api to BPF object to reference tables
authorBrenden Blanco <bblanco@plumgrid.com>
Thu, 20 Aug 2015 18:27:21 +0000 (11:27 -0700)
committerBrenden Blanco <bblanco@plumgrid.com>
Thu, 20 Aug 2015 18:27:21 +0000 (11:27 -0700)
commit01ef55fbc8166ffb826e1daa9db2c3972baceae9
tree5c8772ac20ffa7c996f06a3391db0d7d922fa095
parentef67bb2ac738529e57c6f9406cc2e29dd17ba6fa
Add getitem api to BPF object to reference tables

To simplify some common usage patterns, add a getitem api to the BPF
class. This wraps the get_table() api and allows the api user to skip
keeping their own get_table handle.

Fixes: #137
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
examples/vfsreadlat.py
src/python/bpf/__init__.py