-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split bcc.table.BPFTable into multiple type-specific classes
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: Brenden Blanco <bblanco@plumgrid.com>
- Loading branch information
Brenden Blanco
committed
Feb 16, 2016
1 parent
134f653
commit 1217f01
Showing
2 changed files
with
182 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters