Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

From: Andi Kleen
Date: Mon Sep 30 2019 - 22:18:08 EST


> > I think it's useful. Makes it easy to do kernel/user break downs.
> > perf record should support the same.
>
> Don't we have this already with:
>
> [root@quaco ~]# perf stat -e cycles:u,instructions:u,cycles:k,instructions:k -a -- sleep 1

This only works for simple cases. Try it for --topdown or multiple -M metrics.

-Andi