block.h (5853b4f06f7b9b56f37f457d7923f7b96496074e) | block.h (49cac01e1fa74174d72adb0e872504a7fefd7c01) |
---|---|
1#undef TRACE_SYSTEM 2#define TRACE_SYSTEM block 3 4#if !defined(_TRACE_BLOCK_H) || defined(TRACE_HEADER_MULTI_READ) 5#define _TRACE_BLOCK_H 6 7#include <linux/blktrace_api.h> 8#include <linux/blkdev.h> --- 387 unchanged lines hidden (view full) --- 396 memcpy(__entry->comm, current->comm, TASK_COMM_LEN); 397 ), 398 399 TP_printk("[%s]", __entry->comm) 400); 401 402DECLARE_EVENT_CLASS(block_unplug, 403 | 1#undef TRACE_SYSTEM 2#define TRACE_SYSTEM block 3 4#if !defined(_TRACE_BLOCK_H) || defined(TRACE_HEADER_MULTI_READ) 5#define _TRACE_BLOCK_H 6 7#include <linux/blktrace_api.h> 8#include <linux/blkdev.h> --- 387 unchanged lines hidden (view full) --- 396 memcpy(__entry->comm, current->comm, TASK_COMM_LEN); 397 ), 398 399 TP_printk("[%s]", __entry->comm) 400); 401 402DECLARE_EVENT_CLASS(block_unplug, 403 |
404 TP_PROTO(struct request_queue *q, unsigned int depth), | 404 TP_PROTO(struct request_queue *q, unsigned int depth, bool explicit), |
405 | 405 |
406 TP_ARGS(q, depth), | 406 TP_ARGS(q, depth, explicit), |
407 408 TP_STRUCT__entry( 409 __field( int, nr_rq ) 410 __array( char, comm, TASK_COMM_LEN ) 411 ), 412 413 TP_fast_assign( 414 __entry->nr_rq = depth; 415 memcpy(__entry->comm, current->comm, TASK_COMM_LEN); 416 ), 417 418 TP_printk("[%s] %d", __entry->comm, __entry->nr_rq) 419); 420 421/** | 407 408 TP_STRUCT__entry( 409 __field( int, nr_rq ) 410 __array( char, comm, TASK_COMM_LEN ) 411 ), 412 413 TP_fast_assign( 414 __entry->nr_rq = depth; 415 memcpy(__entry->comm, current->comm, TASK_COMM_LEN); 416 ), 417 418 TP_printk("[%s] %d", __entry->comm, __entry->nr_rq) 419); 420 421/** |
422 * block_unplug_io - release of operations requests in request queue | 422 * block_unplug - release of operations requests in request queue |
423 * @q: request queue to unplug 424 * @depth: number of requests just added to the queue | 423 * @q: request queue to unplug 424 * @depth: number of requests just added to the queue |
425 * @explicit: whether this was an explicit unplug, or one from schedule() |
|
425 * 426 * Unplug request queue @q because device driver is scheduled to work 427 * on elements in the request queue. 428 */ | 426 * 427 * Unplug request queue @q because device driver is scheduled to work 428 * on elements in the request queue. 429 */ |
429DEFINE_EVENT(block_unplug, block_unplug_io, | 430DEFINE_EVENT(block_unplug, block_unplug, |
430 | 431 |
431 TP_PROTO(struct request_queue *q, unsigned int depth), | 432 TP_PROTO(struct request_queue *q, unsigned int depth, bool explicit), |
432 | 433 |
433 TP_ARGS(q, depth) | 434 TP_ARGS(q, depth, explicit) |
434); 435 436/** 437 * block_split - split a single bio struct into two bio structs 438 * @q: queue containing the bio 439 * @bio: block operation being split 440 * @new_sector: The starting sector for the new bio 441 * --- 127 unchanged lines hidden --- | 435); 436 437/** 438 * block_split - split a single bio struct into two bio structs 439 * @q: queue containing the bio 440 * @bio: block operation being split 441 * @new_sector: The starting sector for the new bio 442 * --- 127 unchanged lines hidden --- |