Age | Commit message (Collapse) | Author |
|
There's just no way to do this piece correctly:
int dummy = 0;
printf("corrupting our stack...\n");
*(volatile long long*)&dummy = 0;
Change-Id: If02ff71b3c23c3d8118694f6edba0ecf904baf8a
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
|
|
Fix the code to properly read urandom to init the random number generator.
Fix to properly read the arguments if any options are given.
Fix to enable it to be built against glibc.
Change-Id: I9127a71232e39afa3054fe9f1612def9ae13d9d3
|
|
rand_emmc_perf is a simple test to test random read/write performance
of emmc chips. android_emmc_perf_tests is a script that runs on
the host that uses rand_emmc_perf to test the emmc performance on
a device.
corrupt_gdt_free_blocks is used to corrupt a filesystem so the kernel
trips over it at runtime and panics, thus testing kernel's ability to
mark the filesystem as needing to be fixed.
set_ext4_err_bit sets the error bit in the superblock so e2fsck will
trigger a full check next boot.
corrupt_gdt_free_blocks and set_ext4_err_bit are only built for
userdebug and eng builds. rand_emmc_perf is marked optional, and
not included in any build by default.
Change-Id: I808174025d891f358ac54008371cb590e3c19f2f
|
|
This change allows atrace to be run on a user build, where it is not run as
root. Some command line options still require root, and atrace will refuse to
run if those options are specified when run as non-root.
Bug: 6513400
Change-Id: I29984cb8a7c3ad80ba5fa6b031ed8ff81acabacf
|
|
Bug: 6488845
Change-Id: I93acb726f35b114fb1ea7297da4456826f805b7b
|
|
adb bugreport > b & sleep 5; kill $?
will show that a bunch of tools will SIGPIPE when trying to output data
which is normal.
We don't have a way on linux (bsd yes), to set NOSIGPIPE on the file desc
passed down via fork/exec.
Bug: 6447319
Change-Id: I1634a00a155fd8a3fd827aa4a77e94518534336c
|
|
This change adds the -i command line flag to atrace to enable tracing CPU idle
kernel events.
Change-Id: I4a2c8619224c0f50c7fd7c61c7b24fa2211f656c
|
|
This change adds the -z command line flag to atrace to enable support for
compressing the trace with zlib as it's printed to stdout.
Change-Id: I45301c63a4d1d388152244fec3c9e05e554598e8
|
|
|
|
This change allows atrace to run on kernels that do not have CPU frequency
interactive governor tracing enabled in the kernel.
Change-Id: Ibfde751da7b6cc9a55794355093a37feb28f5e52
|
|
A bad merge and some new features caused SELinux not to build on
top-of-tree master. Some changes the Makefile restore its ability to
build.
Change-Id: Id60b89538beff33f1d8b436b5b7854d3eaa00069
|
|
|
|
This utility is similar to top but with two major differences. 1) It
removes the overhead of gathering process/thread stats. 2) It measures
the time spent in each frequency for each sample duration.
Bug: 6147843
Change-Id: Ie9073470f8cd1778fe902ea6383bef2311e91cf1
|
|
Change-Id: Ied4894019d2b0021e7f727569ff85650d209e5da
|
|
Change-Id: I9af02b9bba1176174540c849f905dece8ade54d8
|
|
* changes:
Extend make_ext4fs() interface to allow callers to pass selabel_handle.
Extend make_ext4fs to support setting SELinux security contexts in ext4 images.
|
|
Extend make_ext4fs() to allow callers to pass an selabel_handle for
labeling files in the ext4 image. Previously, this was only done
via the _internal() function. This extends the library interface
so that it can be used by the recovery and updater code for labeling
files from OTA and update packages.
Change-Id: I4f6755fe7c65b69587276d17ef5b971ebec0161f
|
|
Extend make_ext4fs with support for looking up the right security context from
the file_contexts configuration and setting it in the generated image. This is
similar to the existing support for looking up the UID/GID/mode via
android_filesystem_config.h and setting it, but via configuration rather than
defined in a header.
Change-Id: Ief9c44eeaaca4a44100a384b063f40b185469be3
|
|
Before we used the "fs_config" function from
android_filesystem_config.h, but we want to use make_ext4fs with ASEC
containers which will not always be mounted in the same place.
Bug: 6258335
Change-Id: Icf62e3c46425f01434bf92a9823f8d542b0fa5b1
|
|
bugmailer is in java, so it won't build on pdk builds. It should
probably be moved out of system/extras.
Change-Id: I9423b565cff2078290390fab22d6622a06959b05
|
|
|
|
|
|
Change-Id: I2c2ed833946e18aeabbd7e0a7cb3e515a0d95d4e
|
|
|
|
/data/local permissions have changed. Adjust the config file.
Tighten up requirements for /data/local/tmp
Change-Id: I06ef9a97d6c7c0b360c53b82637a19207db4a28c
|
|
Change-Id: I5ea3fcaffdaaae6bfeb0edd878fc952952012396
|
|
|
|
Change-Id: I376864150349862e9dcb3b964aa316559c904a4a
|
|
This change adds two command line optiosn:
-b for setting the trace buffer size
-f for enabling tracing of the CPU frequency
-l for enabling tracing of the CPU load
Change-Id: Id99851a4c4eba5cfed218f29081e072bbe492133
|
|
This change makes the atrace module tag 'debug' so that the binary is
included in all debug builds.
Change-Id: I1fdb87be0461daf686e52ded04b37b9a122edea3
|
|
This change adds a new system binary to help with capturing and dumping
kernel traces.
Change-Id: If2fc074480f822588a4c171312dc4c04fd305356
|
|
Passing a file descriptor to make_ext4fs_internal() is more flexible.
We can use tmpfile() to create a temporary file.
tmpfile() is better than other solutions because it unlinks the file
right after creating it, so closing fd effectively removes temp file.
Thus we don't have to worry about large temp files accidently left
on the filesystem in case of the program crash.
Change-Id: Iba3758a0e13a898920d30d7fa5da696c22daa2b7
|
|
|
|
All our hosts are currently little-endian, so drop using endian.h
in favor of being able to build and run on all hosts.
Change-Id: Iea86cf9387940448c9c6d356c7e16acc871d5467
Signed-off-by: Scott Anderson <saa@android.com>
|
|
1) simg2img was being installed on the device. For the
BUILD_EXECUTABLE add an "optional" tag (instead of the implied
default of "user") so this does not happen.
2) In preparation of removing simg2img from user_tags.mk, add a
"debug" tag to the BUILD_HOST_EXECUTABLE so it will be put in the
host bin subdirectory for eng and userdebug builds.
Change-Id: Ib8407e366b8154772e3b78cabb09655851ce77de
Signed-off-by: Scott Anderson <saa@android.com>
|
|
This is not a full port of ext4_utils for windows.
Instead it merely enables use to use the library
for the 'create an empty fs image' functionality
as used by 'fastboot format'.
Change-Id: Ia1ffacd64e4233c4fbb369c4ac5927ccd72ac526
|
|
img2simg and simg2img""
|
|
Revert "ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2img"
This reverts commit eec2bb9fda7772d8927603a29ca0880b8b10a8ed
|
|
|
|
There were a few problems with the LOCAL_MODULE_TAGS here:
1) simg2img was being installed on the device. Add an "optional"
tag for the BUILD_EXECUTABLE from the implied default of user so
this does not happen.
2) In preparation of removing simg2img from user_tags.mk, add a
"debug" tag to the BUILD_HOST_EXECUTABLE so it will be put in the
host bin subdirectory for eng and userdebug builds.
3) img2simg was not being put into the host bin subdirectory by
default. By changing the TAG from optional to debug, it is now
put there for eng and userdebug builds.
Change-Id: I3182781e78ffde2208644660d33b7eb068147561
Signed-off-by: Scott Anderson <saa@android.com>
|
|
Change-Id: I97c1aec040b46c36bde82f7726a6d35b28ac6733
Signed-off-by: Scott Anderson <saa@android.com>
|
|
|
|
|
|
img2simg can take a large binary and chop it into multiple sparse
images. Each sparse image that is output has two chunks: a Don't
Care chunk to offset to where the data should be placed, and a
Raw chunk that actually contains the data to be placed there.
So, for example, if you have a 12 GB random file that you want to
place into userdata for testing e-MMC, you can run img2simg on it
to chop it into multiple sparse files and then "fastboot flash
userdata" on each of the sparse files.
Usage: img2simg [OPTIONS] <raw_image_file>
The <raw_image_file> will be split into as many sparse
files as needed. Each sparse file will contain a single
DONT CARE chunk to offset to the correct block and then
a single RAW chunk containing a portion of the data from
the raw image file. The sparse files will be named by
appending a number to the name of the raw image file.
OPTIONS (Defaults are enclosed by square brackets):
-s SUFFIX Format appended number with SUFFIX [%03d]
-B SIZE Use a block size of SIZE [4K]
-C SIZE Use a chunk size of SIZE [64M]
SIZE is a decimal integer that may optionally be
followed by a suffix that specifies a multiplier for
the integer:
c 1 byte (the default when omitted)
w 2 bytes
b 512 bytes
kB 1000 bytes
K 1024 bytes
MB 1000*1000 bytes
M 1024*1024 bytes
GB 1000*1000*1000 bytes
G 1024*1024*1024 bytes
Change-Id: I5593be1c195e04d83c99454e996763b841951dd7
Signed-off-by: Scott Anderson <saa@android.com>
|
|
files""
|
|
This reverts commit dba7d246a20d14663c2e90b2fa9051894e3c7e1b
Broke the build:
system/extras/ext4_utils/img2simg.c:23:20: error: endian.h: No such file or directory
system/extras/ext4_utils/img2simg.c: In function ‘main’:
system/extras/ext4_utils/img2simg.c:262: warning: implicit declaration of function ‘htole32’
system/extras/ext4_utils/img2simg.c:263: warning: implicit declaration of function ‘htole16’
make: * [out/host/darwin-x86/obj/EXECUTABLES/img2simg_intermediates/img2simg.o] Error 1
|
|
|
|
img2simg can take a large binary and chop it into multiple sparse
images. Each sparse image that is output has two chunks: a Don't
Care chunk to offset to where the data should be placed, and a
Raw chunk that actually contains the data to be placed there.
So, for example, if you have a 12 GB random file that you want to
place into userdata for testing e-MMC, you can run img2simg on it
to chop it into multiple sparse files and then "fastboot flash
userdata" on each of the sparse files.
Usage: img2simg [OPTIONS] <raw_image_file>
The <raw_image_file> will be split into as many sparse
files as needed. Each sparse file will contain a single
DONT CARE chunk to offset to the correct block and then
a single RAW chunk containing a portion of the data from
the raw image file. The sparse files will be named by
appending a number to the name of the raw image file.
OPTIONS (Defaults are enclosed by square brackets):
-s SUFFIX Format appended number with SUFFIX [%03d]
-B SIZE Use a block size of SIZE [4K]
-C SIZE Use a chunk size of SIZE [64M]
SIZE is a decimal integer that may optionally be
followed by a suffix that specifies a multiplier for
the integer:
c 1 byte (the default when omitted)
w 2 bytes
b 512 bytes
kB 1000 bytes
K 1024 bytes
MB 1000*1000 bytes
M 1024*1024 bytes
GB 1000*1000*1000 bytes
G 1024*1024*1024 bytes
Change-Id: I6d3ee9deef21dcbc6bc95e2c5b822154705b4e35
Signed-off-by: Scott Anderson <saa@android.com>
|
|
Change-Id: Ia4fc57d5111fac78f6647af279dd68808f3d6856
|
|
Change-Id: I3c823ace4f0ab6952852b99de366cd33592df675
|