Merge "block: test-iosched: expose sector_range variable to user"
This commit is contained in:
commit
6b7fb8a8e1
|
@ -911,6 +911,14 @@ static int test_debugfs_init(struct test_iosched *tios)
|
||||||
if (!tios->debug.start_sector)
|
if (!tios->debug.start_sector)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
tios->debug.sector_range = debugfs_create_u32(
|
||||||
|
"sector_range",
|
||||||
|
S_IRUGO | S_IWUGO,
|
||||||
|
tios->debug.debug_utils_root,
|
||||||
|
&tios->sector_range);
|
||||||
|
if (!tios->debug.sector_range)
|
||||||
|
goto err;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
|
|
@ -80,6 +80,8 @@ enum req_unique_type {
|
||||||
* @debug_test_result: Exposes the test result to the user
|
* @debug_test_result: Exposes the test result to the user
|
||||||
* space
|
* space
|
||||||
* @start_sector: The start sector for read/write requests
|
* @start_sector: The start sector for read/write requests
|
||||||
|
* @sector_range: Range of the test, starting from start_sector
|
||||||
|
* (in sectors)
|
||||||
*/
|
*/
|
||||||
struct test_debug {
|
struct test_debug {
|
||||||
struct dentry *debug_root;
|
struct dentry *debug_root;
|
||||||
|
@ -87,6 +89,7 @@ struct test_debug {
|
||||||
struct dentry *debug_tests_root;
|
struct dentry *debug_tests_root;
|
||||||
struct dentry *debug_test_result;
|
struct dentry *debug_test_result;
|
||||||
struct dentry *start_sector;
|
struct dentry *start_sector;
|
||||||
|
struct dentry *sector_range;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -193,6 +196,8 @@ struct blk_dev_test_type {
|
||||||
* new BIOs.
|
* new BIOs.
|
||||||
* @start_sector: The address of the first sector that can
|
* @start_sector: The address of the first sector that can
|
||||||
* be accessed by the test
|
* be accessed by the test
|
||||||
|
* @sector_range: Range of the test, starting from start_sector
|
||||||
|
* (in sectors)
|
||||||
* @wr_rd_next_req_id: A unique ID to identify WRITE/READ
|
* @wr_rd_next_req_id: A unique ID to identify WRITE/READ
|
||||||
* request to ease the debugging of the
|
* request to ease the debugging of the
|
||||||
* test cases
|
* test cases
|
||||||
|
@ -226,6 +231,7 @@ struct test_iosched {
|
||||||
struct request_queue *req_q;
|
struct request_queue *req_q;
|
||||||
int num_of_write_bios;
|
int num_of_write_bios;
|
||||||
u32 start_sector;
|
u32 start_sector;
|
||||||
|
u32 sector_range;
|
||||||
int wr_rd_next_req_id;
|
int wr_rd_next_req_id;
|
||||||
int unique_next_req_id;
|
int unique_next_req_id;
|
||||||
spinlock_t lock;
|
spinlock_t lock;
|
||||||
|
|
Loading…
Reference in New Issue