From 84a646f855c30981aa04e999ce16365d4ef3760e Mon Sep 17 00:00:00 2001 From: Qiao Nuohan Date: Sun, 24 Aug 2014 10:47:01 +0800 Subject: [PATCH 19/23] x86_64: modify struct/union/* [:cpuspec] only to display online cpus' data with [:cpuspec] struct/union/* will display per-cpu structure/union of the specified cpus. This patch will skip offline cpus. Signed-off-by: Qiao Nuohan --- symbols.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/symbols.c b/symbols.c index 4c6fbf4..d1109a8 100755 --- a/symbols.c +++ b/symbols.c @@ -6135,6 +6135,9 @@ cmd_datatype_common(ulong flags) do_datatype_declaration(dm, flags | (dm->flags & TYPEDEF)); } else if (cpus) { for (c = 0; c < kt->cpus; c++) { + if (check_offline_cpu(c)) + continue; + ulong cpuaddr; if (!NUM_IN_BITMAP(cpus, c)) -- 1.8.5.3