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:
@@ -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
|
||||
|
||||
|
||||
15
common/include/sys/ioc_block.h
Normal file
15
common/include/sys/ioc_block.h
Normal 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 */
|
||||
Reference in New Issue
Block a user