Re: [PATCH] cgroup: add tracepoints to track cgroup events

2014-08-21 Thread Andrea Righi
On Thu, Aug 21, 2014 at 07:45:14PM -0400, Steven Rostedt wrote: > On Thu, 21 Aug 2014 12:07:01 -0500 > Tejun Heo wrote: > > > Hello, Anrea. > > > > On Thu, Aug 21, 2014 at 11:00:02AM -0600, Andrea Righi wrote: > > > hmm... am I missing something or we already support directory events? > > > > A

Re: [PATCH] cgroup: add tracepoints to track cgroup events

2014-08-21 Thread Steven Rostedt
On Thu, 21 Aug 2014 12:07:01 -0500 Tejun Heo wrote: > Hello, Anrea. > > On Thu, Aug 21, 2014 at 11:00:02AM -0600, Andrea Righi wrote: > > hmm... am I missing something or we already support directory events? > > Ah, right, those mkdir/rmdir and writes automatically generate those > events. > >

Re: [PATCH] cgroup: add tracepoints to track cgroup events

2014-08-21 Thread Andrea Righi
On Thu, Aug 21, 2014 at 12:07:01PM -0500, Tejun Heo wrote: ... > > I still need to figure out a smart way to track which PIDs are > > added/removed to/from cgroup.procs from userland (inotifywait + git? :)), > > but all the other informations provided by my tracepoint patch seem to > > be already a

Re: [PATCH] cgroup: add tracepoints to track cgroup events

2014-08-21 Thread Tejun Heo
Hello, Anrea. On Thu, Aug 21, 2014 at 11:00:02AM -0600, Andrea Righi wrote: > hmm... am I missing something or we already support directory events? Ah, right, those mkdir/rmdir and writes automatically generate those events. > root@Dell:~# grep cgroups /proc/mounts > none /cgroups cgroup > rw,r

Re: [PATCH] cgroup: add tracepoints to track cgroup events

2014-08-21 Thread Andrea Righi
On Thu, Aug 21, 2014 at 09:35:41AM -0600, Andrea Righi wrote: > On Thu, Aug 21, 2014 at 09:13:30AM -0500, Tejun Heo wrote: > > Hello, > > > > On Wed, Aug 20, 2014 at 09:46:25PM -0600, Andrea Righi wrote: > > > This patch adds the following tracepoints: > > > o trace_cgroup_create when a new

Re: [PATCH] cgroup: add tracepoints to track cgroup events

2014-08-21 Thread Andrea Righi
On Thu, Aug 21, 2014 at 09:13:30AM -0500, Tejun Heo wrote: > Hello, > > On Wed, Aug 20, 2014 at 09:46:25PM -0600, Andrea Righi wrote: > > This patch adds the following tracepoints: > > o trace_cgroup_create when a new cgroup is created > > o trace_cgroup_destroy when a cgroup is remov

Re: [PATCH] cgroup: add tracepoints to track cgroup events

2014-08-21 Thread Tejun Heo
Hello, On Wed, Aug 20, 2014 at 09:46:25PM -0600, Andrea Righi wrote: > This patch adds the following tracepoints: > o trace_cgroup_create when a new cgroup is created > o trace_cgroup_destroy when a cgroup is removed > o trace_cgroup_task_migrate when a task/thread is moved from a cg

[PATCH] cgroup: add tracepoints to track cgroup events

2014-08-20 Thread Andrea Righi
This patch adds the following tracepoints: o trace_cgroup_create when a new cgroup is created o trace_cgroup_destroy when a cgroup is removed o trace_cgroup_task_migrate when a task/thread is moved from a cgroup to another The purpose of these tracepoints is to identify and help cgr