aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-03-26Remove redundant NOTICE copied from LICENSE. am: 41f7d49d3bBob Badour
Change-Id: I538e732aa86aeaaef2192c6fcd547e2b2455af22
2020-03-25Remove redundant NOTICE copied from LICENSE.Bob Badour
Identified using the below shell script: $ find -H . -name LICENSE -type f -print0 | xargs -0 dirname \ | while read dir; do \ if [ -f "${dir}/NOTICE" ] \ && diff "${dir}/LICENSE" "${dir}/NOTICE" >/dev/null; then \ echo "${dir}/NOTICE"; \ fi; \ done Now that http://r.android.com/r/1235427 and http://r.android.com/r/1238719 are merged, LICENSE files copied into NOTICE files are no longer needed. Bug: 67772237 Bug: 68860345 Test: manually built and diffed before and after system image notices Change-Id: I2398ef2b0ebdd96ce5f32a1bdb1840b7beefb870
2020-03-18DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp@6304901 into stag-aosp-masterXin Li
Bug: 151763422 Change-Id: I46df053b0b56618f25941c5aa5ebfd9f2259456c
2020-02-07Check /sys/kernel/tracing for tracefs am: b96eb478b0 am: 0bdd6b3a22Automerger Merge Worker
Change-Id: I1e4906bd2fe10791e59fdb724bf626456b221318
2020-02-07Check /sys/kernel/tracing for tracefs am: b96eb478b0android-r-preview-4android-r-preview-3android-r-preview-2Automerger Merge Worker
Change-Id: If7957299e130fe0f1b50871d5c366e7d31dc877f
2020-02-05Check /sys/kernel/tracing for tracefsHridya Valsaraju
tracefs will be mounted at /sys/kernel/tracing when debugfs is not mounted. Bug: 134669095 Test: atest libbpf_load_test passes on cuttlefish with debugfs mounted/not mounted. Change-Id: I7f8a956253af38b794a1ae26ace789d0b2e2dacb
2019-07-10Merge "Upgrade bcc to v0.8.0" am: ee971d503a am: c910c866b3android-r-preview-1android-mainline-10.0.0_r8android-mainline-10.0.0_r6android10-mainline-resolv-releaseandroid10-mainline-networking-releaseHaibo Huang
am: 1d9c1f90bc Change-Id: I067074ec0b499d1349dabd106638c463ad0a6192
2019-07-10Merge "Upgrade bcc to v0.8.0" am: ee971d503aHaibo Huang
am: c910c866b3 Change-Id: If576adf10c76f471c2a3544aff765612d06d952a
2019-07-10Merge "Upgrade bcc to v0.8.0"ndk-sysroot-r21Haibo Huang
am: ee971d503a Change-Id: I4f90c3c308c857059fdf558ee1f22d31e7245e32
2019-07-10Merge "Upgrade bcc to v0.8.0"Haibo Huang
2019-07-10Upgrade bcc to v0.8.0Haibo Huang
Exempt-From-Owner-Approval: upgrade library Test: build Change-Id: Ice7e4c57e0431767f0aa1d31acc35a79ff7ed2cf
2019-04-03external/bcc - add more CLOEXEC am: 1b51f8b0e2 am: 49dc26a84eandroid-mainline-10.0.0_r9android-mainline-10.0.0_r7android-mainline-10.0.0_r5android-mainline-10.0.0_r4android-mainline-10.0.0_r10android-10.0.0_r9android-10.0.0_r8android-10.0.0_r7android-10.0.0_r45android-10.0.0_r44android-10.0.0_r43android-10.0.0_r42android-10.0.0_r41android-10.0.0_r40android-10.0.0_r39android-10.0.0_r38android-10.0.0_r37android-10.0.0_r36android-10.0.0_r35android-10.0.0_r34android-10.0.0_r33android-10.0.0_r32android-10.0.0_r31android-10.0.0_r30android-10.0.0_r29android-10.0.0_r28android-10.0.0_r27android-10.0.0_r26android-10.0.0_r25android-10.0.0_r24android-10.0.0_r23android-10.0.0_r22android-10.0.0_r21android-10.0.0_r20android-10.0.0_r19android-10.0.0_r18android-10.0.0_r16android-10.0.0_r15android-10.0.0_r14android-10.0.0_r13android-10.0.0_r12android10-qpr3-s1-releaseandroid10-qpr3-releaseandroid10-qpr2-s4-releaseandroid10-qpr2-s3-releaseandroid10-qpr2-s2-releaseandroid10-qpr2-s1-releaseandroid10-qpr2-releaseandroid10-qpr1-releaseandroid10-qpr1-mainline-releaseandroid10-qpr1-d-releaseandroid10-qpr1-c-s1-releaseandroid10-qpr1-c-releaseandroid10-qpr1-b-s1-releaseandroid10-qpr1-b-releaseandroid10-mainline-media-releaseandroid10-devandroid10-d4-s1-releaseandroid10-d4-releaseandroid10-c2f2-s2-releaseandroid10-c2f2-s1-releaseandroid10-c2f2-releaseMaciej enczykowski
am: ca595f7e9d Change-Id: I85298ef0b3ae97b70f7be581c030f52703531648
2019-04-03external/bcc - add more CLOEXEC am: 1b51f8b0e2Maciej enczykowski
am: 49dc26a84e Change-Id: I1f7ac05a8a8f21dd2f5b0d7b6cd2d2fdc650ecae
2019-04-03external/bcc - add more CLOEXECMaciej enczykowski
am: 1b51f8b0e2 Change-Id: Ic5e197734cbdfc58f6d415d51437b2819a285c1c
2019-04-02external/bcc - add more CLOEXECandroid-q-preview-6android-q-preview-5android-q-preview-4android-q-preview-2.5Maciej Żenczykowski
This eliminates a bunch of build warnings. Test: builds Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ic8647caf104ad03f9ee47e77cacb9fb3bbaf1da6
2019-02-24[automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-masterXin Li
am: 0e33b268e6 -s ours am skip reason: subject contains skip directive Change-Id: I3fc0a61192061bf237e0142b9759394f6cfb06f5
2019-02-20DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-masterXin Li
Bug: 120848293 Change-Id: I89d4f3c6edfb7a41db96635731be96611b4beb36
2019-01-11Prepare debian changelog for v0.8.0 tagBrenden Blanco
debian changelog for v0.8.0 tag
2019-01-11Misc fixes on Python tools (#2136)Teng Qin
Misc fixes on Python tools
2019-01-11Merge pull request #2135 from nasastry/python3_syscall_fixTeng Qin
syscall.py: Fixes python3 related error
2019-01-11syscall.py: Fixes python3 related errorNageswara R Sastry
With out the patch: Traceback (most recent call last):$ File "/root/bcc/src/python/bcc/syscall.py", line 381, in <module>$ out = out.split('\n',1)[1]$ TypeError: a bytes-like object is required, not 'str'$ $ During handling of the above exception, another exception occurred:$ $ Traceback (most recent call last):$ File "/root/bcc/tests/python/test_stat1.py", line 10, in <module>$ from bcc import BPF$ File "/root/bcc/src/python/bcc/__init__.py", line 30, in <module>$ from .syscall import syscall_name$ File "/root/bcc/src/python/bcc/syscall.py", line 387, in <module>$ raise Exception("ausyscall: command not found")$ Exception: ausyscall: command not found$ This is because variable 'out' is a byte object type and while split, code is passing 'str' type. Tested this on python3 and python2 Signed-off-by: Nageswara R Sastry <rnsastry@linux.vnet.ibm.com>
2019-01-10tools: shmsnoop, sofdsnoop handle keyboard interrupt (#2126)Prashant Bhole
Handle keyboard interrupt to avoid backtrace printed out when user presses Ctrl-C. Other tools have been fixed recently. Let's fix these remaining tools.
2019-01-10workaround kernel 5.0 asm_volatile_goto issue (#2133)yonghong-song
Fix issue #2119. Kernel 5.0 added more usages of asm goto and llvm does not support asm goto yet. This resulted in compilation error for virtually any bcc scripts. The workaround here is to redefine asm_volatile_goto to asm volatile("invalid use of asm_volatile_goto") which can pass clang. If bpf program does not use asm_volatile_goto, nothing bad will happen. The functions using asm_volatile_goto will be thrown away. If bpf program accidentally uses asm_volatile_goto, a compilation error like below will be printed out: <inline asm>:1:2: error: invalid register/token name invalid use of asm_volatile_goto ^ LLVM ERROR: Error parsing inline asm Signed-off-by: Yonghong Song <yhs@fb.com>
2019-01-10INSTALL.md: add new Ubuntu bpfcc-tools package name (#2116)Brendan Gregg
add new Ubuntu bpfcc-tools package name in INSTALL.md
2019-01-10add missing PT_REGS_RET definition for x86 (#2134)Xiaozhou Liu
add missing PT_REGS_RET definition for x86
2019-01-10Fix BPFModule error when RW Engine is disabled (#2131)Teng Qin
Fix BPFModule error when RW Engine is disabled
2019-01-10Merge pull request #2132 from iovisor/yhs_dev2Teng Qin
fix several printb usage with python3
2019-01-10fix several printb usage with python3Yonghong Song
The following three tools are recently changed to use printb in order to flush out the result. opensnoop.py, tcpaccept.py, tcpconnect.py With python3, however, these tools have errors like below: TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str' Traceback (most recent call last): File "_ctypes/callbacks.c", line 234, in 'calling callback function' File "/usr/lib/python3.6/site-packages/bcc/table.py", line 572, in raw_cb_ callback(cpu, data, size) File "../../tools/opensnoop.py", line 248, in print_event printb(b'%s' % event.fname.decode('utf-8', 'replace')) This patch fixed printb related issues for these three tools for python3. The python2 still works with the fix. Signed-off-by: Yonghong Song <yhs@fb.com>
2019-01-10tools: mountsnoop, change memset to __builtin_memset (#2127)Prashant Bhole
The bpf program generated with memset() call in this tool contains BPF_JMP|BPF_CALL instruction with imm=-1. The verifier rejects the program. Let's use llvm built-in function __builtin_memset
2019-01-09remove unused extern variables (#2125)yonghong-song
On fc29, compiling bcc from source, the following compiler warnings are seen: /home/yhs/work/bcc/src/cc/bcc_elf.c: In function ‘bcc_free_memory_with_file’: /home/yhs/work/bcc/src/cc/bcc_elf.c:802:36: warning: unused variable ‘_fini’ [-Wunused-variable] extern unsigned long _start, _fini; ^~~~~ /home/yhs/work/bcc/src/cc/bcc_elf.c:802:28: warning: unused variable ‘_start’ [-Wunused-variable] extern unsigned long _start, _fini; ^~~~~~ These unused externs are accidentally introduced by Commit 51480d0597cc ("implement free_bcc_memory() API"). This patch removed them. Signed-off-by: Yonghong Song <yhs@fb.com>
2019-01-09cmake/python: fix build race condition (#2111)Alexey Ivanov
* python: remove MANIFEST * cmake/python: fix build race condition
2019-01-09Translate arch into source directory when ARCH is set (#2122)Jerome Marchand
When ARCH is not defined, bcc get the architecture from uname. It then modifies it to get the name of arch directory in linux source. When ARCH is defined however, it just copy it as is, without the translation to the arch directory. If for instance ARCH is set to x86_64, it tries to look into the include directory build/arch/x86_64/, which doesn't exist. It fixes the following issue: $ echo $ARCH x86_64 $ /usr/share/bcc/tools/bashreadline In file included from <built-in>:2: In file included from /virtual/include/bcc/bpf.h:12: In file included from /lib/modules/4.18.0-49.el8.x86_64/build/include/linux/types.h:6: /lib/modules/4.18.0-49.el8.x86_64/build/include/uapi/linux/types.h:5:10: fatal error: 'asm/types.h' file not found ^~~~~~~~~~~~~ 1 error generated. Traceback (most recent call last): File "/usr/share/bcc/tools/bashreadline", line 51, in <module> b = BPF(text=bpf_text) File "/usr/lib/python3.6/site-packages/bcc/__init__.py", line 318, in __init__ raise Exception("Failed to compile BPF text") Exception: Failed to compile BPF text
2019-01-09tcpconnect: support uid option (#2118)Takuma Kume
support uid option in tcpconnect.
2019-01-09docs: fix parameters of bpf_trace_printk() (#2121)Xiaozhou Liu
bpf_trace_printk() does not have `fmt_size` as the second parameter in BCC.
2019-01-09tools: allow tcpaccept filter via PID (#2117)detailyang
add missing FILTER in the bpf program.
2019-01-07Merge pull request #2113 from takumakume/opensnoop-display-uidBrendan Gregg
opensnoop: supported UID options
2019-01-07 inject: Add support for alloc_page family of functions (#2114)Benjamin Poirier
* inject: Add support for alloc_page family of functions * Add vim backup files to gitignore
2019-01-06opensnoop: supported uid optionstakumakume
2019-01-04Add default active developers into OWNERS am: 8e94b4876b am: 6cdb6ab61eChih-Hung Hsieh
am: 19fcf19265 Change-Id: I04d98ac08290d904d5652fbe5863d3ec5161ecbf
2019-01-04Add default active developers into OWNERS am: 8e94b4876bChih-Hung Hsieh
am: 6cdb6ab61e Change-Id: I96dea00ee1a495603c957d737df4eb2219e6b168
2019-01-04Add default active developers into OWNERSChih-Hung Hsieh
am: 8e94b4876b Change-Id: I0874cb99a97f6097c68be52675b671f5b976fc1b
2019-01-04Add default active developers into OWNERSandroid-q-preview-1Chih-Hung Hsieh
Bug: 33166666 Test: gerrit uploader Change-Id: I8a12c3e867175a8ff1308991525e9287258cf143
2019-01-04Add stdout flushing to some tools (#2110)japroc
* add stdout flushing to some tools * change printb import source in opensnoop tool
2019-01-04biolatency.py: use blk_account_io_done instead of blk_account_io_completion ↵gurugio
(#2109) The biolatency tool attaches kprobe at blk_account_io_completion() function to check when a request is finished. But sometimes request can be finished partially and blk_account_io_completion() is called again. The blk_account_io_done() is called when a request is finally finished and biolatency tool should attach blk_account_io_done(), not blk_account_io_completion(). Signed-off-by: Gioh Kim <gi-oh.kim@cloud.ionos.com>
2019-01-03Unify python executables to use `#!/usr/bin/env python` shebang (#2102)Alexey Ivanov
* fixed shebangs in tools (and lib) * fixed shebangs in examples * do not mangle shebangs in rpm spec * renamed style-check.sh to c-style-check.sh * factored out python linter to a separate file * added shebang validation to the py-style-check * added shebangs to all python executables
2019-01-03Comment on duplicate code for parsing double vlans (#2107)Paul Chaignon
Comment on duplicate code for parsing double vlans. I also changed it into a short loop, which I don't think improves (or degrades) the code, but at least makes it clear that the double parsing is intentional. Signed-off-by: Paul Chaignon <paul.chaignon@orange.com>
2019-01-03Fix typos in hint message (#2106)Paul Chaignon
Fix typos in hint message Signed-off-by: Paul Chaignon <paul.chaignon@orange.com>
2019-01-03tutorial: align the header in opensnoop (#2105)detailyang
align the header in opensnoop in the tutorial.
2019-01-02ustat: added basic race condition protection (#2103)Alexey Ivanov
added basic race condition protection for ustat.py
2018-12-31better error meessage for error "unknown opcode" (#2101)yonghong-song
fix issue #226 The unknown opcode typically happens if the bpf program has an external reference which does not get resolved. Note bcc does not even preform relocations for maps as map_id is directly used in bpf problem through bpf_pseudo_fd() intrinsic. Instead of the error: bpf: Failed to load program: Invalid argument unknown opcode 00 A little explanation is added like the below: HINT: The 'unknown opcode' can happen if you referencea global or static variable, or data in read only section. For example,'char *p = "hello"' will result in p referencing a read only section,and 'char p[] = "hello"' will have "hello" stored on the stack. Signed-off-by: Yonghong Song <yhs@fb.com>