Trace Documents
formats & techniques
Trace Tools
programs & code
Traces
get traces
Mailing List
contact info
PEL Homepage
laboratory info

Disk IO Specification

Linux Disk Trace Buffer Format

Each trace record contains sixteen (16) bytes of information in the following format:

version 1.1 (added SCSI support)

Byte Content Value
1read/write'r'/'w'
2device major number/write0-255
3device minor number0-255
4LBA/CHS/SCSI'L'/'C'/'S'
5-8number of sectors requestedunsigned long
9-12sector / block numberunsigned long
13-16time of request (in jiffies)unsigned long

  • dtbprinter is a simple C program that prints the disk trace.
  • dtb.h is the include file that goes with it.
  • If you get unusually large numbers for the unsigned long values, you might have an endian problem.

version 1.0 (IDE only)

Byte Content Value
1read/write'r'/'w'
2device major number/write0-255
3device minor number0-255
4LBA/CHS'L'/'C'
5-8number of sectors requestedunsigned long
9-12sector / block numberunsigned long
13-16time of request (in jiffies)unsigned long


© 2000, Performance Evaluation Laboratory, Brigham Young University. All rights reserved. Reproduction of all or part of this work is permitted for educational or research use provided that this copyright notice is included in any copy. Send comments to webmaster@pel.cs.byu.edu.

This material is based upon work supported by the National Science Foundation under Grant No. 9807619. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.