Age | Commit message (Collapse) | Author |
|
Change-Id: I40393468d6bc68ac1b1afb249f2535af1abc56bd
|
|
b8e9d3cfd2
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2824662
Change-Id: I3dd672e934ab2138f033ee75e9a8fbdef61ce439
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
0b81dc74f5
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2824662
Change-Id: I4726795cb5037b9361310de074accb057c10ebaa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2824662
Change-Id: I93598c21ad046b6f98670243874843134423c2f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2824662
Change-Id: I0b4c3cf627bb3b0c1c8ddd4c1faf9847e7140ee5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2824662
Change-Id: Ia2cf6782a91d2937e868209ab8b646025c8ae8b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2824662
Change-Id: If8bc0639205353681d28fba21ba1626319c0f37f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Soong doesn't have propagation for static library dependencies.
Add "elfutils_transitive_defaults" to have "static_libs" that are
applied to all static libraries that use elfutils.
This have to be included explicitly by all elfutils users.
Bug: 169779783
Bug: 309972007
Change-Id: I635b0f1eeee574fa27b44fe99a73439ec62c0066
Signed-off-by: Aleksei Vetrov <vvvvvv@google.com>
|
|
Change-Id: I343e47b4334ae71817c379b1c98255e8fb2ee22f
|
|
ada4b4bc71 am: 521c8f24b0
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2791621
Change-Id: I5e4d31c9a6d67e4b08ce0df0e8015c8a4c27b9d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
e66547de77 am: 9a718b2ed0
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2791620
Change-Id: Ib7378b5f5fce0a4e12aa84b4da8136ede650036e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
5f3d6df157 am: 88ed125802
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2791621
Change-Id: I3bb86faeb188d41c1a2c376519b6a82ffa76583a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
a78384d8df am: 695171c4cd
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2791620
Change-Id: I1c5ffddfae8f189223d9e3ad6cbfdb35f67cd2dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
ada4b4bc71
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2791621
Change-Id: Ifc20f17e9347a75ca8d6446523911f82bce67e9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
e66547de77
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2791620
Change-Id: I277683101bea7067f16924b2706b9c15136613b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
5f3d6df157
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2791621
Change-Id: I2d22e37fae18c83a7659b9b079849f5e71c5a04a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
a78384d8df
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2791620
Change-Id: I54f46a9303b6b7ce4a837e6ebfc85269ccb5d412
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2791621
Change-Id: I2ba482775a7ea2b4552988583cddf126102c2214
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2791620
Change-Id: I3b00ccfab6f971ac5bf26dd6629e99a57c1f4c2f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2791621
Change-Id: I5a6c756de3e90ce7317de73e23c1f7277a1002b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2791620
Change-Id: Ic69c2b8f6c902a4fbaded601a7b4cd3e5de75314
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
This commit disables building the BCC libbpf-tools/tcpconnect target due
to toolchain issues described in b/241472915.
Bug: 241472915
Change-Id: I6d1a2278dcacc2146ea6a1efa768eb74755cad1e
Signed-off-by: Neill Kapron <nkapron@google.com>
|
|
This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update bcc
For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md
Conflicts resolved:
src/cc/libbpf.c
Resolved build issues:
Android.bp
libbpf-tools/Android.bp
src/cc/libbpf.c - wrap find_btf_id in "#ifndef MINIMAL_LIBBPF"
src/cc/bcc_zip.c - pointer casts to resolve -Wgnu-pointer-arith and
-Wcompare-distinct-pointer-types build errors
Test: TreeHugger
Change-Id: I76f1ddae7967fce359d3d6cff03649f882f533b0
Signed-off-by: Neill Kapron <nkapron@google.com>
|
|
sanitizer: Fix UndefinedBehaviorSanitizer: non-positive-vla-index
|
|
Use LLVM_VERSION_MAJOR from llvm-config.h instead of inferred LLVM_MAJOR_VERSION
|
|
Hypercall name 'H_DISABLE_AND_GETC' is incorrect. In this commit, it
has been corrected to 'H_DISABLE_AND_GET' to align with this linux
kernel commit 0f10228c6ff6 ("KVM: PPC: Fix typo on H_DISABLE_AND_GET
hcall")
Signed-off-by: Aboorva Devarajan <aboorvad@linux.vnet.ibm.com>
|
|
During the analysis of hypercalls using this script, it was observed
that certain hypercall names were absent. To ensure comprehensive
coverage, officially supported hypercalls have been incorporated into
the list.
List of additional hypercalls that have been included with their
respective opcodes:
456: 'H_GET_CPU_CHARACTERISTICS'
672: 'H_VASI_SIGNAL'
680: 'H_VIOCTL'
732: 'H_REG_SUB_CRQ'
736: 'H_FREE_SUB_CRQ'
740: 'H_SEND_SUB_CRQ'
744: 'H_SEND_SUB_CRQ_INDIRECT'
1108: 'H_PKS_SIGNED_UPDATE'
Signed-off-by: Aboorva Devarajan <aboorvad@linux.vnet.ibm.com>
|
|
|
|
bpf_get_func_ip(ctx) will get the function address; use it where
available using the BPF core enum value check for the function.
This avoids needing to get the caller IP via KSNOOP_IP_FIX()
for more up-to-date kernels.
This fixes issue #4746 for kernels newer than 5.13; an additional
followup will be needed to address this for older kernels.
Kindly tested by https://github.com/matthew-olson-intel on a
recent kernel.
Reported-by: dubeyabhishek (https://github.com/dubeyabhishek)
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
|
|
|
|
Change-Id: Idc2254df2fcaa0e1da1a71c485bffa5955ef7788
|
|
When running a test leveraging bcc, and with sanitization enabled, the following
error was triggered:
```
...
third-party/bcc/master/src/cc/api/BPF.cc:123:21: runtime error: variable length array bound evaluates to non-positive value 0
#0 0x7f3fc6f06d13 in ebpf::BPF::init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::vector<ebpf::USDT, std::allocator<ebpf::USDT>> const&) third-party/bcc/master/src/cc/api/BPF.cc:123
...
...
SUMMARY: UndefinedBehaviorSanitizer: non-positive-vla-index third-party/bcc/master/src/cc/api/BPF.cc:123:21 in
...
```
This change uses a vector instead of initializing a possibly 0-length array.
|
|
Instead of inferring this from within the CMakeList.txt file, we can pull it
directly from llvm-config.h.
|
|
|
|
|
|
This drops an hardcoded check for the root user-ID before accessing
`/proc/kallsyms`, in order to fix a bug which is preventing proper
kernel symbols resolution by non-root users.
The `/proc/kallsyms` file is generally available to non-privileged
users:
```
> runuser -u nobody -- wc -l /proc/kallsyms
217514 /proc/kallsyms
```
Its content is further controlled by the `CAP_SYSLOG` capability
through `/proc/sys/kernel/kptr_restrict`:
https://man7.org/linux/man-pages/man7/capabilities.7.html
As such, it is better to directly open it and rely on `fopen()`
for privileges checking.
|
|
Debian's python, unlike stock python, expects system packages to be
installed in `/usr/local/lib/python3.X/dist-packages/` and not `/usr/local/lib/python3.X/site-packages/`. As such
debian's python setuptools has a flag `--install-layout deb` which
places library files in the correct place. `src/python/CMakeLists.txt`
checks if the system is debian and adds this flag.
However, if you're trying to use BCC with a non-system version of python
(for example miniconda) the different package layout (and setuptools
flag) aren't there. Also, libraries aren't expected to be placed in
/usr, but whatever prefix the alternative python install is using.
This PR adds two flags to the CMAke build:
* PY_SKIP_DEB_LAYOUT - which skips adding the `--install-layout deb`
flag to the python install command
* PYTHON_PREFIX which (if set) takes the place of CMAKE_INSTALL_PREFIX
as a target for installing python packages
Both are needed to allow installing python bindings into python
installs that aren't the system install on debian hosts. For example,
for a miniconda install on ubuntu:
With this PR, I can get a working install with miniconda on ubuntu 22
using:
```
cmake .. -DPY_SKIP_DEB_LAYOUT=true -DPYTHON_PREFIX=/home/vagrant/miniconda3/envs/ddpy3/
```
|
|
Since kernel commit abf08576afe3("fs: port vfs_*() helpers to struct
mnt_idmap"), the vfs_unlink/create function use 'struct mnt_idmap' instead
of 'struct user_namespace'.
Signed-off-by: Rong Tao <rongtao@cestc.cn>
|
|
This adds translation logic to perform PID translation across
PID-namespaces.
It is now possible to profile a target process from within a
nested PID-namespace (e.g. in a container).
Also add a note in profile_example.txt file.
|
|
commit abf08576afe3("fs: port vfs_*() helpers to struct mnt_idmap") [0] use
`struct mnt_idmap *new_mnt_idmap` instead of `struct user_namespace *
old_mnt_userns`.
[0] https://github.com/torvalds/linux/commit/abf08576afe3
Signed-off-by: Rong Tao <rongtao@cestc.cn>
|
|
9f25a3ce20 am: b270d76c1a am: 6e6c9ac1c2 am: 5da4cb6257
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2719499
Change-Id: Iaf3e0a9dc9facaafded54ddee6bed139f9d5d0d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
9f25a3ce20 am: b270d76c1a am: 6e6c9ac1c2
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2719499
Change-Id: Iff133f1e45dfbfc7751bd7d1e7aeb1820204073f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
9f25a3ce20 am: b270d76c1a
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2719499
Change-Id: I0a07e64ab4762b014a2de679ba1947a26c5776b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2719499
Change-Id: I119b5b3369de6d2785865a974d5742ed0126866b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
Original change: https://android-review.googlesource.com/c/platform/external/bcc/+/2719499
Change-Id: Ibcf7413c7e5871a16a278c655743dfc82e027ae4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
|
|
These tools will require upstream libbpf patch:
https://lore.kernel.org/bpf/20220523212808.603526-1-connoro@google.com/T/#u
That upstream patch will be merged seperately; however,
we can build these tools independantly for now for debugging purposes.
$:/data/bcc # ./bitesize 1
Process Name = dd
Kbytes : count distribution
0 -> 1 : 0 | |
2 -> 3 : 0 | |
4 -> 7 : 1 |* |
8 -> 15 : 0 | |
16 -> 31 : 1 |* |
32 -> 63 : 1 |* |
64 -> 127 : 1 |* |
128 -> 255 : 1 |* |
256 -> 511 : 2 |** |
512 -> 1023 : 37 |****************************************|
$:/data/bcc # ./exitsnoop -t
TIME(s) PCOMM PID PPID TID AGE(s) EXIT_CODE
13:08:03 dd 16338 16299 16338 0.43 0
13:08:04 kworker/dying 30194 2 30194 7110.01 0
13:08:05 kworker/dying 30172 2 30172 7112.14 0
$:/data/bcc # ./biopattern 1
Tracing block device I/O requested seeks... Hit Ctrl-C to end.
DISK %RND %SEQ COUNT KBYTES
sda 75 25 4 144
sda 100 0 3 12
sda 0 100 6 24
sda 100 0 31 324
sda 83 16 24 2244
Bug: 296512575
Test: On Pixel running 5.10 kernel
Change-Id: I99884884a8bbb221fb2e039ad98b84cceec307cd
Signed-off-by: Akilesh Kailash <akailash@google.com>
|
|
|
|
|
|
There is no need for the extra options. We can distinguish IPv4 and
IPv6 adresses by their format.
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
|
|
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
|