diff options
author | Yonatan Goldschmidt <yonatan.goldschmidt@granulate.io> | 2020-11-05 02:54:18 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-02-03 17:10:44 +0100 |
commit | 2b51c71be59960a5b5b36fd4b151002d51166faa (patch) | |
tree | 5f8e3755d8a1335e782676194035528aa018d1fb /tools/perf/util/namespaces.h | |
parent | perf tools: Use scandir() to iterate threads when synthesizing PERF_RECORD_ e... (diff) | |
download | linux-2b51c71be59960a5b5b36fd4b151002d51166faa.tar.xz linux-2b51c71be59960a5b5b36fd4b151002d51166faa.zip |
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 <yonatan.goldschmidt@granulate.io>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: https://lore.kernel.org/r/20201105015418.1725218-1-yonatan.goldschmidt@granulate.io
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | tools/perf/util/namespaces.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; }; |