The flag was added upstream to fix a compilation issue on Ubuntu,
seemingly because of incompatibility with static libs that were not
buil with PIE support. There is no such compilation issue of Fedora
and we should use Fedora default flags whenevrpossible. Building
without PIE cause annocheck to complain about the bcc-lua executable.
Rebase bcc to bcc-0.28.0
Also fix bio tools and slabratetop
Resolves: bz#2218440
Resolves: bz#2184370
Resolves: bz#2217179
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
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>