- 12 Oct, 2015 2 commits
-
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
handle return value in kretprobe handler for tcpv4connect
-
- 08 Oct, 2015 1 commit
-
-
Brenden Blanco authored
Fix an uninitialized variable access in test_clang
-
- 07 Oct, 2015 2 commits
-
-
Yonghong Song authored
Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
Yonghong Song authored
Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
- 06 Oct, 2015 5 commits
-
-
4ast authored
Make KeyboardInterrupt catch more aggressive
-
Brenden Blanco authored
Fixes: #186 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Fixes for table indexing and clear()
-
Brenden Blanco authored
In the case that python process tries to clear() a table object while the bpf program is still running and doing lookup_or_init, the python clean() routine will race with the bpf program (and bpf will win in the case of frequent kprobe hits) causing a hang. Instead, first get the full list of keys and then delete them rather than rely on the default popitem implementation. Fixes: #233 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
In the case that 0-filled keys are valid in the table, the previous algorithm did not properly iterate. The API of the bpf_get_next_key routine is such that the iteration over a map should start with an invalid key. When a 0 key is valid, this causes iteration to start anywhere inside the hash table, skipping some entries. So, add logic to the Iter object to test if the init key is invalid. If otherwise, try a few alternatives until an invalid key is found. If none found, raise an exception. Also adds a test for indexing arrays from 0, which nows works with this too. Fixes: #260 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 01 Oct, 2015 2 commits
-
-
4ast authored
Don't treat fundamentally typed args as needing probe_read
-
Brenden Blanco authored
The rewriter was aggressively parsing PoD types as requiring probe_read and poisoning other decls when those arguments were used. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 29 Sep, 2015 2 commits
-
-
yonghong-song authored
Mask function calls from influencing probe_read
-
Brenden Blanco authored
Calls to functions were propagating the needs_probe state, causing map values to require a probe_read improperly. Although there may be a use case for this, generally it will not be needed and should be solved differently. Fixes: #256 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 28 Sep, 2015 3 commits
-
-
4ast authored
Add ability to consume perf events in python
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
This adds the ability to consume perf events in libbpf/python using the ring buffer. For now, this is the only way to get access to the function call graph. Only kernel functions are supported. It does this by introducing a new set of libbpf helper functions that can open the perf fd, mmap it, and poll over the events as they are submitted by the kernel. This allow for faster event processing than trace_printks, but has not been tested. The functionality is disabled by default, the user can enable it by passing a non-empty cb parameter into the BPF constructor. That cb function will be invoked for each event that is read from the buffer. Buffers are per-fd, so each event is distinct as well as separated from other processes that may be running simultaneously. The initial test case uses this functionality to build a histogram of events keyed by the callchain. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 27 Sep, 2015 1 commit
-
-
Brenden Blanco authored
tcpv4connect
-
- 26 Sep, 2015 1 commit
-
-
Brendan Gregg authored
-
- 25 Sep, 2015 14 commits
-
-
Brenden Blanco authored
Add custom formatter function to print_log2_hist
-
Brenden Blanco authored
Fixes: #251 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
begin using new histogram breakdowns feature
-
Brendan Gregg authored
-
Brendan Gregg authored
-
Brenden Blanco authored
use BPF_HISTOGRAM and num_open_kprobes
-
Brendan Gregg authored
-
Brendan Gregg authored
-
Brendan Gregg authored
-
Brendan Gregg authored
-
Brenden Blanco authored
Helper to get open k[ret]probes. Fixes #236
-
Suchakra Sharma authored
-
Suchakra Sharma authored
-
Suchakra Sharma authored
-
- 24 Sep, 2015 7 commits
-
-
Brenden Blanco authored
Add BPF_HISTOGRAM type and print support
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
This adds support for a specialized histogram type, which underneath maps to an array or a hash table, depending on key type. With no arguments, it takes on the type `u64 table[64];`. The other current supported key type is `struct { int32|int64 bucket; int32|int64 slot }`. To print these automatically, print_log2_hist is underneath split into two types of printouts, one which prints the single histogram, and another which prints a histogram for each unique `bucket` value. See test_histogram.py for examples. Fixes: #144 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
Allows things like: ```c int kprobe__foo(struct pt_regs *ctx, u64 *ptr) { bpf_trace_printk("%lx\n", *ptr); ``` Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
Initial implementation of P4->ebpf compiler.
-
Mihai Budiu authored
-
Brenden Blanco authored
Add contribution section
-