- 23 Jun, 2016 1 commit
-
-
Ivan Babrou authored
-
- 22 Jun, 2016 1 commit
-
-
Brendan Gregg authored
* kernel version guide * update
-
- 21 Jun, 2016 2 commits
-
-
4ast authored
Fix nits for /tmp/perf-pid.map support
-
Mark Drayton authored
-
- 20 Jun, 2016 1 commit
-
-
4ast authored
Add support for reading symbols from /tmp/perf-pid.map
-
- 15 Jun, 2016 6 commits
-
-
Brendan Gregg authored
fix install instruction to mention llvm >= 3.7.1
-
Brendan Gregg authored
-
Alexei Starovoitov authored
Signed-off-by: Alexei Starovoitov <ast@fb.com>
-
Mark Drayton authored
This adds basic support for /tmp/perf-pid.map. To cope with processes in containers, it supports: * mapping from BCC's PID namespace to the target process's PID namespace using /proc/pid/status * resolving a target process's root filesystem using /proc/pid/root
-
4ast authored
Check for NULL result from bpf_attach_kprobe
-
Brenden Blanco authored
The check for NULL in the return value from C functions was comparing to None incorrectly, causing an error check to pass improperly. Simply check the truthiness of the return instead seems to be more resilient. Add a test as well. Fixes: #568 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 13 Jun, 2016 3 commits
-
-
Brenden Blanco authored
libbpf.c: Prepend BPF syscall error to log_bug when debug is enabled.
-
Quentin Monnet authored
When BPF syscall fails and DEBUG_FLAG has been provided to a Python caller script, the BPF error string would be printed only if log_buf had not been filled by the kernel. This commit removes this requirement, printing the error string even if log_buf is not empty. Signed-off-by: Quentin Monnet <quentin.monnet@6wind.com>
-
Quentin Monnet authored
Commit 759029fe provided an option to store the output from BPF syscall into a buffer (and not to print it systematically to standard output) on program load in libbpf.c. But doing so, it only stores the content of attr.log_buf, while the error string--resulting from a failed BPF syscall--is no more displayed when the DEBUG_BPF flag is used in the Python script responsible for converting and injecting the code. This commit proposes a fix for this bug by printing the error message (associated to the return value from the syscall) from the Python caller, when all the following conditions are met: - the syscall fails, - the DEBUG_BPF flag has been provided, and - log_buf is empty (has not been filled by kernel). Note: when DEBUG_BPF is not provided, the error string is printed in the C wrapper in libbpf.c (bpf_prog_load) anyway. Fixes: 759029fe ("Add option for custom log string to bpf_prog_load") Signed-off-by: Quentin Monnet <quentin.monnet@6wind.com>
-
- 08 Jun, 2016 1 commit
-
-
Brendan Gregg authored
Change kernel/user stacks order
-
- 07 Jun, 2016 4 commits
-
-
Evgeny Vereshchagin authored
Closes #559
-
Evgeny Vereshchagin authored
see #559
-
Brendan Gregg authored
offcputime -f: don't miss backtrace bounds
-
Evgeny Vereshchagin authored
See #559
-
- 06 Jun, 2016 3 commits
-
-
Brendan Gregg authored
Update manpage for offcputime
-
Brendan Gregg authored
Fix tools[/old]/offcputime -p PID
-
Evgeny Vereshchagin authored
Closes #558
-
- 03 Jun, 2016 2 commits
-
-
Evgeny Vereshchagin authored
We should extract pid before THREAD_FILTER
-
4ast authored
execsnoop: use BPF_PERF_OUTPUT, add PPID
-
- 02 Jun, 2016 2 commits
-
-
Mark Drayton authored
-
Mark Drayton authored
-
- 01 Jun, 2016 2 commits
-
-
Brenden Blanco authored
set use_errno to True for libbcc.so
-
Brenden Blanco authored
Add user space stack traces to offcputime
-
- 29 May, 2016 1 commit
-
-
Jincheng Miao authored
Currently, errno could not be accessed by libbcc.py, like: ``` binding socket to 'eth0' cannot create raw socket: Operation not permitted Traceback (most recent call last): File "/home/ryan/Software/bcc/examples/networking/http_filter/http-parse-simple.py", line 73, in <module> BPF.attach_raw_socket(function_http_filter, interface) File "/usr/lib/python2.7/site-packages/bcc/__init__.py", line 330, in attach_raw_socket raise Exception("Failed to open raw device %s: %s" % (dev, errstr)) Exception: Failed to open raw device eth0: Success ``` The exception prints the errno as `Success`, instead of `EPERM`. This patch would fix this problem. Signed-off-by: Jincheng Miao <jincheng.miao@gmail.com>
-
- 27 May, 2016 1 commit
-
-
Brenden Blanco authored
Install tools/old
-
- 26 May, 2016 2 commits
-
-
Evgeny Vereshchagin authored
-
Evgeny Vereshchagin authored
-
- 24 May, 2016 6 commits
-
-
4ast authored
lua: Allow LuaJIT parameterized types in `open_perf_buffer`
-
Vicent Marti authored
-
4ast authored
Use BPF_PERF_OUTPUT for fileslower and stacksnoop
-
Mark Drayton authored
-
Andrew Birchall authored
-
Andrew Birchall authored
Summary: * generalize `KernelSymbolCache` into `SymbolCache` which supports user/kernel space symbols * create `BPF.sym()` for resolving user/kernel space symbols * `_ksym_cache` => `_sym_caches` and create `BPF._sym_cache()` to leverage the symbol caches * update `tools/offcputime.py` to print user space stack traces Test Plan: ``` dev[bcc](abirchall_next): ~/bcc_run_tool.sh offcputime -U -k -f 1 ERROR: Displaying user stacks for kernel threads doesn't make sense. devbig680[bcc](abirchall_next): ~/bcc_run_tool.sh offcputime -K -f 1 | grep python2 | head -n 1 python2.7;system_call_fastpath;sys_futex;do_futex;futex_wait;futex_wait_queue_me;schedule 19 dev[bcc](abirchall_next): ~/bcc_run_tool.sh offcputime -U -f 1 | grep python2 | head -n 1 python2.7;clone;start_thread;t_bootstrap;PyEval_CallObjectWithKeywords;PyObject_Call;instancemethod_call;PyObject_Call;function_call;PyEval_EvalCodeEx;PyEval_EvalFrameEx;PyObject_Call;function_call;PyEval_EvalCodeEx;PyEval_EvalFrameEx;time_sleep;PyEval_RestoreThread 5 devbig680[bcc](abirchall_next): ~/bcc_run_tool.sh offcputime -f 1 | grep python2 | head -n 1 python2.7;system_call_fastpath;sys_futex;do_futex;futex_wait;futex_wait_queue_me;schedule;[unknown];__libc_start_main;Py_Main;RunModule;PyObject_Call;function_call;PyEval_EvalCodeEx;PyEval_EvalFrameEx;PyEval_EvalFrameEx;PyEval_EvalCodeEx;PyEval_EvalFrameEx;lock_PyThread_acquire_lock;PyEval_RestoreThread 39 ```
-
- 23 May, 2016 1 commit
-
-
Brenden Blanco authored
Updated monitor.c to take care of host byte order
-
- 20 May, 2016 1 commit
-
-
Brenden Blanco authored
Fix a few fd leaks
-