summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-08-19tests: Use -fno-strict-aliasing for memtestlinaro_android_4.1.2linaro_android_4.1.1Bernhard Rosenkraenzer
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>
2012-06-27Fix a few bugs in rand_emmc_perfandroid-cts-4.1_r4android-cts-4.1_r2android-cts-4.1_r1android-4.1.2_r2.1android-4.1.2_r2android-4.1.2_r1android-4.1.1_r6.1android-4.1.1_r6android-4.1.1_r5android-4.1.1_r4android-4.1.1_r3android-4.1.1_r2android-4.1.1_r1.1android-4.1.1_r1jb-releasejb-mr0-releasejb-devKen Sumrall
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
2012-06-14Add some tools for testing ext4 performance and resiliency.Ken Sumrall
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
2012-06-07atrace: enable running on user buildsJamie Gennis
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
2012-05-22Add disk I/O tracing.Jeff Brown
Bug: 6488845 Change-Id: I93acb726f35b114fb1ea7297da4456826f805b7b
2012-05-11Ignore SIGPIPE is some of the tools used via dumpstateJP Abgrall
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
2012-05-07atrace: add support for tracing CPU idle eventsJamie Gennis
This change adds the -i command line flag to atrace to enable tracing CPU idle kernel events. Change-Id: I4a2c8619224c0f50c7fd7c61c7b24fa2211f656c
2012-04-28atrace: add support for zlib compressionJamie Gennis
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
2012-04-10Merge "atrace: make cpu freq governor tracing optional"Jamie Gennis
2012-04-09atrace: make cpu freq governor tracing optionalJamie Gennis
This change allows atrace to run on kernels that do not have CPU frequency interactive governor tracing enabled in the kernel. Change-Id: Ibfde751da7b6cc9a55794355093a37feb28f5e52
2012-04-08Fix SELinux buildingKenny Root
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
2012-04-04Merge "First checkin of cpustats"Eric Rowe
2012-04-03First checkin of cpustatsEric Rowe
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
2012-04-02su: do uid check earlier.Nick Kralevich
Change-Id: Ied4894019d2b0021e7f727569ff85650d209e5da
2012-03-30resolved conflicts for merge of 8f9b41d9 to masterKenny Root
Change-Id: I9af02b9bba1176174540c849f905dece8ade54d8
2012-03-30Merge changes I4f6755fe,Ief9c44eeKenny Root
* changes: Extend make_ext4fs() interface to allow callers to pass selabel_handle. Extend make_ext4fs to support setting SELinux security contexts in ext4 images.
2012-03-30Extend make_ext4fs() interface to allow callers to pass selabel_handle.Stephen Smalley
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
2012-03-30Extend make_ext4fs to support setting SELinux security contexts in ext4 images.Stephen Smalley
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
2012-03-29make_ext4fs: Allow custom filesystem configsKenny Root
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
2012-03-26bugmailer: prevent building on pdk buildsColin Cross
bugmailer is in java, so it won't build on pdk builds. It should probably be moved out of system/extras. Change-Id: I9423b565cff2078290390fab22d6622a06959b05
2012-03-22Merge "Pass extra parameter for user id."Amith Yamasani
2012-03-21Merge remote-tracking branch 'goog/ics-aah-exp'Mike Lockwood
2012-03-20Pass extra parameter for user id.Amith Yamasani
Change-Id: I2c2ed833946e18aeabbd7e0a7cb3e515a0d95d4e
2012-03-14Merge "perm_checker: fix permissions."Nick Kralevich
2012-03-14perm_checker: fix permissions.Nick Kralevich
/data/local permissions have changed. Adjust the config file. Tighten up requirements for /data/local/tmp Change-Id: I06ef9a97d6c7c0b360c53b82637a19207db4a28c
2012-03-14Update to follow IActivityManager change.Dianne Hackborn
Change-Id: I5ea3fcaffdaaae6bfeb0edd878fc952952012396
2012-03-12Merge "Fix # of arguments to startActivity"Siva Velusamy
2012-03-12Fix # of arguments to startActivitySiva Velusamy
Change-Id: I376864150349862e9dcb3b964aa316559c904a4a
2012-03-07atrace: add some more command line optionsJamie Gennis
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
2012-02-26atrace: include the binary in debug buildsJamie Gennis
This change makes the atrace module tag 'debug' so that the binary is included in all debug builds. Change-Id: I1fdb87be0461daf686e52ded04b37b9a122edea3
2012-02-23Add the atrace utility.Jamie Gennis
This change adds a new system binary to help with capturing and dumping kernel traces. Change-Id: If2fc074480f822588a4c171312dc4c04fd305356
2012-02-17Pass file descriptor instead of file nameAnatol Pomazau
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
2012-02-17Merge "img2simg: Drop using endian.h"Scott Anderson
2012-02-16img2simg: Drop using endian.hScott Anderson
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>
2012-02-16ext4_utils: simg2img: Add LOCAL_MODULE_TAGS in Android.mkScott Anderson
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>
2012-02-16Adapt ext4_utils for windows.Raphael Moll
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
2012-02-16Merge "Broke the build. Revert "ext4_utils: Fix LOCAL_MODULE_TAGS on ↵Scott Anderson
img2simg and simg2img""
2012-02-16Broke the build.Scott Anderson
Revert "ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2img" This reverts commit eec2bb9fda7772d8927603a29ca0880b8b10a8ed
2012-02-16Merge "ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2img"Scott Anderson
2012-02-15ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2imgScott Anderson
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>
2012-02-15Add simg_dump.py python script to dump sparse image informationScott Anderson
Change-Id: I97c1aec040b46c36bde82f7726a6d35b28ac6733 Signed-off-by: Scott Anderson <saa@android.com>
2012-02-14Merge "Add img2simg tool that splits a large image into <n> sparse files"Scott Anderson
2012-02-14Merge "Fix supplicant start"Irfan Sheriff
2012-02-08Add img2simg tool that splits a large image into <n> sparse filesScott Anderson
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>
2012-02-08Merge "Revert "Add img2simg tool that splits a large image into <n> sparse ↵Scott Anderson
files""
2012-02-08Revert "Add img2simg tool that splits a large image into <n> sparse files"Scott Anderson
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
2012-02-08Merge "munmap() should be called with the same length as mmap()"Anatol Pomazau
2012-02-07Add img2simg tool that splits a large image into <n> sparse filesScott Anderson
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>
2012-02-07munmap() should be called with the same length as mmap()Anatol Pomazau
Change-Id: Ia4fc57d5111fac78f6647af279dd68808f3d6856
2012-02-07Fix indentationAnatol Pomazau
Change-Id: I3c823ace4f0ab6952852b99de366cd33592df675