Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/agent/subcommands/launchgui/open_browser_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build freebsd || netbsd || openbsd || solaris || dragonfly || linux
//go:build freebsd || netbsd || openbsd || solaris || dragonfly || linux || aix

package launchgui

Expand Down
2 changes: 1 addition & 1 deletion comp/core/config/params_nix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build netbsd || openbsd || solaris || dragonfly || linux
//go:build netbsd || openbsd || solaris || dragonfly || linux || aix

package config

Expand Down
2 changes: 1 addition & 1 deletion comp/core/gui/guiimpl/platform_nix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build freebsd || netbsd || openbsd || solaris || dragonfly || linux
//go:build freebsd || netbsd || openbsd || solaris || dragonfly || linux || aix

package guiimpl

Expand Down
2 changes: 1 addition & 1 deletion comp/metadata/host/hostimpl/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build linux || windows || darwin
//go:build linux || windows || darwin || aix
Comment thread
pgimalac marked this conversation as resolved.

package hostimpl

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build windows || freebsd || netbsd || openbsd || solaris || dragonfly
//go:build windows || freebsd || netbsd || openbsd || solaris || dragonfly || aix

package resourcesimpl

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
//go:build !windows && !freebsd && !darwin
//go:build !windows && !freebsd && !darwin && !aix

package filehandles

Expand Down
21 changes: 21 additions & 0 deletions pkg/collector/corechecks/system/filehandles/file_handles_aix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build aix

package filehandles

import (
"github.com/DataDog/datadog-agent/pkg/collector/check"
"github.com/DataDog/datadog-agent/pkg/util/option"
)

// CheckName is the name of the check
const CheckName = "file_handle"

// Factory returns a no-op option because file handle metrics are not available on AIX.
func Factory() option.Option[func() check.Check] {
return option.None[func() check.Check]()
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
//go:build !windows && !freebsd && !darwin
//go:build !windows && !freebsd && !darwin && !aix

package filehandles

Expand Down
15 changes: 15 additions & 0 deletions pkg/networkdevice/pinger/pinger_aix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build aix

package pinger

import "errors"

// New creates a new pinger; not supported on AIX.
func New(_ Config) (Pinger, error) {
return nil, errors.New("pinger not supported on AIX")
}
2 changes: 1 addition & 1 deletion pkg/system-probe/config/config_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build unix
//go:build linux || darwin

package config

Expand Down
2 changes: 1 addition & 1 deletion pkg/system-probe/config/config_unsupported.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build !unix && !windows
//go:build !linux && !darwin && !windows

package config

Expand Down
4 changes: 4 additions & 0 deletions pkg/util/defaultpaths/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ go_library(
importpath = "github.com/DataDog/datadog-agent/pkg/util/defaultpaths",
visibility = ["//visibility:public"],
deps = select({
"@rules_go//go/platform:aix": [
"//pkg/util/executable",
"//pkg/util/flavor",
],
"@rules_go//go/platform:android": [
"//pkg/util/executable",
"//pkg/util/flavor",
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/defaultpaths/path_nix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build netbsd || openbsd || solaris || dragonfly || linux
//go:build netbsd || openbsd || solaris || dragonfly || linux || aix

package defaultpaths

Expand Down
1 change: 1 addition & 0 deletions pkg/util/lsof/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go_library(
srcs = [
"errors.go",
"lsof.go",
"lsof_aix.go",
"lsof_darwin.go",
"lsof_linux.go",
"lsof_windows.go",
Expand Down
12 changes: 12 additions & 0 deletions pkg/util/lsof/lsof_aix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.

//go:build aix

package lsof

func openFiles(_ int) (Files, error) {
return nil, ErrNotImplemented
}
14 changes: 14 additions & 0 deletions pkg/util/port/portlist/poller_aix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2014-present Datadog, Inc.

//go:build aix

package portlist

import "errors"

func (p *Poller) init() {
p.initErr = errors.New("portlist polling not supported on AIX")
}
Loading