From 8e0fa9b59c9fa50ffb1ce2fa07fcb33a93efb5c6 Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Mon, 1 Feb 2016 18:12:46 +0000 Subject: [PATCH] print namespaces found --- probe/endpoint/procspy/proc.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/probe/endpoint/procspy/proc.go b/probe/endpoint/procspy/proc.go index 0725b61d9d..bfbe3e1622 100644 --- a/probe/endpoint/procspy/proc.go +++ b/probe/endpoint/procspy/proc.go @@ -58,6 +58,13 @@ func walkProcPid(buf *bytes.Buffer, walker process.Walker, namespaceTicker <-cha log.Printf("debug: walkProcPid: found %d namespaces\n", len(namespaces)) + keys := make([]uint64, 0, len(namespaces)) + for k := range namespaces { + keys = append(keys, k) + } + // This should match: sudo readlink /proc/*/ns/net | sort | uniq + log.Printf("debug: walkProcPid: namespaces %v\n", keys) + for _, procs := range namespaces { <-namespaceTicker