diff options
-rw-r--r-- | arch/ia64/kernel/machine_kexec.c | 20 | ||||
-rw-r--r-- | arch/x86/kernel/machine_kexec_32.c | 6 | ||||
-rw-r--r-- | arch/x86/kernel/machine_kexec_64.c | 4 | ||||
-rw-r--r-- | include/linux/kexec.h | 14 | ||||
-rw-r--r-- | kernel/kexec.c | 68 |
5 files changed, 56 insertions, 56 deletions
diff --git a/arch/ia64/kernel/machine_kexec.c b/arch/ia64/kernel/machine_kexec.c index c55a0909b901..0dd3b2394cdd 100644 --- a/arch/ia64/kernel/machine_kexec.c +++ b/arch/ia64/kernel/machine_kexec.c | |||
@@ -128,19 +128,19 @@ void machine_kexec(struct kimage *image) | |||
128 | void arch_crash_save_vmcoreinfo(void) | 128 | void arch_crash_save_vmcoreinfo(void) |
129 | { | 129 | { |
130 | #ifdef CONFIG_ARCH_DISCONTIGMEM_ENABLE | 130 | #ifdef CONFIG_ARCH_DISCONTIGMEM_ENABLE |
131 | SYMBOL(pgdat_list); | 131 | VMCOREINFO_SYMBOL(pgdat_list); |
132 | LENGTH(pgdat_list, MAX_NUMNODES); | 132 | VMCOREINFO_LENGTH(pgdat_list, MAX_NUMNODES); |
133 | 133 | ||
134 | SYMBOL(node_memblk); | 134 | VMCOREINFO_SYMBOL(node_memblk); |
135 | LENGTH(node_memblk, NR_NODE_MEMBLKS); | 135 | VMCOREINFO_LENGTH(node_memblk, NR_NODE_MEMBLKS); |
136 | SIZE(node_memblk_s); | 136 | VMCOREINFO_SIZE(node_memblk_s); |
137 | OFFSET(node_memblk_s, start_paddr); | 137 | VMCOREINFO_OFFSET(node_memblk_s, start_paddr); |
138 | OFFSET(node_memblk_s, size); | 138 | VMCOREINFO_OFFSET(node_memblk_s, size); |
139 | #endif | 139 | #endif |
140 | #ifdef CONFIG_PGTABLE_3 | 140 | #ifdef CONFIG_PGTABLE_3 |
141 | CONFIG(PGTABLE_3); | 141 | VMCOREINFO_CONFIG(PGTABLE_3); |
142 | #elif CONFIG_PGTABLE_4 | 142 | #elif CONFIG_PGTABLE_4 |
143 | CONFIG(PGTABLE_4); | 143 | VMCOREINFO_CONFIG(PGTABLE_4); |
144 | #endif | 144 | #endif |
145 | } | 145 | } |
146 | 146 | ||
diff --git a/arch/x86/kernel/machine_kexec_32.c b/arch/x86/kernel/machine_kexec_32.c index ae20fa5afa62..8459ca64bc2f 100644 --- a/arch/x86/kernel/machine_kexec_32.c +++ b/arch/x86/kernel/machine_kexec_32.c | |||
@@ -174,11 +174,11 @@ early_param("crashkernel", parse_crashkernel); | |||
174 | void arch_crash_save_vmcoreinfo(void) | 174 | void arch_crash_save_vmcoreinfo(void) |
175 | { | 175 | { |
176 | #ifdef CONFIG_ARCH_DISCONTIGMEM_ENABLE | 176 | #ifdef CONFIG_ARCH_DISCONTIGMEM_ENABLE |
177 | SYMBOL(node_data); | 177 | VMCOREINFO_SYMBOL(node_data); |
178 | LENGTH(node_data, MAX_NUMNODES); | 178 | VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); |
179 | #endif | 179 | #endif |
180 | #ifdef CONFIG_X86_PAE | 180 | #ifdef CONFIG_X86_PAE |
181 | CONFIG(X86_PAE); | 181 | VMCOREINFO_CONFIG(X86_PAE); |
182 | #endif | 182 | #endif |
183 | } | 183 | } |
184 | 184 | ||
diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c index e333ea110a58..7450b69710b5 100644 --- a/arch/x86/kernel/machine_kexec_64.c +++ b/arch/x86/kernel/machine_kexec_64.c | |||
@@ -261,8 +261,8 @@ early_param("crashkernel", setup_crashkernel); | |||
261 | void arch_crash_save_vmcoreinfo(void) | 261 | void arch_crash_save_vmcoreinfo(void) |
262 | { | 262 | { |
263 | #ifdef CONFIG_ARCH_DISCONTIGMEM_ENABLE | 263 | #ifdef CONFIG_ARCH_DISCONTIGMEM_ENABLE |
264 | SYMBOL(node_data); | 264 | VMCOREINFO_SYMBOL(node_data); |
265 | LENGTH(node_data, MAX_NUMNODES); | 265 | VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); |
266 | #endif | 266 | #endif |
267 | } | 267 | } |
268 | 268 | ||
diff --git a/include/linux/kexec.h b/include/linux/kexec.h index db15a94769b3..ad4b82ce84af 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h | |||
@@ -127,22 +127,22 @@ void vmcoreinfo_append_str(const char *fmt, ...) | |||
127 | __attribute__ ((format (printf, 1, 2))); | 127 | __attribute__ ((format (printf, 1, 2))); |
128 | unsigned long paddr_vmcoreinfo_note(void); | 128 | unsigned long paddr_vmcoreinfo_note(void); |
129 | 129 | ||
130 | #define SYMBOL(name) \ | 130 | #define VMCOREINFO_SYMBOL(name) \ |
131 | vmcoreinfo_append_str("SYMBOL(%s)=%lx\n", #name, (unsigned long)&name) | 131 | vmcoreinfo_append_str("SYMBOL(%s)=%lx\n", #name, (unsigned long)&name) |
132 | #define SIZE(name) \ | 132 | #define VMCOREINFO_SIZE(name) \ |
133 | vmcoreinfo_append_str("SIZE(%s)=%lu\n", #name, \ | 133 | vmcoreinfo_append_str("SIZE(%s)=%lu\n", #name, \ |
134 | (unsigned long)sizeof(struct name)) | 134 | (unsigned long)sizeof(struct name)) |
135 | #define TYPEDEF_SIZE(name) \ | 135 | #define VMCOREINFO_TYPEDEF_SIZE(name) \ |
136 | vmcoreinfo_append_str("SIZE(%s)=%lu\n", #name, \ | 136 | vmcoreinfo_append_str("SIZE(%s)=%lu\n", #name, \ |
137 | (unsigned long)sizeof(name)) | 137 | (unsigned long)sizeof(name)) |
138 | #define OFFSET(name, field) \ | 138 | #define VMCOREINFO_OFFSET(name, field) \ |
139 | vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \ | 139 | vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \ |
140 | (unsigned long)&(((struct name *)0)->field)) | 140 | (unsigned long)&(((struct name *)0)->field)) |
141 | #define LENGTH(name, value) \ | 141 | #define VMCOREINFO_LENGTH(name, value) \ |
142 | vmcoreinfo_append_str("LENGTH(%s)=%lu\n", #name, (unsigned long)value) | 142 | vmcoreinfo_append_str("LENGTH(%s)=%lu\n", #name, (unsigned long)value) |
143 | #define NUMBER(name) \ | 143 | #define VMCOREINFO_NUMBER(name) \ |
144 | vmcoreinfo_append_str("NUMBER(%s)=%ld\n", #name, (long)name) | 144 | vmcoreinfo_append_str("NUMBER(%s)=%ld\n", #name, (long)name) |
145 | #define CONFIG(name) \ | 145 | #define VMCOREINFO_CONFIG(name) \ |
146 | vmcoreinfo_append_str("CONFIG_%s=y\n", #name) | 146 | vmcoreinfo_append_str("CONFIG_%s=y\n", #name) |
147 | 147 | ||
148 | extern struct kimage *kexec_image; | 148 | extern struct kimage *kexec_image; |
diff --git a/kernel/kexec.c b/kernel/kexec.c index 578bde9bbc98..7885269b0da2 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c | |||
@@ -1198,47 +1198,47 @@ static int __init crash_save_vmcoreinfo_init(void) | |||
1198 | vmcoreinfo_append_str("OSRELEASE=%s\n", init_uts_ns.name.release); | 1198 | vmcoreinfo_append_str("OSRELEASE=%s\n", init_uts_ns.name.release); |
1199 | vmcoreinfo_append_str("PAGESIZE=%ld\n", PAGE_SIZE); | 1199 | vmcoreinfo_append_str("PAGESIZE=%ld\n", PAGE_SIZE); |
1200 | 1200 | ||
1201 | SYMBOL(init_uts_ns); | 1201 | VMCOREINFO_SYMBOL(init_uts_ns); |
1202 | SYMBOL(node_online_map); | 1202 | VMCOREINFO_SYMBOL(node_online_map); |
1203 | SYMBOL(swapper_pg_dir); | 1203 | VMCOREINFO_SYMBOL(swapper_pg_dir); |
1204 | SYMBOL(_stext); | 1204 | VMCOREINFO_SYMBOL(_stext); |
1205 | 1205 | ||
1206 | #ifndef CONFIG_NEED_MULTIPLE_NODES | 1206 | #ifndef CONFIG_NEED_MULTIPLE_NODES |
1207 | SYMBOL(mem_map); | 1207 | VMCOREINFO_SYMBOL(mem_map); |
1208 | SYMBOL(contig_page_data); | 1208 | VMCOREINFO_SYMBOL(contig_page_data); |
1209 | #endif | 1209 | #endif |
1210 | #ifdef CONFIG_SPARSEMEM | 1210 | #ifdef CONFIG_SPARSEMEM |
1211 | SYMBOL(mem_section); | 1211 | VMCOREINFO_SYMBOL(mem_section); |
1212 | LENGTH(mem_section, NR_SECTION_ROOTS); | 1212 | VMCOREINFO_LENGTH(mem_section, NR_SECTION_ROOTS); |
1213 | SIZE(mem_section); | 1213 | VMCOREINFO_SIZE(mem_section); |
1214 | OFFSET(mem_section, section_mem_map); | 1214 | VMCOREINFO_OFFSET(mem_section, section_mem_map); |
1215 | #endif | 1215 | #endif |
1216 | SIZE(page); | 1216 | VMCOREINFO_SIZE(page); |
1217 | SIZE(pglist_data); | 1217 | VMCOREINFO_SIZE(pglist_data); |
1218 | SIZE(zone); | 1218 | VMCOREINFO_SIZE(zone); |
1219 | SIZE(free_area); | 1219 | VMCOREINFO_SIZE(free_area); |
1220 | SIZE(list_head); | 1220 | VMCOREINFO_SIZE(list_head); |
1221 | TYPEDEF_SIZE(nodemask_t); | 1221 | VMCOREINFO_TYPEDEF_SIZE(nodemask_t); |
1222 | OFFSET(page, flags); | 1222 | VMCOREINFO_OFFSET(page, flags); |
1223 | OFFSET(page, _count); | 1223 | VMCOREINFO_OFFSET(page, _count); |
1224 | OFFSET(page, mapping); | 1224 | VMCOREINFO_OFFSET(page, mapping); |
1225 | OFFSET(page, lru); | 1225 | VMCOREINFO_OFFSET(page, lru); |
1226 | OFFSET(pglist_data, node_zones); | 1226 | VMCOREINFO_OFFSET(pglist_data, node_zones); |
1227 | OFFSET(pglist_data, nr_zones); | 1227 | VMCOREINFO_OFFSET(pglist_data, nr_zones); |
1228 | #ifdef CONFIG_FLAT_NODE_MEM_MAP | 1228 | #ifdef CONFIG_FLAT_NODE_MEM_MAP |
1229 | OFFSET(pglist_data, node_mem_map); | 1229 | VMCOREINFO_OFFSET(pglist_data, node_mem_map); |
1230 | #endif | 1230 | #endif |
1231 | OFFSET(pglist_data, node_start_pfn); | 1231 | VMCOREINFO_OFFSET(pglist_data, node_start_pfn); |
1232 | OFFSET(pglist_data, node_spanned_pages); | 1232 | VMCOREINFO_OFFSET(pglist_data, node_spanned_pages); |
1233 | OFFSET(pglist_data, node_id); | 1233 | VMCOREINFO_OFFSET(pglist_data, node_id); |
1234 | OFFSET(zone, free_area); | 1234 | VMCOREINFO_OFFSET(zone, free_area); |
1235 | OFFSET(zone, vm_stat); | 1235 | VMCOREINFO_OFFSET(zone, vm_stat); |
1236 | OFFSET(zone, spanned_pages); | 1236 | VMCOREINFO_OFFSET(zone, spanned_pages); |
1237 | OFFSET(free_area, free_list); | 1237 | VMCOREINFO_OFFSET(free_area, free_list); |
1238 | OFFSET(list_head, next); | 1238 | VMCOREINFO_OFFSET(list_head, next); |
1239 | OFFSET(list_head, prev); | 1239 | VMCOREINFO_OFFSET(list_head, prev); |
1240 | LENGTH(zone.free_area, MAX_ORDER); | 1240 | VMCOREINFO_LENGTH(zone.free_area, MAX_ORDER); |
1241 | NUMBER(NR_FREE_PAGES); | 1241 | VMCOREINFO_NUMBER(NR_FREE_PAGES); |
1242 | 1242 | ||
1243 | arch_crash_save_vmcoreinfo(); | 1243 | arch_crash_save_vmcoreinfo(); |
1244 | 1244 | ||