From 02f589705cba9abe828bc670196efeac32a9a790 Mon Sep 17 00:00:00 2001 From: Qiao Nuohan Date: Sun, 24 Aug 2014 10:56:50 +0800 Subject: [PATCH 20/23] x86_64: modify command p only to display online cpus' data command p can be used to display data of per-cpu symbol. This patch is used to 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 d1109a8..55e71d5 100755 --- a/symbols.c +++ b/symbols.c @@ -6836,6 +6836,9 @@ display_per_cpu_info(struct syment *sp, int radix, char *cpuspec) module_symbol(sp->value, NULL, NULL, NULL, *gdb_output_radix); for (c = 0; c < kt->cpus; c++) { + if (check_offline_cpu(c)) + continue; + if (cpus && !NUM_IN_BITMAP(cpus, c)) continue; addr = sp->value + kt->__per_cpu_offset[c]; -- 1.8.5.3