On Tue, 2010-09-21 at 13:48 +0200, Stephane Eranian wrote: > The main issue I see with this is that it relies on having at least one > task in the cgroup when you start the measurement. That is certainly > not always the case.
Hmm, indeed. One thing we can do about that is move perf into the cgroup, create the counter (disabled) using self to identify the cgroup, move perf back to where it came from, and enable the counter. Its just that I prefer to keep the attach state in the syscall arguments and not the perf_event_attr struct. cgroups are task objects, so it makes sense to use the task attach to indicate the cgroup. The empty cgroup case is indeed a tad unfortunate. Not having to open more files and pass fds around was also a nice benefit. ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel