Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.
TypeScript agent-harnessagent-harness-engineeringai-engineeringai-observabilityamd-gpuclaude-codeclickhousecodexcoding-agentcoding-agentscursorgenaigpu-monitoringllm-observabilityllmopsnvidia-smiobservabilityopen-sourceopenaiopentelemetry
#!/usr/bin/env bash
# Host-arch-aware bpf2go wrapper, invoked by the //go:generate
# directive in tracer.go.
#
# setup-bpf dumps the *host* kernel BTF into a single vmlinux.h,
# which is inherently single-arch. libbpf's arm64 register path
# reads a separate `struct user_pt_regs` (which the setup-bpf
# shim in Makefile supplies), so an x86 host can cross-generate
# arm64. The x86 path reads members straight off `struct pt_regs`
# so an arm64 host cannot generate the x86 object. Derive the
# target list from the host arch accordingly.
set -e
goarch="$(go env GOARCH)"
if [ "$goarch" = amd64 ]; then
targets=amd64,arm64
else
targets="$goarch"
fi
exec go run github.com/cilium/ebpf/cmd/bpf2go -cc clang \
-target "$targets" gpuevent ./bpf/gpuevent.c -- -I./bpf