Age | Commit message (Collapse) | Author |
|
Change-Id: I538e732aa86aeaaef2192c6fcd547e2b2455af22
|
|
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
|
|
Bug: 151763422
Change-Id: I46df053b0b56618f25941c5aa5ebfd9f2259456c
|
|
Change-Id: I1e4906bd2fe10791e59fdb724bf626456b221318
|
|
Change-Id: If7957299e130fe0f1b50871d5c366e7d31dc877f
|
|
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
|
|
am: 1d9c1f90bc
Change-Id: I067074ec0b499d1349dabd106638c463ad0a6192
|
|
am: c910c866b3
Change-Id: If576adf10c76f471c2a3544aff765612d06d952a
|
|
am: ee971d503a
Change-Id: I4f90c3c308c857059fdf558ee1f22d31e7245e32
|
|
|
|
Exempt-From-Owner-Approval: upgrade library
Test: build
Change-Id: Ice7e4c57e0431767f0aa1d31acc35a79ff7ed2cf
|
|
am: ca595f7e9d
Change-Id: I85298ef0b3ae97b70f7be581c030f52703531648
|
|
am: 49dc26a84e
Change-Id: I1f7ac05a8a8f21dd2f5b0d7b6cd2d2fdc650ecae
|
|
am: 1b51f8b0e2
Change-Id: Ic5e197734cbdfc58f6d415d51437b2819a285c1c
|
|
This eliminates a bunch of build warnings.
Test: builds
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ic8647caf104ad03f9ee47e77cacb9fb3bbaf1da6
|
|
am: 0e33b268e6 -s ours
am skip reason: subject contains skip directive
Change-Id: I3fc0a61192061bf237e0142b9759394f6cfb06f5
|
|
Bug: 120848293
Change-Id: I89d4f3c6edfb7a41db96635731be96611b4beb36
|
|
debian changelog for v0.8.0 tag
|
|
Misc fixes on Python tools
|
|
syscall.py: Fixes python3 related error
|
|
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>
|
|
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.
|
|
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>
|
|
add new Ubuntu bpfcc-tools package name in INSTALL.md
|
|
add missing PT_REGS_RET definition for x86
|
|
Fix BPFModule error when RW Engine is disabled
|
|
fix several printb usage with python3
|
|
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>
|
|
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
|
|
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>
|
|
* python: remove MANIFEST
* cmake/python: fix build race condition
|
|
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
|
|
support uid option in tcpconnect.
|
|
bpf_trace_printk() does not have `fmt_size` as the second parameter in BCC.
|
|
add missing FILTER in the bpf program.
|
|
opensnoop: supported UID options
|
|
* inject: Add support for alloc_page family of functions
* Add vim backup files to gitignore
|
|
|
|
am: 19fcf19265
Change-Id: I04d98ac08290d904d5652fbe5863d3ec5161ecbf
|
|
am: 6cdb6ab61e
Change-Id: I96dea00ee1a495603c957d737df4eb2219e6b168
|
|
am: 8e94b4876b
Change-Id: I0874cb99a97f6097c68be52675b671f5b976fc1b
|
|
Bug: 33166666
Test: gerrit uploader
Change-Id: I8a12c3e867175a8ff1308991525e9287258cf143
|
|
* add stdout flushing to some tools
* change printb import source in opensnoop tool
|
|
(#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>
|
|
* 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
|
|
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>
|
|
Fix typos in hint message
Signed-off-by: Paul Chaignon <paul.chaignon@orange.com>
|
|
align the header in opensnoop in the tutorial.
|
|
added basic race condition protection for ustat.py
|
|
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>
|