--- /dev/null	2025-06-06 01:34:20.156554474 -0500
+++ ./vendor/github.com/elastic/elastic-agent-system-metrics/metric/system/numcpu/cpu_aix.go	2025-06-06 01:33:02.386814827 -0500
@@ -0,0 +1,38 @@
+// Licensed to Elasticsearch B.V. under one or more contributor
+// license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright
+// ownership. Elasticsearch B.V. licenses this file to you under
+// the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+//go:build aix
+// +build aix
+
+package numcpu
+
+/*
+#cgo LDFLAGS: -lperfstat
+#include <libperfstat.h>
+*/
+import "C"
+
+func main() (int) {
+    // Call perfstat_cpu(NULL, NULL, sizeof(struct), 0)
+    count := C.perfstat_cpu(nil, nil, C.sizeof_perfstat_cpu_t, 0)
+    return int(count)
+}
+
+// getCPUTotals gets the global CPU stats
+func getCPU() (int, bool, error) {
+    return main(), true, nil
+}
