summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2015-03-06gettime.h: use time_t instead of size_t for copy of tv_secCastor Fu
This addresses a small nit that our compiler was complaining about. Thanks! Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06verify: Fix latency log for verify commands.Gwendal Grignou
When commands when requeued for the verify operation, their start time was not reset, resulting in bogus latency graphs. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Fix for verify_only (do_dry_run()) broken by 74d6277fJustin Eno
Previous commit to backend.c tracks io_limit more closely by counting submitted (in-flight) I/O instead of completed I/O. do_dry_run() does not submit I/O, so its I/O is not counted, and it loops forever. Signed-off-by: Justin Eno <jeno@micron.com> Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06configure: fix libnuma_v2 probe to work with -WerrorCastor Fu
I noticed that libnuma_v2 wasn't getting detected in our build environment because we would get an error that mask was unused. Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Moral license updateJens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Update the moral licenseJens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06gettime: remember to tear down clock cpumask on normal exitJens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06gettime: fix unitialized variable on SolarisJens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06idletime: maintain cpuset over lifetime of idle threadJens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06gettime: initialize cpusets properlyJens Axboe
We can't just use memset(), some platforms have specific init/exit routines for cpusets/masks. Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06gettime: if setaffinity fails, print the errno errorJens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Fixing typoFelipe Franciosi
2015-03-06dedupe_percentage should work even if compress_percentage is not setVasily Tarasov
Currently dedupe_percentage option does not work properly if compress_percentage is not set. This can be easily demonstrated using the following job file: [job-/dev/dm-0] filename=/dev/dm-0 rw=randwrite blocksize=4096 direct=1 ioengine=libaio iodepth=32 dedupe_percentage=50 time_based=1 runtime=5 numjobs=1 All writes will contain zeroes for the above job file. The problem is in fill_io_buffer() function that switches dedupe random state only if o->compress_percentage is set. This patch updates the condition appropriately in fill_io_buffer() appropriately. Signed-off-by: Vasily Tarasov <tarasov@vasily.name> Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Better accommodate random writes larger than blockalignJustin Eno
fill_io_u() fails prematurely if the randomly-chosen offset satisfies blockalign but not min_bs, i.e., the offset lies too near the end of the target region. This change honors both parameters. Signed-off-by: Justin Eno <jeno@micron.com> Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06parse: ensure strings are pre-terminated when using strncpy()Jens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06Fio 2.2.5Jens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06shm: disable iomem=shm* for shm disabledJens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06configure: add --disable-shm to disable use of shmJens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06net: don't record/verify UDP sequence numbers if buffer is too smallSteven Noonan
This causes a bunch of out-of-bounds accesses if you have really small buffer sizes (i.e. 16 bytes will crash). Signed-off-by: Steven Noonan <steven@uplinklabs.net> Signed-off-by: Jens Axboe <axboe@fb.com>
2015-03-06crc/test: sha1 should do _final() after _update()Jens Axboe
Signed-off-by: Jens Axboe <axboe@fb.com>