Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
blktrace_api.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  blk_io_trace
 
struct  blk_io_trace_remap
 
struct  blk_user_trace_setup
 

Macros

#define BLK_TC_SHIFT   (16)
 
#define BLK_TC_ACT(act)   ((act) << BLK_TC_SHIFT)
 
#define BLK_TA_QUEUE   (__BLK_TA_QUEUE | BLK_TC_ACT(BLK_TC_QUEUE))
 
#define BLK_TA_BACKMERGE   (__BLK_TA_BACKMERGE | BLK_TC_ACT(BLK_TC_QUEUE))
 
#define BLK_TA_FRONTMERGE   (__BLK_TA_FRONTMERGE | BLK_TC_ACT(BLK_TC_QUEUE))
 
#define BLK_TA_GETRQ   (__BLK_TA_GETRQ | BLK_TC_ACT(BLK_TC_QUEUE))
 
#define BLK_TA_SLEEPRQ   (__BLK_TA_SLEEPRQ | BLK_TC_ACT(BLK_TC_QUEUE))
 
#define BLK_TA_REQUEUE   (__BLK_TA_REQUEUE | BLK_TC_ACT(BLK_TC_REQUEUE))
 
#define BLK_TA_ISSUE   (__BLK_TA_ISSUE | BLK_TC_ACT(BLK_TC_ISSUE))
 
#define BLK_TA_COMPLETE   (__BLK_TA_COMPLETE| BLK_TC_ACT(BLK_TC_COMPLETE))
 
#define BLK_TA_PLUG   (__BLK_TA_PLUG | BLK_TC_ACT(BLK_TC_QUEUE))
 
#define BLK_TA_UNPLUG_IO   (__BLK_TA_UNPLUG_IO | BLK_TC_ACT(BLK_TC_QUEUE))
 
#define BLK_TA_UNPLUG_TIMER   (__BLK_TA_UNPLUG_TIMER | BLK_TC_ACT(BLK_TC_QUEUE))
 
#define BLK_TA_INSERT   (__BLK_TA_INSERT | BLK_TC_ACT(BLK_TC_QUEUE))
 
#define BLK_TA_SPLIT   (__BLK_TA_SPLIT)
 
#define BLK_TA_BOUNCE   (__BLK_TA_BOUNCE)
 
#define BLK_TA_REMAP   (__BLK_TA_REMAP | BLK_TC_ACT(BLK_TC_QUEUE))
 
#define BLK_TA_ABORT   (__BLK_TA_ABORT | BLK_TC_ACT(BLK_TC_QUEUE))
 
#define BLK_TA_DRV_DATA   (__BLK_TA_DRV_DATA | BLK_TC_ACT(BLK_TC_DRV_DATA))
 
#define BLK_TN_PROCESS   (__BLK_TN_PROCESS | BLK_TC_ACT(BLK_TC_NOTIFY))
 
#define BLK_TN_TIMESTAMP   (__BLK_TN_TIMESTAMP | BLK_TC_ACT(BLK_TC_NOTIFY))
 
#define BLK_TN_MESSAGE   (__BLK_TN_MESSAGE | BLK_TC_ACT(BLK_TC_NOTIFY))
 
#define BLK_IO_TRACE_MAGIC   0x65617400
 
#define BLK_IO_TRACE_VERSION   0x07
 
#define BLKTRACE_BDEV_SIZE   32
 

Enumerations

enum  blktrace_cat {
  BLK_TC_READ = 1 << 0, BLK_TC_WRITE = 1 << 1, BLK_TC_FLUSH = 1 << 2, BLK_TC_SYNC = 1 << 3,
  BLK_TC_SYNCIO = BLK_TC_SYNC, BLK_TC_QUEUE = 1 << 4, BLK_TC_REQUEUE = 1 << 5, BLK_TC_ISSUE = 1 << 6,
  BLK_TC_COMPLETE = 1 << 7, BLK_TC_FS = 1 << 8, BLK_TC_PC = 1 << 9, BLK_TC_NOTIFY = 1 << 10,
  BLK_TC_AHEAD = 1 << 11, BLK_TC_META = 1 << 12, BLK_TC_DISCARD = 1 << 13, BLK_TC_DRV_DATA = 1 << 14,
  BLK_TC_FUA = 1 << 15, BLK_TC_END = 1 << 15
}
 
enum  blktrace_act {
  __BLK_TA_QUEUE = 1, __BLK_TA_BACKMERGE, __BLK_TA_FRONTMERGE, __BLK_TA_GETRQ,
  __BLK_TA_SLEEPRQ, __BLK_TA_REQUEUE, __BLK_TA_ISSUE, __BLK_TA_COMPLETE,
  __BLK_TA_PLUG, __BLK_TA_UNPLUG_IO, __BLK_TA_UNPLUG_TIMER, __BLK_TA_INSERT,
  __BLK_TA_SPLIT, __BLK_TA_BOUNCE, __BLK_TA_REMAP, __BLK_TA_ABORT,
  __BLK_TA_DRV_DATA
}
 
enum  blktrace_notify { __BLK_TN_PROCESS = 0, __BLK_TN_TIMESTAMP, __BLK_TN_MESSAGE }
 
enum  { Blktrace_setup = 1, Blktrace_running, Blktrace_stopped }
 

Macro Definition Documentation

#define BLK_IO_TRACE_MAGIC   0x65617400

Definition at line 92 of file blktrace_api.h.

#define BLK_IO_TRACE_VERSION   0x07

Definition at line 93 of file blktrace_api.h.

#define BLK_TA_ABORT   (__BLK_TA_ABORT | BLK_TC_ACT(BLK_TC_QUEUE))

Definition at line 85 of file blktrace_api.h.

#define BLK_TA_BACKMERGE   (__BLK_TA_BACKMERGE | BLK_TC_ACT(BLK_TC_QUEUE))

Definition at line 71 of file blktrace_api.h.

#define BLK_TA_BOUNCE   (__BLK_TA_BOUNCE)

Definition at line 83 of file blktrace_api.h.

#define BLK_TA_COMPLETE   (__BLK_TA_COMPLETE| BLK_TC_ACT(BLK_TC_COMPLETE))

Definition at line 77 of file blktrace_api.h.

#define BLK_TA_DRV_DATA   (__BLK_TA_DRV_DATA | BLK_TC_ACT(BLK_TC_DRV_DATA))

Definition at line 86 of file blktrace_api.h.

#define BLK_TA_FRONTMERGE   (__BLK_TA_FRONTMERGE | BLK_TC_ACT(BLK_TC_QUEUE))

Definition at line 72 of file blktrace_api.h.

#define BLK_TA_GETRQ   (__BLK_TA_GETRQ | BLK_TC_ACT(BLK_TC_QUEUE))

Definition at line 73 of file blktrace_api.h.

#define BLK_TA_INSERT   (__BLK_TA_INSERT | BLK_TC_ACT(BLK_TC_QUEUE))

Definition at line 81 of file blktrace_api.h.

#define BLK_TA_ISSUE   (__BLK_TA_ISSUE | BLK_TC_ACT(BLK_TC_ISSUE))

Definition at line 76 of file blktrace_api.h.

#define BLK_TA_PLUG   (__BLK_TA_PLUG | BLK_TC_ACT(BLK_TC_QUEUE))

Definition at line 78 of file blktrace_api.h.

#define BLK_TA_QUEUE   (__BLK_TA_QUEUE | BLK_TC_ACT(BLK_TC_QUEUE))

Definition at line 70 of file blktrace_api.h.

#define BLK_TA_REMAP   (__BLK_TA_REMAP | BLK_TC_ACT(BLK_TC_QUEUE))

Definition at line 84 of file blktrace_api.h.

#define BLK_TA_REQUEUE   (__BLK_TA_REQUEUE | BLK_TC_ACT(BLK_TC_REQUEUE))

Definition at line 75 of file blktrace_api.h.

#define BLK_TA_SLEEPRQ   (__BLK_TA_SLEEPRQ | BLK_TC_ACT(BLK_TC_QUEUE))

Definition at line 74 of file blktrace_api.h.

#define BLK_TA_SPLIT   (__BLK_TA_SPLIT)

Definition at line 82 of file blktrace_api.h.

#define BLK_TA_UNPLUG_IO   (__BLK_TA_UNPLUG_IO | BLK_TC_ACT(BLK_TC_QUEUE))

Definition at line 79 of file blktrace_api.h.

#define BLK_TA_UNPLUG_TIMER   (__BLK_TA_UNPLUG_TIMER | BLK_TC_ACT(BLK_TC_QUEUE))

Definition at line 80 of file blktrace_api.h.

#define BLK_TC_ACT (   act)    ((act) << BLK_TC_SHIFT)

Definition at line 32 of file blktrace_api.h.

#define BLK_TC_SHIFT   (16)

Definition at line 31 of file blktrace_api.h.

#define BLK_TN_MESSAGE   (__BLK_TN_MESSAGE | BLK_TC_ACT(BLK_TC_NOTIFY))

Definition at line 90 of file blktrace_api.h.

#define BLK_TN_PROCESS   (__BLK_TN_PROCESS | BLK_TC_ACT(BLK_TC_NOTIFY))

Definition at line 88 of file blktrace_api.h.

#define BLK_TN_TIMESTAMP   (__BLK_TN_TIMESTAMP | BLK_TC_ACT(BLK_TC_NOTIFY))

Definition at line 89 of file blktrace_api.h.

#define BLKTRACE_BDEV_SIZE   32

Definition at line 127 of file blktrace_api.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
Blktrace_setup 
Blktrace_running 
Blktrace_stopped 

Definition at line 121 of file blktrace_api.h.

Enumerator:
__BLK_TA_QUEUE 
__BLK_TA_BACKMERGE 
__BLK_TA_FRONTMERGE 
__BLK_TA_GETRQ 
__BLK_TA_SLEEPRQ 
__BLK_TA_REQUEUE 
__BLK_TA_ISSUE 
__BLK_TA_COMPLETE 
__BLK_TA_PLUG 
__BLK_TA_UNPLUG_IO 
__BLK_TA_UNPLUG_TIMER 
__BLK_TA_INSERT 
__BLK_TA_SPLIT 
__BLK_TA_BOUNCE 
__BLK_TA_REMAP 
__BLK_TA_ABORT 
__BLK_TA_DRV_DATA 

Definition at line 37 of file blktrace_api.h.

Enumerator:
BLK_TC_READ 
BLK_TC_WRITE 
BLK_TC_FLUSH 
BLK_TC_SYNC 
BLK_TC_SYNCIO 
BLK_TC_QUEUE 
BLK_TC_REQUEUE 
BLK_TC_ISSUE 
BLK_TC_COMPLETE 
BLK_TC_FS 
BLK_TC_PC 
BLK_TC_NOTIFY 
BLK_TC_AHEAD 
BLK_TC_META 
BLK_TC_DISCARD 
BLK_TC_DRV_DATA 
BLK_TC_FUA 
BLK_TC_END 

Definition at line 9 of file blktrace_api.h.

Enumerator:
__BLK_TN_PROCESS 
__BLK_TN_TIMESTAMP 
__BLK_TN_MESSAGE 

Definition at line 60 of file blktrace_api.h.