Skip to content

Commit

Permalink
Use clang-17 for building tracers (#270)
Browse files Browse the repository at this point in the history
Co-authored-by: Christos Kalkanis <[email protected]>
  • Loading branch information
mchataigner and christos68k authored Jan 2, 2025
1 parent 0958f0d commit 77da04f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN cross_debian_arch=$(uname -m | sed -e 's/aarch64/amd64/' -e 's/x86_64/arm64
cross_pkg_arch=$(uname -m | sed -e 's/aarch64/x86-64/' -e 's/x86_64/aarch64/'); \
apt-get update -y && \
apt-get dist-upgrade -y && \
apt-get install -y wget make git clang-16 unzip libc6-dev g++ gcc pkgconf \
apt-get install -y wget make git clang-17 unzip libc6-dev g++ gcc pkgconf \
gcc-${cross_pkg_arch}-linux-gnu libc6-${cross_debian_arch}-cross && \
apt-get clean autoclean && \
apt-get autoremove --yes
Expand Down
6 changes: 3 additions & 3 deletions support/ebpf/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SHELL ?= bash
BPF_CLANG ?= clang-16
BPF_LINK ?= llvm-link-16
LLC ?= llc-16
BPF_CLANG ?= clang-17
BPF_LINK ?= llvm-link-17
LLC ?= llc-17

DEBUG_FLAGS = -DOPTI_DEBUG -g

Expand Down
2 changes: 1 addition & 1 deletion support/ebpf/print_instruction_count.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file="$1"

OBJDUMP_CMD=llvm-objdump
if ! type -p "${OBJDUMP_CMD}"; then
OBJDUMP_CMD=llvm-objdump-16
OBJDUMP_CMD=llvm-objdump-17
fi

echo -e "\nInstruction counts for ${file}:\n"
Expand Down
Binary file modified support/ebpf/tracer.ebpf.release.amd64
Binary file not shown.
Binary file modified support/ebpf/tracer.ebpf.release.arm64
Binary file not shown.

0 comments on commit 77da04f

Please sign in to comment.