History log of /external/stressapptest/src/worker.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
613ee1f783d25f83aeb9b5ad25c3ceb3da49b163 25-Apr-2012 Scott Anderson <saa@android.com> Work around O_DIRECT being invalid on Android

If a file is opened with O_DIRECT on Android, an EINVAL will be
triggered. To try to accomplish the same effect as O_DIRECT,
this change adds calls to flush the page cache at key points for
the file and disk threads. These calls will sync and write a "1"
to /proc/sys/vm/drop_caches if O_DIRECT caused an EINVAL, but
will be a NOP otherwise.

Change-Id: If0c7ca455384f9d60d4587127e96979a3c7f1169
Signed-off-by: Scott Anderson <saa@android.com>
/external/stressapptest/src/worker.cc
8f1c60d605d31447b4f9ccf86029790bed3fb3f3 17-Feb-2012 Scott Anderson <saa@android.com> Improve portability.

At a high level, #ifdefs were added to the code to allow it to be
used on systems that were missing various libraries, function and
defines.

configure.ac was enhanced to test for more of these things and
set defines to indicate their presence or absence. In addition,
it was slightly tweaked to match the output of autoscan.
autoheader and autoconf were ran to update the configure files.

The goal was that the resultant code should not be modified if
the libraries/functions/defines were all present. The code for
the cases where something is missing is workable, but can
probably be improved.

ifdefs newly added to the code include:
HAVE_LIBAIO_H
HAVE_MMAP64
HAVE_POSIX_MEMALIGN
HAVE_RAND_R
HAVE_SCHED_GETAFFINITY
HAVE_SYS_SHM_H
O_DSYNC
_POSIX_BARRIERS
STRERROR_R_CHAR_P

Signed-off-by: Scott Anderson <saa@android.com>
/external/stressapptest/src/worker.cc
b0114cb9f332db144f65291211ae65f7f0e814e6 09-Apr-2012 Scott Anderson <saa@android.com> Initial version of stressapptest

From http://stressapptest.googlecode.com/files/stressapptest-1.0.4_autoconf.tar.gz
with the addition of MODULE_LICENSE_APACHE2 and NOTICE.

Change-Id: I1f3e80fce2c500766bcc7a67d7d42e485ddf57b4
/external/stressapptest/src/worker.cc