diff options
| author | Lee Susman <lsusman@codeaurora.org> | 2014-09-22 17:48:44 +0300 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:01:58 -0700 |
| commit | b5bec249a9b43ebbd5a9df1bd31bc3f94c2e77b3 (patch) | |
| tree | dc0224fdbfd1338499e91dd33e739568ec6d1095 /block | |
| parent | f3664f905ddcb4e7329985049e73e9b7d56e0ed1 (diff) | |
block: test-iosched: expose sector_range variable to user
Expose "sector_range", which will indicate to the low-level driver
unit-tests the size (in sectors, starting from "start_sector") of the
address space in which they can perform I/O operations. This user-defined
variable can be used to change the address space size from the default
512MiB.
Change-Id: I515a6849eb39b78e653f4018993a2c8e64e2a77f
Signed-off-by: Lee Susman <lsusman@codeaurora.org>
Diffstat (limited to 'block')
| -rw-r--r-- | block/test-iosched.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/block/test-iosched.c b/block/test-iosched.c index e5409cec9af4..cf50436d2d17 100644 --- a/block/test-iosched.c +++ b/block/test-iosched.c @@ -911,6 +911,14 @@ static int test_debugfs_init(struct test_iosched *tios) if (!tios->debug.start_sector) 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; err: |
