aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>2007-10-17 02:27:30 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:42:54 -0400
commitbcbba6c10ef6b14b0542d7ed7380e95168175818 (patch)
tree052c7c8062d7348a7caf8c4780d2a65aa81a9ca7 /kernel
parent00cab92f9e91c0feeaca11a485b15175304779d5 (diff)
add-vmcore: add a prefix "VMCOREINFO_" to the vmcoreinfo macros
Add a prefix "VMCOREINFO_" to the vmcoreinfo macros. Old vmcoreinfo macros were defined as generic names SYMBOL/SIZE/OFFSET /LENGTH/CONFIG, and it is impossible to grep for them. So these names should be changed. This discussion is the following: http://www.ussg.iu.edu/hypermail/linux/kernel/0709.1/0415.html Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/kexec.c68
1 files changed, 34 insertions, 34 deletions
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