]> git.proxmox.com Git - grub2.git/commitdiff
Make enable of disk cache statistics code configurable.
authorSzymon Janc <szymon@janc.net.pl>
Fri, 19 Aug 2011 19:28:09 +0000 (21:28 +0200)
committerSzymon Janc <szymon@janc.net.pl>
Fri, 19 Aug 2011 19:28:09 +0000 (21:28 +0200)
* configure.ac: --enable-cache-stats added.
* config.h.in (DISK_CACHE_STATS): New define.
* grub-core/Makefile.core.def (cacheinfo): New command.
* include/grub/disk.h(grub_disk_cache_get_performance): New function.
* grub-core/commands/cacheinfo.c: New file.
* grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
moved to cacheinfo.c.
* grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
debug code.
* include/grub/disk.h: Likewise.


No differences found