Can anyone give me better technical answer on difference between profiling using perf
at kernel
vs user
vs system
space?
The perf
documentation has details here, but I am not sure if I collect data at user space, will that be more insightful than collecting at kernel space?
To give more details, what will be major difference between following perf stat
command.
System Wide
perf stat -a --per-core -e instructions <application>
User Space
perf stat -a --per-core -e instructions:u <application>
Kernel Space
perf stat -a --per-core -e instructions:k <application>
User and Kernel Space
perf stat -a --per-core -e instructions:uk <application>