1. 22 Feb, 2016 4 commits
  2. 21 Feb, 2016 2 commits
  3. 20 Feb, 2016 5 commits
  4. 19 Feb, 2016 15 commits
  5. 18 Feb, 2016 7 commits
  6. 17 Feb, 2016 5 commits
  7. 16 Feb, 2016 2 commits
    • 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
    • Brenden Blanco's avatar
      Split bcc.table.BPFTable into multiple type-specific classes · 1217f018
      Brenden Blanco authored
      BPFTable contained all of the logic for multiple table types, which is
      incorrect since a bpf table has either hash or array behavior.
      Additionally, some methods on the classes aren't valid for some table
      types. Create HashTable, Array, ProgArray, and PerfEventArray classes to
      contain this behavior.
      
      In future, the new Array class and its children should behave more like
      an array than a dict as it currently does.
      Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
      1217f018