Hari Bathini e422267322 perf: Add PERF_RECORD_NAMESPACES to include namespaces related info
With the advert of container technologies like docker, that depend on
namespaces for isolation, there is a need for tracing support for
namespaces. This patch introduces new PERF_RECORD_NAMESPACES event for
recording namespaces related info. By recording info for every
namespace, it is left to userspace to take a call on the definition of a
container and trace containers by updating perf tool accordingly.

Each namespace has a combination of device and inode numbers. Though
every namespace has the same device number currently, that may change in
future to avoid the need for a namespace of namespaces. Considering such
possibility, record both device and inode numbers separately for each
namespace.

Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Cc: Aravinda Prasad <aravinda@linux.vnet.ibm.com>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Sargun Dhillon <sargun@sargun.me>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/148891929686.25309.2827618988917007768.stgit@hbathini.in.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-03-13 15:57:41 -03:00
..
2016-12-14 20:42:45 -08:00
2017-02-24 19:04:57 +01:00
2017-01-24 12:37:43 -08:00
2017-02-27 19:59:21 -08:00
2017-03-01 09:50:58 -08:00
2016-12-14 10:49:33 -08:00
2017-02-27 19:59:21 -08:00
2016-07-08 16:23:11 +02:00
2017-02-23 15:57:04 -08:00
2016-09-14 20:37:50 +02:00
2017-02-20 17:55:15 -08:00
2016-12-22 22:58:37 -05:00
2016-10-19 14:34:36 -04:00
2017-02-10 15:52:24 -05:00
2017-03-02 08:56:04 -07:00
2017-01-25 13:17:47 -05:00
2016-12-08 13:31:11 -05:00
2016-08-11 09:41:35 -06:00
2016-10-25 11:08:28 +08:00
2016-12-27 14:52:47 -05:00
2016-12-08 16:37:33 -08:00
2017-02-24 17:46:55 -08:00
2017-02-04 00:47:59 +01:00
2016-12-05 19:01:16 -05:00
2016-10-28 08:48:16 -06:00
2017-02-27 10:07:47 -08:00
2016-12-05 19:01:16 -05:00
2016-12-15 13:49:34 -08:00
2016-12-25 17:21:22 +01:00
2017-02-11 20:59:41 -05:00
2016-09-14 09:18:09 -06:00
2017-01-05 15:01:55 -06:00
2017-02-01 09:13:45 +01:00
2016-12-16 09:26:42 -08:00
2016-12-12 18:55:06 -08:00
2016-12-25 17:21:23 +01:00
2017-02-24 17:46:57 -08:00
2016-09-27 12:33:47 +02:00
2016-12-06 11:05:46 +01:00
2017-02-22 17:08:33 -08:00
2017-01-12 16:48:26 -05:00
2017-02-23 11:53:22 -08:00
2016-07-29 12:17:52 -07:00
2016-08-28 23:32:41 -04:00
2017-03-01 09:50:58 -08:00
2016-11-16 18:32:02 -05:00
2017-02-22 19:23:14 -08:00
2016-12-12 18:55:07 -08:00
2016-07-08 18:14:03 -03:00
2016-12-06 10:17:03 +02:00
2017-03-02 08:56:04 -07:00
2017-02-20 10:15:11 -05:00
2016-10-31 16:18:30 -04:00
2016-10-14 11:36:59 -07:00
2016-12-13 11:42:18 -08:00
2016-07-12 19:25:38 -07:00
2016-09-27 21:52:00 -04:00
2016-12-13 16:07:55 -08:00
2016-11-15 16:34:27 -08:00
2017-02-13 21:44:09 -05:00
2016-07-06 10:51:14 +01:00
2017-02-27 18:43:46 -08:00
2017-01-09 16:07:38 -05:00
2016-10-05 18:23:36 -04:00
2017-02-03 11:19:34 -05:00
2016-12-25 17:21:22 +01:00
2017-01-10 18:31:55 -08:00
2016-07-19 17:43:38 +03:00
2017-02-03 10:17:02 +01:00
2016-12-09 22:12:21 -05:00
2017-02-10 16:34:17 +00:00
2016-12-12 18:55:08 -08:00
2017-01-11 09:21:41 +01:00
2017-02-02 15:22:18 -05:00