- 29 Aug, 2015 2 commits
-
-
Brenden Blanco authored
Also, testing buildbot with this tiny change Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 27 Aug, 2015 1 commit
-
-
Brenden Blanco authored
Add gretap support for full mesh tunnel
-
- 26 Aug, 2015 9 commits
-
-
Wei-Chun Chao authored
Signed-off-by: Wei-Chun Chao <weichunc@plumgrid.com>
-
4ast authored
Add proper debian build support, rename libbcc.so
-
Brenden Blanco authored
improve examples using new features
-
Brendan Gregg authored
-
Brendan Gregg authored
-
Brenden Blanco authored
This adds support for properly tagging the build when cmake is run not in a git tree, which is the case when building from src-deb. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
The cmake based build system is nice, but not quite production ready. Move to the more painful but featureful debuild style. This is one step towards an upstreamable package. Rename libbpfprog (ugh) to libbcc. Split out python-bpf and libbcc-examples into separate packages that depend on libbcc. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Fix print() breakage in python 2.7 environments
-
Brenden Blanco authored
Fixes: #164 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 25 Aug, 2015 5 commits
-
-
4ast authored
Add debug flag to enable prints from kernel verifier
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
Add flag to BPF() to enable debug prints from the verifier. Use by passing 0x2 to debug= in the constructor. Add docstring for BPF constructor. Also, optimize bpf_prog_load so that by default the kernel is not asked to print the verbose output. The program will be "loaded" a second time to capture the verifier failure message. Fixes: #147 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Add regex support to attach_k[ret]probe
-
Brenden Blanco authored
Add new event_re parameter to kprobe functions. This searches through the list of functions/symbols in <tracefs>/available_filter_functions for all matching functions. Every one is attached. Add a test case for attach_k[ret]probe. Fixes: #141 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 24 Aug, 2015 6 commits
-
-
yonghong-song authored
examples: use IPDB `wait_ip()` feature
-
Peter V. Saveliev authored
-
4ast authored
Add field support to trace_print and friends
-
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 5 commits
-
-
Brendan Gregg authored
-
Brendan Gregg authored
-
Brendan Gregg authored
-
Brendan Gregg authored
-
Brendan Gregg authored
-