Add block device tracing facility

The implementation is in libblockdriver, and works transparently for
all block drivers. The new btrace(8) tool can be used to control block
tracing; see ``man btrace'' for details.
This commit is contained in:
David van Moolenbroek
2011-11-24 14:50:13 +01:00
parent a9f89a7290
commit fd4c2b74f3
20 changed files with 682 additions and 30 deletions

View File

@@ -3,7 +3,7 @@
.PATH: ${MINIXSRCDIR}/common/include/sys
INCS+= elf32.h elf64.h elf_common.h elf_generic.h \
ioc_file.h ioc_tape.h ioc_disk.h \
ioc_block.h ioc_file.h ioc_tape.h ioc_disk.h \
ioc_memory.h ioc_sound.h ioc_tty.h \
kbdio.h mtio.h svrctl.h video.h vm.h procfs.h elf_core.h exec_elf.h

View File

@@ -0,0 +1,15 @@
/* sys/ioc_block.h - Block ioctl() command codes.
*
*/
#ifndef _S_I_BLOCK_H
#define _S_I_BLOCK_H
#include <minix/ioctl.h>
#include <minix/btrace.h>
#define BIOCTRACEBUF _IOW('b', 1, size_t)
#define BIOCTRACECTL _IOW('b', 2, int)
#define BIOCTRACEGET _IOR_BIG(3, btrace_entry[BTBUF_SIZE])
#endif /* _S_I_BLOCK_H */