aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShaojie Sun <shaojie.sun@linaro.org>2013-09-10 18:34:04 +0800
committerDaniel Lezcano <daniel.lezcano@linaro.org>2013-09-10 12:42:00 +0200
commit5d4997b17d8e88d45ef2b5fd0a5a74024af34298 (patch)
treec55acb26d00d9917aeffc7b1b96341b24a865824 /Makefile
parent9d693819af2d1e2dcd22f8e4fde5f1e6f245e7ca (diff)
Add cpu topology info
We read cpu top[ology info from /sys/devices/system/cpuX/topology. Packed them into cpu_topology struct. And print in next format. clusterA: coreX cpuA cpuB coreY cpuC cpuD clusterB: coreS cpuE cpuF coreT cpuG cpuH ... When cpu topology info could be read, CPU idle state is shown ordered by topology. When cpu topology info could not be read, CPU idle state is shown in old order. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 05c3f4f..7f2ff07 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
CFLAGS?=-g -Wall
CC?=gcc
-OBJS = idlestat.o trace.o utils.o
+OBJS = idlestat.o topology.o trace.o utils.o
default: idlestat