- 04 Feb, 2016 4 commits
-
-
4ast authored
Reorder P4 struct key initializers and blocks
-
Brenden Blanco authored
The basic_routing.p4 program was failing verification due to missed map key initializers in some paths. Put the goto label at the head of the block and add a " = {}" for each key declaration inside the block. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
use __builtin_memcpy() instead of unrolled loop
-
Alexei Starovoitov authored
also remove tab and unused import Signed-off-by: Alexei Starovoitov <ast@fb.com>
-
- 31 Jan, 2016 2 commits
- 30 Jan, 2016 3 commits
-
-
4ast authored
offwaketime
-
Brendan Gregg authored
-
Brendan Gregg authored
-
- 29 Jan, 2016 13 commits
-
-
4ast authored
Update test_dump_func to be python3 compatible
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
gethostlatency
-
Brendan Gregg authored
-
Brendan Gregg authored
-
Brenden Blanco authored
bashreadline
-
Brendan Gregg authored
-
Brenden Blanco authored
more strlen examples
-
Brendan Gregg authored
-
4ast authored
Add uprobe strlen histogram example
-
Brenden Blanco authored
This example traces all calls to libc's strlen(). The program is attached as a retprobe, therefore giving access to the resulting string length. The value is kept in a log2 histogram that is printed to console once per second. Example: ``` $ sudo ./strlen_hist.py 22:12:51 strlen return: : count distribution 0 -> 1 : 2041 |**************** | 2 -> 3 : 1120 |******** | 4 -> 7 : 3300 |************************** | 8 -> 15 : 4995 |****************************************| 16 -> 31 : 2130 |***************** | 32 -> 63 : 562 |**** | ^C ``` Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Uprobe support
-
Brenden Blanco authored
Use the full path invocation of objdump in both places. Add a docstring for the variants of attach_retprobe. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 28 Jan, 2016 6 commits
-
-
Brenden Blanco authored
The calculation of function address in non-shared libraries was incorrect. Fix it. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
This adds a similar set of functions to kprobes for userspace probes. The calling convention is different, however, since the user must provide a library/binary name and function symbol or address. Add two simple test cases for both. I don't see an easy way in this api to add auto-loading support, as in kprobe functions that start with "kprobe__". Such niceties can come later. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
The base calling convention for uprobes is the same as kprobes, but just the path in debug/tracing/ is slightly different. Add a new API for this and slightly refactor the code. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
wakeuptime
-
Brendan Gregg authored
-
Brendan Gregg authored
-
- 27 Jan, 2016 4 commits
-
-
Brenden Blanco authored
Add decode() to ascii string in offcputime.py
-
Brenden Blanco authored
Fixes: #318 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Updates to use cmake GLOB and libbcc.so.0 in python init
-
Brenden Blanco authored
In order not to miss some files in the tools and examples source directories, use cmake file(GLOB) to collect relevant files. To ease the implementation, move all tools to be .py suffixed in the source, but sans-suffix in the installation (same as before) In addition, to prevent future API breakage confusion (though of course that may still happen), use CDLL("libbcc.so.0") in the bcc __init__.py. Fixes: #317 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 20 Jan, 2016 3 commits
-
-
Brenden Blanco authored
offcputime improvements
-
Brendan Gregg authored
-
Brendan Gregg authored
-
- 19 Jan, 2016 4 commits
-
-
Brendan Gregg authored
-
Brenden Blanco authored
stack walker typo and improvement
-
Brendan Gregg authored
-
Brendan Gregg authored
-
- 18 Jan, 2016 1 commit
-
-
4ast authored
Close fd and unshare when public map is destructed
-