[Crash-utility] [PATCH v2] diskdump: use mmap/madvise to improve the start-up

Huang Shijie shijie at os.amperecomputing.com
Wed Apr 6 11:27:30 UTC 2022


Hi Kazu,
On Wed, Apr 06, 2022 at 02:41:16AM +0000, HAGIO KAZUHITO(萩尾 一仁) wrote:
> > >
> > > diskdump.c: In function ‘read_dump_header’:
> > > diskdump.c:543:10: warning: unused variable ‘bytes_read’ [-Wunused-variable]
> > >   ssize_t bytes_read;
> > >           ^~~~~~~~~~
> > > diskdump.c:542:9: warning: unused variable ‘len’ [-Wunused-variable]
> > >   size_t len;
> > >          ^~~
> > > diskdump.c:541:8: warning: unused variable ‘bufptr’ [-Wunused-variable]
> > >   char *bufptr;
> > >         ^~~~~~
> > Sorry, I did not notice these warnings.
> > 
> > Maybe we can add -Werror to the Makefile...
> 
> Yes, "make Warn" does this.
By the way, we maybe need to:
 1.) add a "make help" for the Makefile..

 2.) add more examples about how to use the crash,
     such as ram dump.

 3.) add a new function to dump a range of page table.
     vtop is too simple..

Thanks
Huang Shijie 
     



More information about the Crash-utility mailing list