[RFC PATCH] perf: Container-aware tracing support

2017-01-12 Thread Aravinda Prasad
The RFC patch supports filtering container specific events when perf tool is executed inside a container. Unlike previous approaches, this approach lets the user decide what is a container through a set of kernel configs. The main reason for such an approach is the lack of container-unique identif

Re: [RFC PATCH] perf: Container-aware tracing support

2015-07-17 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Jul 15, 2015 at 02:38:36PM +0530, Aravinda Prasad wrote: > > Current tracing infrastructure such as perf and ftrace reports system > > wide data when invoked inside a container. It is required to restrict > > events specific to a container context when such tool

Re: [RFC PATCH] perf: Container-aware tracing support

2015-07-17 Thread Aravinda Prasad
On Friday 17 July 2015 03:49 PM, Peter Zijlstra wrote: > On Wed, Jul 15, 2015 at 09:51:52PM +0530, Aravinda Prasad wrote: + } else if (task_active_pid_ns(current) != &init_pid_ns) { >>> >>> Why the pid namespace? >> >> This comes from my understanding of container -- having at least a >> se

Re: [RFC PATCH] perf: Container-aware tracing support

2015-07-17 Thread Peter Zijlstra
On Wed, Jul 15, 2015 at 09:51:52PM +0530, Aravinda Prasad wrote: > >> + } else if (task_active_pid_ns(current) != &init_pid_ns) { > > > > Why the pid namespace? > > This comes from my understanding of container -- having at least a > separate PID namespace with processes inside a container group

Re: [RFC PATCH] perf: Container-aware tracing support

2015-07-15 Thread Aravinda Prasad
On Wednesday 15 July 2015 06:17 PM, Peter Zijlstra wrote: > On Wed, Jul 15, 2015 at 02:38:36PM +0530, Aravinda Prasad wrote: >> Current tracing infrastructure such as perf and ftrace reports system >> wide data when invoked inside a container. It is required to restrict >> events specific to a co

Re: [RFC PATCH] perf: Container-aware tracing support

2015-07-15 Thread Peter Zijlstra
On Wed, Jul 15, 2015 at 02:38:36PM +0530, Aravinda Prasad wrote: > Current tracing infrastructure such as perf and ftrace reports system > wide data when invoked inside a container. It is required to restrict > events specific to a container context when such tools are invoked > inside a container.

[RFC PATCH] perf: Container-aware tracing support

2015-07-15 Thread Aravinda Prasad
Current tracing infrastructure such as perf and ftrace reports system wide data when invoked inside a container. It is required to restrict events specific to a container context when such tools are invoked inside a container. This RFC patch supports filtering container specific events, without an