An error occurred fetching the project authors.
- 16 Jan, 2019 1 commit
-
-
Alexey Ivanov authored
-
- 10 May, 2018 1 commit
-
-
Javier Honduvilla Coto authored
and add `from __future__ import print_function` where needed for Python3 print semantics in Python2
-
- 24 Apr, 2018 1 commit
-
-
Yonghong Song authored
As described in issue #1695, on 4.17 for syscalls on x86, both sys_<fnname> and SyS_<fnname> are gone, the replacements are __ia32_sys_sync and __x64_sys_sync. The commit in Linus tree: https://github.com/torvalds/linux/commit/d5a00528b58cdb2c71206e18bd021e34c4eab878 This patch introduced two APIs for python BPF object. The API get_syscall_prefix() returns the prefix "sys_"/"__x64_sys_". The API get_syscall_fnname(name) returns kernel function name for the syscall, e.g., on x64, get_syscall_fnname("clone") will return "sys_clone" if kernel has it, otherwise, "__x64_sys_clone". get_syscall_prefix() is mostly useful for the regex func specifier of attach_kprobe(). This patch only fixed the code using python API on examples and tests directory. TOTO: python on tools directory, C++ and lua Signed-off-by: Yonghong Song <yhs@fb.com>
-
- 04 Nov, 2015 1 commit
-
-
Brenden Blanco authored
Examples directory has been growing, so add a bit of organization. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 07 Sep, 2015 1 commit
-
-
Brendan Gregg authored
-
- 03 Sep, 2015 1 commit
-
-
Brenden Blanco authored
* Rename python module to bcc * Rename python-bpf (deb,rpm) package to python-bcc * Pending this change, I will likely re-tag 0.1.6, and upload the bcc package to pypi.python.org Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 24 Aug, 2015 1 commit
-
-
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>
-
- 21 Aug, 2015 1 commit
-
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 19 Aug, 2015 1 commit
-
-
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>
-
- 18 Jun, 2015 1 commit
-
-
Brenden Blanco authored
* Use ifindex instead of src_mac to program egress table * Remove the static arp programming * Get the example to work in python2 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 17 Jun, 2015 1 commit
-
-
Brenden Blanco authored
* Addresses issue #61 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 11 Jun, 2015 2 commits
-
-
Brenden Blanco authored
* Add a BFrontentAction to recognize any external linkage function as being available for export, and internally set the section attribute. * Change bpf helpers to be static inline Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
* Add bpf_detach_kprobe helper to libbpf * Automatically invoke detach at python program exit * Add "uapi/" to one include in helpers.h Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 10 Jun, 2015 1 commit
-
-
Brenden Blanco authored
* Add/document cmake variables that control various installation path options. See README.md for examples. * Updated README a bit * Hide helpers.h from include requirements * Install things to real paths in a proper way. Header files will go into <prefix>/share/bcc/include. * Move the kickstart script readme to its own directory. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 05 Jun, 2015 1 commit
-
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-