Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] invoke system-probe.test fails without errors #33843

Open
Andreagit97 opened this issue Feb 8, 2025 · 1 comment
Open

[QUESTION] invoke system-probe.test fails without errors #33843

Andreagit97 opened this issue Feb 8, 2025 · 1 comment

Comments

@Andreagit97
Copy link

Hi all! I'm looking at the Datadog code and i would like to run some test locally to better understand how it works. Following the README i've put together the following commands:

git clone https://github.com/DataDog/datadog-agent.git $GOPATH/src/github.com/DataDog/datadog-agent
cd $GOPATH/src/github.com/DataDog/datadog-agent
git checkout 7.62.1 # just to pin a stable version
python3 -m venv venv/
source venv/bin/activate
pip install -r requirements.txt
invoke install-tools
invoke deps

Now i should be able to run some tests. Something like this works well

invoke test --targets=./pkg/network

but if i try:

DD_SYSPROBE_SKIP_CLANG_CHECK=true invoke system-probe.test

it fails with no visible errors:

clang version 12.0.1
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/datadog-agent/embedded/bin
LLVM (http://llvm.org/):
  LLVM version 12.0.1
  Optimized build.
  Default target: x86_64-unknown-linux-gnu
  Host CPU: znver3

  Registered Targets:
    bpf   - BPF (host endian)
    bpfeb - BPF (big endian)
    bpfel - BPF (little endian)
checking for invalid inline usage...

I' using clang version 18.1.3 that's why I'm adding DD_SYSPROBE_SKIP_CLANG_CHECK.
Some info on my environment

NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"

Am i missing something obvious? Thank you!

@brycekahle
Copy link
Member

👋 You might need the ninja-build APT package, since we use that for building the eBPF object files.

Word of caution though about clang 18.1.3 though. We don't support that version and there is a good chance things will not work correctly. We have identified some regressions in clang for eBPF programs that we are working to get fixed before upgraded versions of clang will work correctly with our programs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants