From 54b095949a0b19a7150de941753a8a600c21823e Mon Sep 17 00:00:00 2001 From: Christian Simon Date: Wed, 15 May 2024 11:06:37 +0100 Subject: [PATCH] pyroscope.java: add glibc detection for arm64 (#6900) Backport of https://github.com/grafana/alloy/pull/661 --- internal/component/pyroscope/java/asprof/asprof.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/component/pyroscope/java/asprof/asprof.go b/internal/component/pyroscope/java/asprof/asprof.go index e75a8a3ed502..9090792aa901 100644 --- a/internal/component/pyroscope/java/asprof/asprof.go +++ b/internal/component/pyroscope/java/asprof/asprof.go @@ -184,6 +184,9 @@ func isGlibcMapping(m *procfs.ProcMap) bool { if strings.Contains(m.Pathname, "x86_64-linux-gnu/libc-") { return true } + if strings.Contains(m.Pathname, "aarch64-linux-gnu/libc-") { + return true + } return false }