Rebase bcc to 0.25.0. Also fixes some conversion errors raised by
clang 15 (treated as warning before) and rebuild on libbpf 1.0.
Resolves bz#2117708
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
bcc-tools brings in python and kernel-devel which are undesired deps
when performing minimal footprint installations.
- Resolves#1966953
Signed-off-by: Rafael dos Santos <rdossant@redhat.com>
We provide libbpf package and bcc is already link to it. We don't need
to bother with bcc-src-with-submodule.tar.gz source file.
Libbpf tools still build and link to the submodule libbpf package, so
make sure that libbpf tools are linked to the externel libbpf library.
When the correct kernel header is not readily found, bcc tries to
extract it from kheaders module, a process which at some point involves
a tar command.
Resolves#1869006
Signed-off-by: Rafael dos Santos <rdossant@redhat.com>
Adding libbpf-tools subpackage. It was discussed and agreed
to package libbpf-tools under 'libbpf-tool' name and add 'bpf-'
prefix to binaries, please check in here:
https://github.com/iovisor/bcc/pull/3263
At the moment the package has following binaries:
$ rpm -ql libbpf-tools
/usr/sbin/bpf-biolatency
/usr/sbin/bpf-biopattern
/usr/sbin/bpf-biosnoop
/usr/sbin/bpf-biostacks
/usr/sbin/bpf-bitesize
/usr/sbin/bpf-cachestat
/usr/sbin/bpf-cpudist
/usr/sbin/bpf-cpufreq
/usr/sbin/bpf-drsnoop
/usr/sbin/bpf-execsnoop
/usr/sbin/bpf-filelife
/usr/sbin/bpf-funclatency
/usr/sbin/bpf-hardirqs
/usr/sbin/bpf-llcstat
/usr/sbin/bpf-numamove
/usr/sbin/bpf-opensnoop
/usr/sbin/bpf-readahead
/usr/sbin/bpf-runqlat
/usr/sbin/bpf-runqlen
/usr/sbin/bpf-runqslower
/usr/sbin/bpf-softirqs
/usr/sbin/bpf-syscount
/usr/sbin/bpf-tcpconnect
/usr/sbin/bpf-tcpconnlat
/usr/sbin/bpf-vfsstat
/usr/sbin/bpf-xfsslower
...
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
bpftrace still relies on `bpf_detach_kfunc` which was removed in
bcc-0.15.0. It doesn't do anything, so there is no harm on adding it
back until bpftrace is updated.
Signed-off-by: Rafael dos Santos <rdossant@redhat.com>
Now when we have libbpf packaged we want it to be used to build bcc,
instead of libbpf Github repo, which is downloaded during the build.
The bcc still produces libbcc.so/libbcc.a with libbpf code inside,
so nothing changes there.. apart from that they are built from libbpf
package now instead of libbpf Github repo
The addition is libbcc-no-libbpf.so library, which will be used in
applications like bpftrace which needs to link libbpf.so by itself
for other features.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>