William Cohen <[email protected]> writes:

> Hi,
>
> I have been looking at how perf supports cgroups and containers.  The
> "-G" option allows limiting the data collected to a particular cgroup.
> Thus, one can use the option to collect some information about a
> particular cgroup with something like:
>
> $ sudo perf stat -a -e cycles  -G
> machine.slice/machine-qemu\\x2drhel7\\x2dx86_64.scope -e instructions
> -G machine.slice/machine-qemu\\x2drhel7\\x2dx86_64.scope -- sleep 1

You can specify multiple events with -e. Typically you should anyways,
to define appropiate groups with {}

perf record -a -e cycles,instructions -G cgroup  ...

-Andi

-- 
[email protected] -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to