Package Details: bpftrace 0.10.0-3

Git Clone URL: https://aur.archlinux.org/bpftrace.git (read-only, click to copy)
Package Base: bpftrace
Description: High-level tracing language for Linux eBPF
Upstream URL: https://github.com/iovisor/bpftrace
Licenses: Apache
Conflicts: bpftrace-git
Provides: bpftrace
Submitter: cippaciong
Maintainer: cippaciong
Last Packager: cippaciong
Votes: 12
Popularity: 0.64
First Submitted: 2019-01-12 14:44
Last Updated: 2020-07-04 14:09

Latest Comments

1 2 Next › Last »

bartus commented on 2020-07-04 16:07

@ulidtko: strange, ix.io works fine here.

btw. it holds the patch for PKBUILD, not the actual bpftrace path :)

ulidtko commented on 2020-07-03 08:25

@bartus hey, I think the ix.io service is misconfigured + the link is bad:

$ curl https://ix.io/2qKD
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
$
$ curl http://ix.io:443/2qKD
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /2qKD was not found on this server.</p>
<hr>
<address>Apache Server at ix.io Port 443</address>
</body></html>

Better just use GitHub directly:

curl -sL https://github.com/iovisor/bpftrace/pull/1391.diff | git am -s

bartus commented on 2020-07-03 06:26

There's some patching required for bpftrace to work against libbcc>=0.15

# run in local clone of AUR/bpftrace
git am -s < <(curl -s http://ix.io/2qKD)

Relevent PR: https://github.com/iovisor/bpftrace/pull/1391

cippaciong commented on 2020-07-02 21:57

@ulidtko: weirdly enough I wasn't able to reproduce the error :S I have disabled the stripping anyway, let me know if you still have any errors and thanks for reporting

ulidtko commented on 2020-07-01 14:21

One more thing: disable stripping of the built bpftrace binary.

Because stripping breaks BEGIN/END probes, testcase:

sudo bpftrace -e 'BEGIN { @++ }'
Attaching 1 probe...
Could not resolve symbol: /proc/self/exe:BEGIN_trigger

Patch:

diff --git i/PKGBUILD w/PKGBUILD
index 8529b18..70bb65b 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -13,6 +13,7 @@ conflicts=('bpftrace')
 provides=('bpftrace')
 source=("git+https://github.com/iovisor/bpftrace.git")
 sha512sums=('SKIP')
+options=('!strip') #-- https://github.com/iovisor/bpftrace/issues/954

 pkgver() {
   cd "$srcdir/$_pkgname"

shuveb commented on 2020-05-05 10:16

While clang package has been updated, this has stagnated with a dependency on an older clang .so library.

➜ ~ bpftrace
bpftrace: error while loading shared libraries: libclang.so.9: cannot open shared object file: No such file or directory

This package needs a build to link against the right clang dependencies.

attenuation commented on 2020-04-16 02:12

man page file confilicting with bcc-tools-git

error: failed to commit transaction (conflicting files)
bpftrace: /usr/share/man/man8/bashreadline.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/biolatency.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/biosnoop.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/bitesize.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/capable.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/dcsnoop.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/execsnoop.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/gethostlatency.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/killsnoop.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/mdflush.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/oomkill.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/opensnoop.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/pidpersec.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/runqlat.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/runqlen.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/statsnoop.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/syncsnoop.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/syscount.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/tcpaccept.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/tcpconnect.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/tcpdrop.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/tcplife.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/tcpretrans.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/vfscount.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/vfsstat.8.gz exists in filesystem (owned by bcc-tools-git)
bpftrace: /usr/share/man/man8/xfsdist.8.gz exists in filesystem (owned by bcc-tools-git)
Errors occurred, no packages were upgraded.

Maybe we can add this line to PKGBUILD

  find ${pkgdir}/usr/share/man/man8 -name '*.8.gz' | awk -F '.' '{printf("mv %s.8.gz %s-bpftrace.8.gz\n",$1,$1)}' | sh

cippaciong commented on 2020-02-29 21:30

@Xinkai: flex is part of the base-devel group which is a prerequisite to install packages from AUR

Xinkai commented on 2020-02-29 21:25

Should have "flex" as one of makedepends

bartus commented on 2020-01-12 20:07

/usr/bin/bpftrace is missing shared object /usr/lib/libbcc.so provided by bcc pacakge from AUR.

You should move bcc from makedepends to depends