summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-30Keep os/android-os.h compiling now we have __key in <sys/ipc.h>. am: ↵android-wear-o-preview-4android-wear-o-preview-3android-wear-8.0.0_r1android-vts-8.0_r9android-vts-8.0_r8android-vts-8.0_r7android-vts-8.0_r6android-vts-8.0_r2android-vts-8.0_r13android-vts-8.0_r12android-vts-8.0_r11android-vts-8.0_r10android-vts-8.0_r1android-security-8.0.0_r54android-security-8.0.0_r53android-security-8.0.0_r52android-o-preview-4android-o-preview-3android-o-preview-2android-o-preview-1android-o-iot-preview-5android-cts-8.0_r9android-cts-8.0_r8android-cts-8.0_r7android-cts-8.0_r6android-cts-8.0_r5android-cts-8.0_r4android-cts-8.0_r3android-cts-8.0_r26android-cts-8.0_r25android-cts-8.0_r24android-cts-8.0_r23android-cts-8.0_r22android-cts-8.0_r21android-cts-8.0_r20android-cts-8.0_r2android-cts-8.0_r19android-cts-8.0_r18android-cts-8.0_r17android-cts-8.0_r16android-cts-8.0_r15android-cts-8.0_r14android-cts-8.0_r13android-cts-8.0_r12android-cts-8.0_r11android-cts-8.0_r10android-cts-8.0_r1android-8.0.0_r9android-8.0.0_r7android-8.0.0_r51android-8.0.0_r50android-8.0.0_r49android-8.0.0_r48android-8.0.0_r47android-8.0.0_r46android-8.0.0_r45android-8.0.0_r44android-8.0.0_r43android-8.0.0_r42android-8.0.0_r41android-8.0.0_r40android-8.0.0_r4android-8.0.0_r39android-8.0.0_r38android-8.0.0_r37android-8.0.0_r36android-8.0.0_r35android-8.0.0_r32android-8.0.0_r31android-8.0.0_r30android-8.0.0_r3android-8.0.0_r29android-8.0.0_r28android-8.0.0_r2android-8.0.0_r17android-8.0.0_r16android-8.0.0_r15android-8.0.0_r13android-8.0.0_r12android-8.0.0_r11android-8.0.0_r10android-8.0.0_r1security-oc-releaseoreo-vts-releaseoreo-security-releaseoreo-releaseoreo-r6-releaseoreo-r5-releaseoreo-r4-releaseoreo-r3-releaseoreo-r2-releaseoreo-devoreo-cts-releaseo-preview-4o-preview-3o-preview-2o-previewo-iot-preview-5Elliott Hughes
61e00348b1 am: c0df2e6737 am: bef3b0ed6e am: cf41806599 Change-Id: I419b3f50f6734c42d44caa12b0630f92ad3cd9e4
2017-01-30Keep os/android-os.h compiling now we have __key in <sys/ipc.h>. am: ↵Elliott Hughes
61e00348b1 am: c0df2e6737 am: bef3b0ed6e Change-Id: I55cd9b440611ad446523f5a6899d09fb8d57f1de
2017-01-30Keep os/android-os.h compiling now we have __key in <sys/ipc.h>. am: 61e00348b1Elliott Hughes
am: c0df2e6737 Change-Id: Icab6d6f2d97d841bb5dff74d4316bc7012b4c0f6
2017-01-30Keep os/android-os.h compiling now we have __key in <sys/ipc.h>.Elliott Hughes
am: 61e00348b1 Change-Id: I296ae508c232b1e4f9fa41cc88a6ba2e5bbc9d41
2017-01-28Keep os/android-os.h compiling now we have __key in <sys/ipc.h>.Elliott Hughes
When we've switched the NDK to unified headers (and perhaps the compatibility library too) we should send a whole new cleaned up version of this file upstream... Bug: N/A Test: builds Change-Id: Icf8cbd678b05bbb66bd1a4091a338c696d749478
2016-11-15Move -rdynamic to LDFLAGS. am: b4e247271a am: a50924a0d1 am: cb7e4d6c33Chih-Hung Hsieh
am: 06223d2417 Change-Id: I0a7cb88dda68a0c40b9711819550eba3ea6f6390
2016-11-15Move -rdynamic to LDFLAGS. am: b4e247271a am: a50924a0d1Chih-Hung Hsieh
am: cb7e4d6c33 Change-Id: Iab96d6480bf04ecef057e8df17232af2a179022c
2016-11-15Move -rdynamic to LDFLAGS. am: b4e247271aChih-Hung Hsieh
am: a50924a0d1 Change-Id: I2e9b56866165b9dcdf871d34e8fa46e640561779
2016-11-15Move -rdynamic to LDFLAGS.Chih-Hung Hsieh
am: b4e247271a Change-Id: I9baec6889fff3d8bea9aacfb82cea6f2c22aa435
2016-11-15Move -rdynamic to LDFLAGS.Chih-Hung Hsieh
Some compiler tools like clang-tidy gives warning on -rdynamic flags in compilation mode. Test: build with WITH_TIDY=1 Change-Id: Ibabb94c7adb0f99fdfee6027b0dabb0c618e2411
2016-10-06Disable clang-analyzer checks. am: f2eef89145 am: 92f42295a2 am: 38620bc024Chih-Hung Hsieh
am: a9ba255635 Change-Id: I67782084b290124043343f61b6f9a6ecd5b6c097
2016-10-06Disable clang-analyzer checks. am: f2eef89145 am: 92f42295a2Chih-Hung Hsieh
am: 38620bc024 Change-Id: Ia33a4c80b214ceb0487b6095eb7996b6d280defc
2016-10-06Disable clang-analyzer checks. am: f2eef89145Chih-Hung Hsieh
am: 92f42295a2 Change-Id: Ib379aabfb8a35f82116e759abda887886a1e0d8f
2016-10-06Disable clang-analyzer checks.Chih-Hung Hsieh
am: f2eef89145 Change-Id: I0478ccef527485622754ce734caca5ab0eb160c9
2016-10-05Disable clang-analyzer checks.Chih-Hung Hsieh
For some special builds that enable clang-tidy checks, disable the clang-analyzer-* checks. Bug: 31559947 Test: make with WITH_TIDY=1 and WITH_TIDY_CHECKS=* Change-Id: I232d536b8c2ecd5d866a12e3c95d4a5eee89e8b9
2016-08-19Keep external/fio building now we have <sys/shm.h>. am: dc040aef89 am: ↵Elliott Hughes
a53057c79c am: 628a269c99 am: 6a7d154a0d Change-Id: Ie976cf7c67c500b2be9b604ca5e4ece2cae448d0
2016-08-19Keep external/fio building now we have <sys/shm.h>. am: dc040aef89 am: ↵Elliott Hughes
a53057c79c am: 628a269c99 Change-Id: I9c5d9298c545aa0db84f23f3a3974837d3ad8026
2016-08-19Keep external/fio building now we have <sys/shm.h>. am: dc040aef89Elliott Hughes
am: a53057c79c Change-Id: I36310b3e831cab60328fbfedef98def19114f947
2016-08-19Keep external/fio building now we have <sys/shm.h>.Elliott Hughes
am: dc040aef89 Change-Id: I01e91198c12afae495ffe9b15823d6a29ac8c469
2016-08-17Keep external/fio building now we have <sys/shm.h>.Elliott Hughes
Change-Id: I1d1e18aae7f880b1d3cf4fdda7e1c32e4f0e6503
2016-01-26Remove header from LOCAL_SRC_FILESandroid-wear-n-preview-3android-wear-n-preview-2android-wear-n-preview-1android-wear-7.1.1_r1android-n-preview-5android-n-preview-4android-n-preview-3android-n-preview-2android-n-preview-1android-n-mr2-preview-2android-n-mr2-preview-1android-n-mr1-preview-2android-n-mr1-preview-1android-n-iot-release-smart-display-r2android-n-iot-release-smart-displayandroid-n-iot-release-polk-at1android-n-iot-release-lg-thinq-wk7android-n-iot-release-ihome-igv1android-n-iot-preview-4android-n-iot-preview-2android-cts_7.1_r1android-cts-7.1_r9android-cts-7.1_r8android-cts-7.1_r7android-cts-7.1_r6android-cts-7.1_r5android-cts-7.1_r4android-cts-7.1_r3android-cts-7.1_r29android-cts-7.1_r28android-cts-7.1_r27android-cts-7.1_r26android-cts-7.1_r25android-cts-7.1_r24android-cts-7.1_r23android-cts-7.1_r22android-cts-7.1_r21android-cts-7.1_r20android-cts-7.1_r2android-cts-7.1_r19android-cts-7.1_r18android-cts-7.1_r17android-cts-7.1_r16android-cts-7.1_r15android-cts-7.1_r14android-cts-7.1_r13android-cts-7.1_r12android-cts-7.1_r11android-cts-7.1_r10android-cts-7.1_r1android-cts-7.0_r9android-cts-7.0_r8android-cts-7.0_r7android-cts-7.0_r6android-cts-7.0_r5android-cts-7.0_r4android-cts-7.0_r33android-cts-7.0_r32android-cts-7.0_r31android-cts-7.0_r30android-cts-7.0_r3android-cts-7.0_r29android-cts-7.0_r28android-cts-7.0_r27android-cts-7.0_r26android-cts-7.0_r25android-cts-7.0_r24android-cts-7.0_r23android-cts-7.0_r22android-cts-7.0_r21android-cts-7.0_r20android-cts-7.0_r2android-cts-7.0_r19android-cts-7.0_r18android-cts-7.0_r17android-cts-7.0_r16android-cts-7.0_r15android-cts-7.0_r14android-cts-7.0_r13android-cts-7.0_r12android-cts-7.0_r11android-cts-7.0_r10android-cts-7.0_r1android-7.1.2_r9android-7.1.2_r8android-7.1.2_r6android-7.1.2_r5android-7.1.2_r4android-7.1.2_r39android-7.1.2_r38android-7.1.2_r37android-7.1.2_r36android-7.1.2_r33android-7.1.2_r32android-7.1.2_r30android-7.1.2_r3android-7.1.2_r29android-7.1.2_r28android-7.1.2_r27android-7.1.2_r25android-7.1.2_r24android-7.1.2_r23android-7.1.2_r2android-7.1.2_r19android-7.1.2_r18android-7.1.2_r17android-7.1.2_r16android-7.1.2_r15android-7.1.2_r14android-7.1.2_r13android-7.1.2_r12android-7.1.2_r11android-7.1.2_r10android-7.1.2_r1android-7.1.1_r9android-7.1.1_r8android-7.1.1_r7android-7.1.1_r61android-7.1.1_r60android-7.1.1_r6android-7.1.1_r59android-7.1.1_r58android-7.1.1_r57android-7.1.1_r56android-7.1.1_r55android-7.1.1_r54android-7.1.1_r53android-7.1.1_r52android-7.1.1_r51android-7.1.1_r50android-7.1.1_r49android-7.1.1_r48android-7.1.1_r47android-7.1.1_r46android-7.1.1_r45android-7.1.1_r44android-7.1.1_r43android-7.1.1_r42android-7.1.1_r41android-7.1.1_r40android-7.1.1_r4android-7.1.1_r39android-7.1.1_r38android-7.1.1_r35android-7.1.1_r33android-7.1.1_r32android-7.1.1_r31android-7.1.1_r3android-7.1.1_r28android-7.1.1_r27android-7.1.1_r26android-7.1.1_r25android-7.1.1_r24android-7.1.1_r23android-7.1.1_r22android-7.1.1_r21android-7.1.1_r20android-7.1.1_r2android-7.1.1_r17android-7.1.1_r16android-7.1.1_r15android-7.1.1_r14android-7.1.1_r13android-7.1.1_r12android-7.1.1_r11android-7.1.1_r10android-7.1.1_r1android-7.1.0_r7android-7.1.0_r6android-7.1.0_r5android-7.1.0_r4android-7.1.0_r3android-7.1.0_r2android-7.1.0_r1android-7.0.0_r9android-7.0.0_r8android-7.0.0_r7android-7.0.0_r6android-7.0.0_r5android-7.0.0_r4android-7.0.0_r36android-7.0.0_r35android-7.0.0_r34android-7.0.0_r33android-7.0.0_r32android-7.0.0_r31android-7.0.0_r30android-7.0.0_r3android-7.0.0_r29android-7.0.0_r28android-7.0.0_r27android-7.0.0_r24android-7.0.0_r21android-7.0.0_r19android-7.0.0_r17android-7.0.0_r15android-7.0.0_r14android-7.0.0_r13android-7.0.0_r12android-7.0.0_r11android-7.0.0_r10android-7.0.0_r1nougat-releasenougat-mr2.3-releasenougat-mr2.2-releasenougat-mr2.1-releasenougat-mr2-security-releasenougat-mr2-releasenougat-mr2-pixel-releasenougat-mr2-devnougat-mr1.8-releasenougat-mr1.7-releasenougat-mr1.6-releasenougat-mr1.5-releasenougat-mr1.4-releasenougat-mr1.3-releasenougat-mr1.2-releasenougat-mr1.1-releasenougat-mr1-wear-releasenougat-mr1-volantis-releasenougat-mr1-security-releasenougat-mr1-releasenougat-mr1-flounder-releasenougat-mr1-devnougat-mr1-cts-releasenougat-mr0.5-releasenougat-iot-releasenougat-dr1-releasenougat-devnougat-cts-releasenougat-bugfix-releasen-preview-2n-preview-1n-mr2-preview-1n-mr1-preview-1n-iot-preview-4n-iot-preview-2Dan Willemsen
am: 68c4930db8 * commit '68c4930db88a1b7fbea0613ffbe08d664f9dd2d5': Remove header from LOCAL_SRC_FILES
2016-01-25Remove header from LOCAL_SRC_FILESDan Willemsen
The build system does not use headers in LOCAL_SRC_FILES. To prevent typos, it's becoming a warning to add something to LOCAL_SRC_FILES that is not used. Also removes the Android.mk from LOCAL_ADDITIONAL_DEPENDENCIES. Our make setup now automatically adds it, and kati no longer needs it. Change-Id: I12d37fc0daad99e4873edde4402731d8394c53dc
2015-12-18Fio: Silence unused-X warningsAndreas Gampe
am: 224eaff0a9 * commit '224eaff0a908cd56b9981592e6469aec3cdb8725': Fio: Silence unused-X warnings
2015-12-17Fio: Silence unused-X warningsAndreas Gampe
These are benign. Reduce build noise. Bug: 18632512 Change-Id: I29493d9c59420c5f9959121215ae37e2bf969bf2
2015-11-10Enable clang after new Android clang upgrade.Chih-Hung Hsieh
am: 4be92ff9cd * commit '4be92ff9cdab332dec621f403d29765be42cc024': Enable clang after new Android clang upgrade.
2015-10-13Enable clang after new Android clang upgrade.Chih-Hung Hsieh
* Now Android clang can support TLS like gcc. BUG: 17167262 BUG: 21082792 Change-Id: I9303f5c78e52147e544d83d12246258e893a0d3e
2015-06-02package version metadata for external/Damien Miller
This will be used for automated notification of external vulnerability reports. Change-Id: Id0f69c8b10838daf8b452c8ed99c22908efc00db
2015-04-06resolved conflicts for merge of 90531c44 to masterandroid-m-preview-2android-m-preview-1android-m-previewandroid-lego-6.0.1_r2android-lego-6.0.1_r1android-cts-6.0_r9android-cts-6.0_r8android-cts-6.0_r7android-cts-6.0_r6android-cts-6.0_r5android-cts-6.0_r4android-cts-6.0_r32android-cts-6.0_r31android-cts-6.0_r30android-cts-6.0_r3android-cts-6.0_r29android-cts-6.0_r28android-cts-6.0_r27android-cts-6.0_r26android-cts-6.0_r25android-cts-6.0_r24android-cts-6.0_r23android-cts-6.0_r22android-cts-6.0_r21android-cts-6.0_r20android-cts-6.0_r2android-cts-6.0_r19android-cts-6.0_r18android-cts-6.0_r17android-cts-6.0_r16android-cts-6.0_r15android-cts-6.0_r14android-cts-6.0_r13android-cts-6.0_r12android-cts-6.0_r1android-6.0.1_r9android-6.0.1_r81android-6.0.1_r80android-6.0.1_r8android-6.0.1_r79android-6.0.1_r78android-6.0.1_r77android-6.0.1_r74android-6.0.1_r73android-6.0.1_r72android-6.0.1_r70android-6.0.1_r7android-6.0.1_r69android-6.0.1_r68android-6.0.1_r67android-6.0.1_r66android-6.0.1_r65android-6.0.1_r63android-6.0.1_r62android-6.0.1_r61android-6.0.1_r60android-6.0.1_r59android-6.0.1_r58android-6.0.1_r57android-6.0.1_r56android-6.0.1_r55android-6.0.1_r54android-6.0.1_r53android-6.0.1_r52android-6.0.1_r51android-6.0.1_r50android-6.0.1_r5android-6.0.1_r49android-6.0.1_r48android-6.0.1_r47android-6.0.1_r46android-6.0.1_r45android-6.0.1_r43android-6.0.1_r42android-6.0.1_r41android-6.0.1_r40android-6.0.1_r4android-6.0.1_r33android-6.0.1_r32android-6.0.1_r31android-6.0.1_r30android-6.0.1_r3android-6.0.1_r28android-6.0.1_r27android-6.0.1_r26android-6.0.1_r25android-6.0.1_r24android-6.0.1_r22android-6.0.1_r21android-6.0.1_r20android-6.0.1_r18android-6.0.1_r17android-6.0.1_r16android-6.0.1_r13android-6.0.1_r12android-6.0.1_r11android-6.0.1_r10android-6.0.1_r1android-6.0.0_r7android-6.0.0_r6android-6.0.0_r5android-6.0.0_r41android-6.0.0_r4android-6.0.0_r3android-6.0.0_r26android-6.0.0_r25android-6.0.0_r24android-6.0.0_r23android-6.0.0_r2android-6.0.0_r13android-6.0.0_r12android-6.0.0_r11android-6.0.0_r1marshmallow-releasemarshmallow-mr3-releasemarshmallow-mr2-releasemarshmallow-mr1-releasemarshmallow-mr1-devmarshmallow-dr1.6-releasemarshmallow-dr1.5-releasemarshmallow-dr1.5-devmarshmallow-dr-releasemarshmallow-dr-lego-releasemarshmallow-dr-dragon-releasemarshmallow-dr-devmarshmallow-dr-arc-m54marshmallow-dr-arc-m53marshmallow-dr-arc-devmarshmallow-devmarshmallow-cts-releasem-previewNick Kralevich
Change-Id: Ia51e784b350063ea085d7cc62bd693aa3a5be455
2015-04-06Fix Android.mk issues in fiomaster-soongColin Cross
LOCAL_LDLIBS is unnecessary, libdl is already in LOCAL_SHARED_LIBRARIES LOCAL_CFLAGSS_64 -> LOCAL_CFLAGS_64 Change-Id: I574a795c10fcf7d1d54669aac8f464265a6cf6e9
2015-03-17fio: Fix a GCC 4.9 allignment error.Mohamad Ayyash
Causes a Bus Error when running fio. Change-Id: I388673eb3c5d596026647543d14c47ba08fef3c7
2015-03-06fio: Disable clang only for the arm target.Mohamad Ayyash
Change-Id: I2824bd83e191a0af8bc20c95681eb841fcb40f1c
2015-03-07Update Android.mk with new fio-2.2.6 changes.Mohamad Ayyash
Change-Id: I7bca83958d8e01323d511ba96fb3ae22f9b6ff7e
2015-03-06smalloc: bump initial size to 8 poolsJens Axboe
Commit 23bd40f944b7 shrank our pool size from 128 pools at 8MB max, to one static 16MB pool. Christian reports: "For our tests with about 250k files we found the smalloc pool being depleted. Now for us values of 3-4 would be enough, but since it is a compile time switch I'd like to make it safe for everybody and set 8." Bump the pool alloc to 8 pools again, retaining the 16MB size. That's still substantially less than before, but should be enough for most cases. Allocate the pools at init time, to avoid the issue that the original commit fixed. Also fix a bug where we failed to iterate some pools when restarting the allocation scan, resulting in less-than-optimal exhaustion of all pools before smalloc() gave up and returned NULL. Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06fio: fix smalloc strdop allocation failureChristian Ehrhardt
smalloc_strdup didn't check for allocation success and thereby ran into segfaults if the single pool went out of memory. Now with this patch applied it is still failing, but in a more consistent way than segfaulting. You still get a bad allocation, but it looks like this now: fio: smalloc OOM fio: filesetup.c:1495: dup_files: Assertion `0' failed. Aborted In fact the upper layers expected smalloc_strdup to retrun NULL on failure. Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Fio 2.2.6Jens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06fio: fix cycles_start build issueChristian Ehrhardt
There is an issue introduced with "commit 73df3e07 gettime: offset CPU cycle counter by initial value". For architectures which define ARCH_CPU_CLOCK_CYCLES_PER_USEC (currently only s390) this causes a build error gettime.c:174:11: error: ‘cycles_start’ undeclared (first use in this function) if (t < cycles_start && !cycles_wrap) To make sure variables and code are only compiled in the same cases I added a clock definition called ARCH_CPU_CLOCK_WRAPS. We could merge ARCH_CPU_CLOCK_WRAPS and the existing ARCH_CPU_CLOCK_CYCLES_PER_USEC into one if you prefer, so far nobody else uses it. To avoid cluttering all architecture headers I enabled it by default in arch-generic.h, so any arch not needing the wrap handling can undef ARCH_CPU_CLOCK_WRAPS later in their headers. Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Patch to make per-thread IOPS more accurateBen England
The following small patch to stat.c (using fio 2.2.4 from github) outputs IOPS field in JSON format as a floating point number instead of an integer. This improves accuracy in case where fio --client runs use lots of threads with single-digit IOPS per thread. It seems to work, here's a snippet of output from a short fio run with rate_iops=10 in the job file. "write" : { "io_bytes" : 6464, "bw" : 646, "iops" : 10.10, "runtime" : 10000, Why the patch: IOPS number is rounded to integer in stats.c calls to num2str(). This doesn't sound like much of a problem because in many use cases, with large IOPS number the error is negligible. But in this use case where we have many threads (we would like to get into the thousands eventually), the IOPS/thread may be quite low and integer rounding can introduce significant error. For example, if we are doing 5,000 IOPS over 1,000 threads, average throughput is 5 IOPS and potential error is ~20%, but some threads could have much higher error in IOPS because of integer format. Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Fix segfault due to bad munmap()Jens Axboe
Bruce reports: The latest code from git (built using clang) causes a segfault after printing the usage text when "./fio" is run: [New LWP 100111] No jobs(s) defined fio-2.2.5-28-g93eeb [usage text] [New Thread 801c06400 (LWP 100111/fio)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 801c06400 (LWP 100111/fio)] flist_empty (head=0x802000040) at flist.h:119 119 return head->next == head; Current language: auto; currently minimal (gdb) p head $1 = (const struct flist_head *) 0x802000040 which is due to a bug in the filelock code, that uses fio_mutex_remove() to remove the mutex. But that mutex is embedded inside another mmap'ed region, hence we then segfault on later deferencing pointers. Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Typo fix in man page.Lars Marowsky-Bree
josn should be json, of course. Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Fix implicit function declaration on Androidenh
there's no fio_set_sched_idle in os/os-android.h. copy the one from os/os-linux.h. current Android also has posix_madvise. Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Add missing pre-defined ARM arch compiler macroRaphael Silva
Signed-off-by: Raphael Silva <raphael.philipe@ossystems.com.br> Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Add --output-format option to manpage.Lars Marowsky-Bree
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Make 'loops' honor full write+verify loopsJens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Fixup whitespace damage in the two previous commitsJens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06axmap: Avoid memory leak if axmap_new() failedErwan Velu
The axmap_new() function implements an exit path using the label "err" to free the alloced memory. That cleanup code was cleaning all the sub malloc structures but not the main structure (axmap) itself resulting in a memory leak of sizeof(struct axmap) bytes. This simple patch just free axmap at the end of the cleanup code.
2015-03-06iolog: Don't leak memory if fread fails in iolog_file_inflateErwan Velu
If fread fails in iolog_file_inflate(), the current code was closing the file descriptor and return 1. But it was missing freeing the previously malloced buffer (buf). This patch does add a memory free of 'buf' before returning to avoid the memory leak.
2015-03-06Allow verify w/norandommap and bsrangeJustin Eno
Only intact blocks are verified; partially-overwritten blocks are ignored Signed-off-by: Justin Eno <jeno@micron.com> Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Allow verification of random overwrites w/ba < bsJustin Eno
When blockalign is less than blocksize, random overwrite workloads may partially overwrite blocks. This change evicts partially-overwritten blocks from the iolog tree so subsequent verification targets only intact blocks. This change also allows verification with norandommap and bsrange, though that is left disabled. Signed-off-by: Justin Eno <jeno@micron.com> Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06examples/ssd-test.fio: bump size to 10GJens Axboe
1G is a bit too tiny for most devices today, bump it to 10G. Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Allow random overwrite workloads to write io_limitJustin Eno
Limiting the write phase of (random) overwrite workloads to 'size' before the verify phase doesn't make sense, so allow them to write up to io_limit. This better matches verify_only behavior, and allows the [verify-job] below to succeed: [global] thread=1 direct=1 ioengine=sync verify=meta bs=1k offset=0 size=5M io_limit=6M norandommap=1 verify_fatal=1 randseed=42 [write-job] filename=datafile.tmp rw=randwrite do_verify=0 [verify-job] stonewall create_serialize=0 filename=datafile.tmp rw=randwrite do_verify=1 verify_only=1 Signed-off-by: Justin Eno <jeno@micron.com> Signed-off-by: Jens Axboe <axboe@fb.com>