Am 15.05.2013 04:29, schrieb Qiao Nuohan: > Struct dump_bitmap is associated with a tmp file, and the tmp file can be used > to save data of bitmap in kdump-compressed format temporarily. > The following patch will use these functions to get the data of bitmap and > cache > them into tmp files. > > Signed-off-by: Qiao Nuohan <qiaonuo...@cn.fujitsu.com> > Reviewed-by: Zhang Xiaohe <zhan...@cn.fujitsu.com> > --- > Makefile.target | 2 +- > dump_bitmap.c | 171 > +++++++++++++++++++++++++++++++++++++++++++++++++ > include/dump_bitmap.h | 60 +++++++++++++++++ > 3 files changed, 232 insertions(+), 1 deletions(-) > create mode 100644 dump_bitmap.c > create mode 100644 include/dump_bitmap.h > > diff --git a/Makefile.target b/Makefile.target > index ce4391f..00d4f13 100644 > --- a/Makefile.target > +++ b/Makefile.target > @@ -112,7 +112,7 @@ obj-$(CONFIG_FDT) += device_tree.o > obj-$(CONFIG_KVM) += kvm-all.o > obj-y += memory.o savevm.o cputlb.o > obj-$(CONFIG_HAVE_GET_MEMORY_MAPPING) += memory_mapping.o > -obj-$(CONFIG_HAVE_CORE_DUMP) += dump.o > +obj-$(CONFIG_HAVE_CORE_DUMP) += dump.o dump_bitmap.o > obj-$(CONFIG_NO_GET_MEMORY_MAPPING) += memory_mapping-stub.o > obj-$(CONFIG_NO_CORE_DUMP) += dump-stub.o > LIBS+=$(libs_softmmu) [snip]
Jens and me have been working towards removing the dependency on CONFIG_HAVE_CORE_DUMP. Would there be any issue building this code unconditionally using obj-y += dump_bitmap.o ? Regards, Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg