perf report: Implement --sort cpu
[deliverable/linux.git] / tools / perf / builtin-record.c
index f28c4bbd801fd3567df703f6283696d01164dfc0..5e5c6403a3158b01854649a924d23841466e71c9 100644 (file)
@@ -274,6 +274,9 @@ static void create_counter(int counter, int cpu)
        if (call_graph)
                attr->sample_type       |= PERF_SAMPLE_CALLCHAIN;
 
+       if (system_wide)
+               attr->sample_type       |= PERF_SAMPLE_CPU;
+
        if (raw_samples) {
                attr->sample_type       |= PERF_SAMPLE_TIME;
                attr->sample_type       |= PERF_SAMPLE_RAW;
This page took 0.036665 seconds and 5 git commands to generate.