Skip to content

Commit

Permalink
drop unneeded check
Browse files Browse the repository at this point in the history
we only depend on system probe when it's enabled
  • Loading branch information
chouquette committed Nov 25, 2024
1 parent db52d64 commit d6d2f07
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions omnibus/config/software/system-probe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

name 'system-probe'

require './lib/project_helpers.rb'

source path: '..'
relative_path 'src/github.com/DataDog/datadog-agent'

Expand All @@ -23,19 +21,17 @@
mkdir "#{install_dir}/embedded/share/system-probe/ebpf/co-re/btf"
mkdir "#{install_dir}/embedded/share/system-probe/java"

if sysprobe_enabled?
arch = `uname -m`.strip
if arch == "aarch64"
arch = "arm64"
end
copy "pkg/ebpf/bytecode/build/#{arch}/*.o", "#{install_dir}/embedded/share/system-probe/ebpf/"
delete "#{install_dir}/embedded/share/system-probe/ebpf/usm_events_test*.o"
copy "pkg/ebpf/bytecode/build/#{arch}/co-re/*.o", "#{install_dir}/embedded/share/system-probe/ebpf/co-re/"
copy "pkg/ebpf/bytecode/build/runtime/*.c", "#{install_dir}/embedded/share/system-probe/ebpf/runtime/"
copy "#{ENV['SYSTEM_PROBE_BIN']}/clang-bpf", "#{install_dir}/embedded/bin/clang-bpf"
copy "#{ENV['SYSTEM_PROBE_BIN']}/llc-bpf", "#{install_dir}/embedded/bin/llc-bpf"
copy "#{ENV['SYSTEM_PROBE_BIN']}/minimized-btfs.tar.xz", "#{install_dir}/embedded/share/system-probe/ebpf/co-re/btf/minimized-btfs.tar.xz"
arch = `uname -m`.strip
if arch == "aarch64"
arch = "arm64"
end
copy "pkg/ebpf/bytecode/build/#{arch}/*.o", "#{install_dir}/embedded/share/system-probe/ebpf/"
delete "#{install_dir}/embedded/share/system-probe/ebpf/usm_events_test*.o"
copy "pkg/ebpf/bytecode/build/#{arch}/co-re/*.o", "#{install_dir}/embedded/share/system-probe/ebpf/co-re/"
copy "pkg/ebpf/bytecode/build/runtime/*.c", "#{install_dir}/embedded/share/system-probe/ebpf/runtime/"
copy "#{ENV['SYSTEM_PROBE_BIN']}/clang-bpf", "#{install_dir}/embedded/bin/clang-bpf"
copy "#{ENV['SYSTEM_PROBE_BIN']}/llc-bpf", "#{install_dir}/embedded/bin/llc-bpf"
copy "#{ENV['SYSTEM_PROBE_BIN']}/minimized-btfs.tar.xz", "#{install_dir}/embedded/share/system-probe/ebpf/co-re/btf/minimized-btfs.tar.xz"

copy 'pkg/ebpf/c/COPYING', "#{install_dir}/embedded/share/system-probe/ebpf/"
end

0 comments on commit d6d2f07

Please sign in to comment.