- 24 Aug, 2015 3 commits
-
-
Brenden Blanco authored
Add trace_readline_fields helper to parse the output of trace_pipe Add field parsing support to trace_print. Addresses #149. Fix typo in trace_open s/trace/tracefile/ Make nonblocking=False the default in trace_readline Use IOError vs BlockingIOError for greater compatibility (untested) Fixes: #149 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Fix map.clear() usage for array type maps
-
Brenden Blanco authored
Calling delete on an array type map entry does not have an effect. Instead, the entry needs to be zeroed out, since the array slot always exists. To avoid unnecessary calls to update(), only call update() when the map type is array-like. The type was not exposed to python up until now, so add it. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 22 Aug, 2015 2 commits
-
-
4ast authored
Add test case for clearing of maps from python
-
Brenden Blanco authored
Fixes: #142 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 21 Aug, 2015 2 commits
-
-
4ast authored
Add BPF python helpers for reading trace_pipe
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 20 Aug, 2015 5 commits
-
-
Brenden Blanco authored
more examples of b[] syntax, fix func arg passing
-
Brendan Gregg authored
-
Brendan Gregg authored
-
4ast authored
Add getitem api to BPF object to reference tables
-
Brenden Blanco authored
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>
-
- 19 Aug, 2015 3 commits
-
-
4ast authored
Change API of attach_kprobe to take a name argument
-
Brenden Blanco authored
Per feedback on the attach_kprobe api, change up the arguments to remove the load_func that typically preceeds the call. Instead, move this inside the attach_kprobe implementation. Also, this makes attach_kprobe need to be non-static. The same applies to attach_kretprobe. Old: fn = b.load_func("hello", BPF.KPROBE) BPF.attach_kprobe(fn, "sys_clone") New: b.attach_kprobe(event="sys_clone", fn_name="hello") Note that the kwarg style is not required, but I fixed up the current usages to provide readability. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
some bcc examples and tools
-
- 18 Aug, 2015 6 commits
-
-
Brendan Gregg authored
-
Brendan Gregg authored
-
Brendan Gregg authored
-
Brendan Gregg authored
-
Brendan Gregg authored
-
Brendan Gregg authored
-
- 17 Aug, 2015 5 commits
-
-
4ast authored
Add format string argument to bpf-run
-
Brenden Blanco authored
Usage: bpf-run -f "time={3} output={5}" Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Add bpf-run command line tool
-
Brenden Blanco authored
Example usage: sudo bpf-run -p sys_clone -c 'bpf_trace_printk("Hello, World!\n");' -t Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
add dhcp support for tunnel-mesh
-
- 13 Aug, 2015 5 commits
-
-
Yonghong Song authored
Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
Brenden Blanco authored
add vlan_learning and distributed_bridge in libbcc package
-
Brenden Blanco authored
distributed_bridge: check ip address before validating traffic
-
Wei-Chun Chao authored
Signed-off-by: Wei-Chun Chao <weichunc@plumgrid.com>
-
Yonghong Song authored
Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
- 12 Aug, 2015 9 commits
-
-
Brenden Blanco authored
distributed_bridge: wait for ns comes up before validating traffic
-
Wei-Chun Chao authored
Sometimes it takes longer for ns to complete configuration. Signed-off-by: Wei-Chun Chao <weichunc@plumgrid.com>
-
Brenden Blanco authored
test_brb2: only account for IP and ARP packets
-
4ast authored
Changes to support map entry read/write in fuse
-
Wei-Chun Chao authored
Sometimes background noise fails the test Signed-off-by: Wei-Chun Chao <weichunc@plumgrid.com>
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
Expose an individual API of the what is done in table_update, that lets the caller use the module to parse keys for it. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
clean up potential conflict veth before creating new one in create_ns
-
Yonghong Song authored
Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-