From 2b51c71be59960a5b5b36fd4b151002d51166faa Mon Sep 17 00:00:00 2001 From: Yonatan Goldschmidt Date: Thu, 5 Nov 2020 03:54:18 +0200 Subject: perf namespaces: Add 'in_pidns' to nsinfo struct Provides an accurate mean to determine if the owner thread is in a different PID namespace. Signed-off-by: Yonatan Goldschmidt Acked-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Alexander Shishkin Cc: Ingo Molnar Cc: Mark Rutland Cc: Peter Zijlstra Cc: Stephane Eranian Link: https://lore.kernel.org/r/20201105015418.1725218-1-yonatan.goldschmidt@granulate.io Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/namespaces.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/perf/util/namespaces.h') diff --git a/tools/perf/util/namespaces.h b/tools/perf/util/namespaces.h index 4b33f684eddd..1cc8637cf885 100644 --- a/tools/perf/util/namespaces.h +++ b/tools/perf/util/namespaces.h @@ -33,6 +33,7 @@ struct nsinfo { pid_t tgid; pid_t nstgid; bool need_setns; + bool in_pidns; char *mntns_path; refcount_t refcnt; }; -- cgit v1.2.3