Package Details: bcc-tools 0.7.0-1

Git Clone URL: https://aur.archlinux.org/bcc.git (read-only)
Package Base: bcc
Description: BPF Compiler Collection - Tools
Upstream URL: https://github.com/iovisor/bcc
Keywords: control eBPF kernel performance tracing
Licenses: Apache
Submitter: troyengel
Maintainer: edh (eklausmeier)
Last Packager: edh
Votes: 26
Popularity: 0.353232
First Submitted: 2016-01-01 18:37
Last Updated: 2018-09-05 03:21

Dependencies (15)

Required by (1)

  • bcc (optional)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

vmaffione commented on 2018-11-22 11:03

Hi, I get a build failure:

[ 95%] Building C object tests/cc/CMakeFiles/test_static.dir/test_static.c.o
[ 95%] Linking CXX executable test_static
[ 95%] Built target HelloWorld
[ 95%] Built target TCPSendStack
[ 95%] Built target RecordMySQLQuery
[ 95%] Built target UseExternalMap
/usr/bin/ld: /usr/local/lib/libelf.a(elf_error.o): relocation R_X86_64_TPOFF32 against `global_error' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf_begin.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf_end.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf_nextscn.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf_getdata.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf_compress.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(gelf_fsize.o): relocation R_X86_64_32S against hidden symbol `__libelf_type_sizes' can not be used when making a shared object
/usr/bin/ld: /usr/local/lib/libelf.a(elf32_getphdr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf64_getphdr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf32_getshdr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf64_getshdr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libelf.a(elf32_xlatetof.o): relocation R_X86_64_32S against hidden symbol `__libelf_type_sizes' can not be used when making a shared object
/usr/bin/ld: /usr/local/lib/libelf.a(elf64_xlatetof.o): relocation R_X86_64_32S against hidden symbol `__libelf_type_sizes' can not be used when making a shared object
/usr/bin/ld: /usr/local/lib/libelf.a(elf_version.o): relocation R_X86_64_PC32 against symbol `__libelf_seterrno' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [src/cc/CMakeFiles/bcc-shared.dir/build.make:362: src/cc/libbcc.so.0.7.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:278: src/cc/CMakeFiles/bcc-shared.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 95%] Linking CXX executable LLCStat
[ 95%] Built target test_static
[ 95%] Built target LLCStat
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().

Any clues?

Thanks

furcifer_oustale commented on 2018-06-29 12:16

Hi, i got the same error as @marak:

I cannot attach kprobes - neither with the ready made bcc tools nor with my own.

Code: https://pastebin.com/eEgGeGJh Output: https://pastebin.com/Ni1cTALj

edh commented on 2018-05-03 18:44

@marak The program mentioned in the log works fine for me.

marak commented on 2018-04-29 19:14

I'm getting "Bad file descriptor" when trying to run any of the scripts. Here's the error log from the tcplife: http://ix.io/193v

enchantner commented on 2018-03-31 15:23

@edh I was hoping to actually trace some programs using BPF with this toolset, that's why I am curious about this one in particular. But maybe there are some other similar tools there that do work. I'll try and do some research, thanks a lot for looking into this!

edh commented on 2018-03-31 13:02

@enchantner Sorry, I can't reproduce your problem using linux 4.15.3-1, linux-hardened 4.15.10a-1 and linux-hardened 4.15.12a-1.

EDIT: I took a look at the ticket and ran the trace tool as described by you and it fails as well. The error message was the same. Hence some tools in specific are not working while others do.

enchantner commented on 2018-03-30 19:49

Doesn't work for me on latest kernel (4.15.13-1): https://github.com/iovisor/bcc/issues/1634 . Fails to attach kprobes, even though all necessary kernel parameters are present. Is anyone experiencing the same?

furcifer_oustale commented on 2018-03-30 13:25

Hi,

Just tested 0.5.0-3: Works fine, thanks!

Furcifer Oustaleti

edh commented on 2018-03-30 12:51

Thanks for all the feedback! I was testing some stuff out but @cippaciong already provided the right answer before I could. Luckily the patch is contained within a single commit (c0d1694e28) and can be easily backported. Can you give the latest version of this package a try. Compilation using clang/llvm version 6.0.0 is working fine on my machine.

furcifer_oustale commented on 2018-03-28 11:11

@cippaciong: Building the most recent Version (76bec4d5e94f56b42b6417f27b06f95773c8e283) of bcc from git works fine: https://pastebin.com/n04BFrcW