- 29 Jan, 2016 6 commits
-
-
Brendan Gregg authored
-
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 2 commits
-
-
4ast authored
Close fd and unshare when public map is destructed
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 16 Jan, 2016 2 commits
-
-
4ast authored
stack walking scripts
-
Brendan Gregg authored
-
- 14 Jan, 2016 2 commits
-
-
Brenden Blanco authored
fix pep8 lint errors in the rest of the tools
-
Alexei Starovoitov authored
no functional changes Signed-off-by: Alexei Starovoitov <ast@fb.com>
-
- 10 Jan, 2016 1 commit
-
-
Brenden Blanco authored
fix pep8 lint errors in biolatency and biosnoop
-
- 09 Jan, 2016 1 commit
-
-
Alexei Starovoitov authored
Signed-off-by: Alexei Starovoitov <ast@fb.com>
-
- 08 Jan, 2016 3 commits
-
-
4ast authored
Add ability to export maps, enables cross-program sharing
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
Allow a program to export a map for other programs to use. This enables cross-program map sharing. parent program syntax: BPF_TABLE("array", int, int, shared, 10); BPF_TABLE_EXPORT(shared); child program syntax: BPF_TABLE("extern", int, int, shared, 10); Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 06 Jan, 2016 2 commits
-
-
4ast authored
Add ability to set custom cflags when loading programs
-
Brenden Blanco authored
Example: b = bcc.BPF("myprog.c", cflags=["-DMYCUSTOMFLAG1", ...]) Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 04 Jan, 2016 2 commits
-
-
4ast authored
Remove runtime dependency on gcc stdarg headers and make
-
Brenden Blanco authored
Remove the runtime dependency on gcc's stdarg.h. Do this by packaging the (non-GPL) version shipped with clang. This allows the bulk of kbuild_helper to be removed, at the expense of hardcoding the kernel include paths. If in the future the kernel make system changes again to require different -I paths, we'll have to think this through again. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 01 Jan, 2016 2 commits
-
-
Brenden Blanco authored
add new Arch packages, new TOC and spiffy up the formatting
-
troyengel authored
-