• Brenden Blanco's avatar
    Support native integer indexing in table.Array type · f7767b59
    Brenden Blanco authored
    Improve the indexing in the Array class to be more like native python
    list/array types. No need to use `t[c_int(0)]`, instead `t[0]` is
    sufficient, for instance.
    
    Add tests for the above. Relies on a new bpf_module function for
    exposing the max_entries property of a table in order to range-check the
    indices.
    
    In one case, array was using a struct key type.
    Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
    f7767b59
test_trace4.py 1.22 KB