- 05 Feb, 2019 3 commits
-
-
Xiaozhou Liu authored
add/fix search examples/tools links in references_guide.md
-
Jerome Marchand authored
A few files that are obviously not executable have the exec bit set. Most those files were created with faulty mode to begin with, but src/cc/export/helpers.h and src/cc/frontends/clang/loader.cc have had their exec bit (unintendedly I assume) set by commit bfecc243 ("clang: loader: Allow user to override kernel version (#1895)").
-
yonghong-song authored
The previous sync had a bug in libbpf libbpf_print() function. This sync brought in the bug fix Signed-off-by: Yonghong Song <yhs@fb.com>
-
- 04 Feb, 2019 1 commit
-
-
yonghong-song authored
the libbpf is just sync'ed with latest bpf-next. Signed-off-by: Yonghong Song <yhs@fb.com>
-
- 03 Feb, 2019 6 commits
-
-
Teng Qin authored
examples/tracing: some minor fixes
-
Teng Qin authored
cachestat: bring back HITRATIO column
-
Xiaozhou Liu authored
docs: fix broken link of bpf_log2l()
-
Xiaozhou Liu authored
- chmod +x dddos.py mallocstacks.py stack_buildid_example.py - Handle Ctrl-C keyboard interrupt for dddos.py, disksnoop.py, hello_perf_output.py, stacksnoop.py and trace_perf_output.py
-
Andreas Stührk authored
In #2063, syscount's syscall mapping was moved into its own module. Unfortunately, that broke the "print list of recognized syscalls and exit" usage of syscount. Fix it by importing the syscall mapping from the new module.
-
Xiaozhou Liu authored
Add an example of linear histogram, which might be useful to newcomers. And also update the comments.
-
- 02 Feb, 2019 2 commits
-
-
Brendan Gregg authored
-
Teng Qin authored
Fix debuginfo search on Ubuntu
-
- 01 Feb, 2019 1 commit
-
-
Anton Blanchard authored
bcc on Ubuntu picks up the glibc binary instead of the debuginfo file because find_debug_via_debuglink() doesn't handle symbolic or hard links when checking if two paths point to the same file. Add a helper, same_file() which uses the device and inode to check if the two paths do point to the same file. Signed-off-by: Anton Blanchard <anton@ozlabs.org>
-
- 30 Jan, 2019 1 commit
-
-
Travis Davies authored
Sign-Off-By Travis Davies <trdavies@amazon.com>
-
- 29 Jan, 2019 1 commit
-
-
vijunag authored
Fix #2161 - bcc_bsymcache API returned absolute address instead of offset from start of the symbol
-
- 27 Jan, 2019 1 commit
-
-
Brendan Gregg authored
profile: exclude CPU idle stacks by default
-
- 24 Jan, 2019 2 commits
-
-
yonghong-song authored
Similar to runqlen.py, make proper adjustment for cfs_rq_partial structure so it can align with what the kernel expects. Signed-off-by: Yonghong Song <yhs@fb.com>
-
Kenny Yu authored
This renames the `deadlock_detector.py` tool to `deadlock.py` to make the name more diagram-friendly and to be consistent with the naming of the other tools.
-
- 23 Jan, 2019 3 commits
-
-
Prashant Bhole authored
Use libbpf api bpf_set_link_xdp_fd() to attach xdp program to an interface.
-
vijunag authored
New command line options have been added to tools/trace.py to support the new BUILD_ID stackmap. List of symbol files can be added to the script to resolve symbols from build id as reported by the kernel in the stack trace Updated man page and added an example usage
-
Teng Qin authored
profile.py: return kernel annotations for folded stacks
-
- 22 Jan, 2019 3 commits
-
-
Brendan Gregg authored
-
Prashant Bhole authored
Recently kernel libbpf was imported in bcc. It makes some of the libbcc code redundant. This patch modifies libbcc functions to use libbpf APIs.
-
Jugurtha BELKALEM authored
ddos_detector.py to monitor DDOS attacks
-
- 21 Jan, 2019 2 commits
-
-
Xiaozhou Liu authored
Address issue 2154. When a struct S is used as key to a BPF_HISTOGRAM, it is assumed that the second member of S holds the slot. But when S is converted to python from bpf C, a padding may be inserted as a second member. This breaks print_log2_hist(). root@debian:~/bcc/tools# ./softirqs.py -d Tracing soft irq event time... Hit Ctrl-C to end. ^C Traceback (most recent call last): File "./softirqs.py", line 144, in <module> dist.print_log2_hist(label, "softirq", section_print_fn=vec_to_name) File "/usr/local/lib/python2.7/dist-packages/bcc/table.py", line 326, in print_log2_hist vals[slot] = v.value TypeError: list indices must be integers, not str Fix it by skipping the possible padding. Future work would be fixing/working around in the library where the padding is introduced.
-
yonghong-song authored
use kernel libbpf in bcc
-
- 18 Jan, 2019 3 commits
-
-
Brendan Gregg authored
highlighting the <80 chars, and also adding a note about tool names.
-
Yonghong Song authored
This patch demonstrated how to use libbpf function calls. Specially, the bcc_map_create is changed to use libbpf functions bpf_create_map_name and bpf_create_map. Signed-off-by: Yonghong Song <yhs@fb.com>
-
Yonghong Song authored
The libbpf/src/*.c files are included in the build system, so those functions will be available for bcc internals to use them. There are two name conflicts, bpf_create_map and bpf_prog_load, between src/cc/libbpf.c and src/cc/libbpf/src/{bpf.c,libbpf.c}. To keep src/cc/libbpf intact, the following renaming happened in bcc repo: bpf_create_map => bcc_create_map bpf_prog_load => bcc_prog_load Signed-off-by: Yonghong Song <yhs@fb.com>
-
- 17 Jan, 2019 5 commits
-
-
Yonghong Song authored
The uapi header src/cc/libbpf/include/uapi/linux/bpf.h is used instead of the current way src/cc/compat/linux/bpf.h Signed-off-by: Yonghong Song <yhs@fb.com>
-
Yonghong Song authored
If the target directory src/cc/libbpf/ does not exist, the top level CMakeLists.txt is changed to fetch submodules with the following command git submodule update --init --recursive The dev/rpm build scripts are also changed to do git submodule update. Signed-off-by: Yonghong Song <yhs@fb.com>
-
Yonghong Song authored
The kernel libbpf library https://github.com/torvalds/linux/tree/master/tools/lib/bpf provides common functionality for handling bpf programs, maps, ELF parsing, probing, BTF manipulation, etc. The library has been recommended to the community as a common library for bpf/btf handling. A separate repository https://github.com/libbpf/libbpf has been created for this purpose. This patch brings in libbpf to bcc. The following command is executed to crate a libbpf submodule at src/cc/libbpf: git submodule add https://github.com/libbpf/libbpf.git src/cc/libbpf Signed-off-by: Yonghong Song <yhs@fb.com>
-
Sandipan Das authored
This fixes the format string used to parse the major and minor device fields in /proc/self/maps. These fields have hexadecimal values and hence cannot be parsed as unsigned integers. Fixes: 51480d05 ("implement free_bcc_memory() API (#2097)") Reported-by: Nageswara R Sastry rnsastry@linux.vnet.ibm.com Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
-
Teng Qin authored
Across the repo (see libbpf.h, api/BPF.h) we always use the custom header search include, to make it easier to work with different build environments.
-
- 16 Jan, 2019 5 commits
-
-
Teng Qin authored
Some users uses `BPFModule` directly instead of C++ / Python API, and they would like to have similar interface of free BCC `.text` memory
-
Teng Qin authored
Unify shebangs under `#!/usr/bin/python`
-
Alexey Ivanov authored
-
Alexey Ivanov authored
-
Alexey Ivanov authored
-
- 15 Jan, 2019 1 commit
-
-
Joel authored
* Mark unused parameters as unused In Android, we are building libbpf with -Wunused-parameter, mark the parameters in bpf_detach_tracepoint to prevent errors. Change-Id: I2d0011746af80898e55d456b973a95330ce6be71 Signed-off-by: Joel Fernandes <joel@joelfernandes.org> * Avoid void pointer arithmetic In Android, we build libbpf with -Wpointer-arith, this causes warnings as below. Avoid void pointer arithmetic to prevent the warning. external/bcc/src/cc/perf_reader.c:189:26: error: arithmetic on a pointer to void is a GNU extension [-Werror,-Wpointer-arith] memcpy(reader->buf + len, base, e->size - len); ~~~~~~~~~~~ ^ Change-Id: If06535459473c78799b38119786a91e74a208895 Signed-off-by: Joel Fernandes <joel@joelfernandes.org> * Cast correctly for unsigned long format specifier In Android, -Wformat gets passed to the compiler causing a warning. Fix it by casting. external/bcc/src/cc/libbpf.c:972:58: error: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned lo ng long') [-Werror,-Wformat] Change-Id: I5e70eeff983f20a0b921e81aee7ddbee6d7de2b3 Signed-off-by: Joel Fernandes <joel@joelfernandes.org>
-