OSDN Git Service

android-x86/system-extras.git
8 years agoFix typo in 'help report' output.
Than McIntosh [Tue, 1 Mar 2016 17:38:33 +0000 (12:38 -0500)]
Fix typo in 'help report' output.

Was "--pid", should be "--pids".

Change-Id: Icb49a3d7568bd8f339bf0e4e1065fe2367514588

8 years agoMerge "simpleperf: fix mac build."
Yabin Cui [Thu, 25 Feb 2016 20:36:03 +0000 (20:36 +0000)]
Merge "simpleperf: fix mac build."

8 years agoMerge "simpleperf: port cmd_report_test to nonlinux."
Yabin Cui [Thu, 25 Feb 2016 19:08:07 +0000 (19:08 +0000)]
Merge "simpleperf: port cmd_report_test to nonlinux."

8 years agosimpleperf: fix mac build.
Yabin Cui [Thu, 25 Feb 2016 19:02:30 +0000 (11:02 -0800)]
simpleperf: fix mac build.

I forgot that mac doesn't support whole static library. Change to static library
to avoid hiting the same problem in the future.

Bug: 26962895
Change-Id: Ia8e26c2e1cf7621391e00e100b22b7ed451dfa32

8 years agosimpleperf: port cmd_report_test to nonlinux.
Yabin Cui [Wed, 24 Feb 2016 05:41:03 +0000 (21:41 -0800)]
simpleperf: port cmd_report_test to nonlinux.

And fix one build_id bug introduced by previous patch.

Bug: 26962895

Change-Id: Ibb8bd6ec77ee862bb01c26342d3b3024468e75b2

8 years agoMerge "Cite more kernel commits."
Lorenzo Colitti [Thu, 25 Feb 2016 13:13:19 +0000 (13:13 +0000)]
Merge "Cite more kernel commits."

8 years agoCite more kernel commits.
Lorenzo Colitti [Tue, 23 Feb 2016 14:42:10 +0000 (23:42 +0900)]
Cite more kernel commits.

Change-Id: Ia335d5c8461e7dfb41211977df74422e00012be8

8 years agoMerge "Teach iproute how to dump IP addresses as well."
Lorenzo Colitti [Mon, 22 Feb 2016 01:33:06 +0000 (01:33 +0000)]
Merge "Teach iproute how to dump IP addresses as well."

8 years agoTeach iproute how to dump IP addresses as well.
Lorenzo Colitti [Sun, 21 Feb 2016 13:45:09 +0000 (22:45 +0900)]
Teach iproute how to dump IP addresses as well.

Change-Id: I38b5182d9110d72758c48da4d0edc7cf0fb84283

8 years agoMerge "simpleperf: fix build by removing off64_t."
Yabin Cui [Thu, 18 Feb 2016 20:26:56 +0000 (20:26 +0000)]
Merge "simpleperf: fix build by removing off64_t."

8 years agosimpleperf: fix build by removing off64_t.
Yabin Cui [Thu, 18 Feb 2016 20:11:40 +0000 (12:11 -0800)]
simpleperf: fix build by removing off64_t.

Bug: 26962895
Change-Id: I211bacc22c2f6b6b24c639365c706e93d66ce4ac

8 years agoMerge "simpleperf: report symbols of native libraries in apk file."
Yabin Cui [Thu, 18 Feb 2016 18:22:51 +0000 (18:22 +0000)]
Merge "simpleperf: report symbols of native libraries in apk file."

8 years agosimpleperf: report symbols of native libraries in apk file.
Yabin Cui [Mon, 15 Feb 2016 03:18:02 +0000 (19:18 -0800)]
simpleperf: report symbols of native libraries in apk file.

Changes included:
1. provide interface in read_apk.h to read build id and symbols.
2. report symbols of native libraries in apk file.
3. refactor code in read_elf.cpp and read_apk.cpp.
4. add verbose log.
5. add -o report_file_name option for report command.
6. add corresponding unit tests.

Bug: 26962895
Change-Id: I0d5398996e0c29dba4a6f5226692b758ca096bbd

8 years agoMerge changes I871eb6a2,Ied6f5aae,I226a41e7
Lorenzo Colitti [Wed, 17 Feb 2016 06:03:08 +0000 (06:03 +0000)]
Merge changes I871eb6a2,Ied6f5aae,I226a41e7

* changes:
  Add a test for the behaviour of FIN_WAIT sockets.
  Make the bytecode tests a bit more robust.
  Rename DisableLinger to DisableFinWait, and add an EnableFinWait.

8 years agoMerge "simpleperf: accept different perf_attr sizes."
Yabin Cui [Tue, 16 Feb 2016 21:28:16 +0000 (21:28 +0000)]
Merge "simpleperf: accept different perf_attr sizes."

8 years agosimpleperf: accept different perf_attr sizes.
Yabin Cui [Tue, 16 Feb 2016 20:15:31 +0000 (12:15 -0800)]
simpleperf: accept different perf_attr sizes.

The size of perf_attr can be increased as new features are added. And
we can accept different perf_attr sizes in perf.data, and ignore
unknown features.

Change-Id: Ia42617f92acb3ab6ae56eb91aa0d7b73efc0b8af

8 years agoAdd a test for the behaviour of FIN_WAIT sockets.
Lorenzo Colitti [Tue, 16 Feb 2016 16:07:15 +0000 (01:07 +0900)]
Add a test for the behaviour of FIN_WAIT sockets.

Change-Id: I871eb6a2d3ff889417e6ed02661c8d9a41980e61

8 years agoMake the bytecode tests a bit more robust.
Lorenzo Colitti [Tue, 16 Feb 2016 16:05:54 +0000 (01:05 +0900)]
Make the bytecode tests a bit more robust.

They used to require that there were no TCP sockets on the system
at all. Now they only require that there be no established
sockets. Not a huge improvement, but it does make it possible to
write tests that leave-non established sockets around after they
terminate.

Change-Id: Ied6f5aae3b6cf4a5bd25aa4fbeac637010e1f0e8

8 years agoRename DisableLinger to DisableFinWait, and add an EnableFinWait.
Lorenzo Colitti [Tue, 16 Feb 2016 15:42:58 +0000 (00:42 +0900)]
Rename DisableLinger to DisableFinWait, and add an EnableFinWait.

Change-Id: I226a41e7eed6cc5bda04f1fb3a0f1889a10408c0

8 years agoMerge "Improve sock_diag debugging code."
Lorenzo Colitti [Tue, 16 Feb 2016 16:08:28 +0000 (16:08 +0000)]
Merge "Improve sock_diag debugging code."

8 years agoMerge "Add missing liblog dependency"
Dimitry Ivanov [Sat, 13 Feb 2016 04:44:24 +0000 (04:44 +0000)]
Merge "Add missing liblog dependency"

8 years agoAdd missing liblog dependency
Dimitry Ivanov [Sat, 13 Feb 2016 02:43:40 +0000 (18:43 -0800)]
Add missing liblog dependency

Bug: http://b/27171986
Change-Id: I508d3cfbcb9e026b0f4a086fc6dd1adeffbffcc3

8 years agoMerge "Add missing liblog dependency"
Dimitry Ivanov [Sat, 13 Feb 2016 00:31:18 +0000 (00:31 +0000)]
Merge "Add missing liblog dependency"

8 years agoAdd missing liblog dependency
Dimitry Ivanov [Sat, 13 Feb 2016 00:28:49 +0000 (16:28 -0800)]
Add missing liblog dependency

Bug: http://b/27171986
Change-Id: Ifef160cce7f64cd95ceb121e1c311e52352174c4

8 years agoMerge "Fix clang warnings and leak of full_stats_file ."
Chih-hung Hsieh [Fri, 12 Feb 2016 20:02:48 +0000 (20:02 +0000)]
Merge "Fix clang warnings and leak of full_stats_file ."

8 years agoMerge "Fix memory leak of dirbuf."
Chih-hung Hsieh [Fri, 12 Feb 2016 19:56:41 +0000 (19:56 +0000)]
Merge "Fix memory leak of dirbuf."

8 years agoFix memory leak of dirbuf.
Chih-Hung Hsieh [Fri, 12 Feb 2016 19:16:19 +0000 (11:16 -0800)]
Fix memory leak of dirbuf.

BUG: 26962062
Change-Id: I5fae9eed5b154205a6780fb28c59fccf0b5b16ec

8 years agoFix clang warnings and leak of full_stats_file .
Chih-Hung Hsieh [Fri, 12 Feb 2016 19:32:33 +0000 (11:32 -0800)]
Fix clang warnings and leak of full_stats_file .

BUG: 27121040
Change-Id: I33a218c7746509278e1222cd5dbd6d4876405b28

8 years agoMerge "rtc_time: test agent timeouts"
Mark Salyzyn [Thu, 11 Feb 2016 23:45:46 +0000 (23:45 +0000)]
Merge "rtc_time: test agent timeouts"

8 years agortc_time: test agent timeouts
Mark Salyzyn [Thu, 11 Feb 2016 23:04:35 +0000 (15:04 -0800)]
rtc_time: test agent timeouts

Break the test up into four, keeping each well below the 60 second
timeout for the test agents. Overhead for the splitting up is an
additional 10 seconds in order to complete all four of the tests
instead of one. typical single test completion is 22.5 seconds.

Change-Id: If8e9a6c7dfd505a9fbc73e9248be4eb2b61521e5

8 years agoMerge "simpleperf: support building static binary on target."
Yabin Cui [Thu, 11 Feb 2016 18:29:30 +0000 (18:29 +0000)]
Merge "simpleperf: support building static binary on target."

8 years agosimpleperf: support building static binary on target.
Yabin Cui [Wed, 10 Feb 2016 19:29:51 +0000 (11:29 -0800)]
simpleperf: support building static binary on target.

Bug: 27125711

Change-Id: I7e951c9ffb3e056d05a2b3567f482c6862a3a5b3

8 years agoMerge "Track update to bouncycastle 1.54"
Sergio Giro [Wed, 10 Feb 2016 23:34:49 +0000 (23:34 +0000)]
Merge "Track update to bouncycastle 1.54"

8 years agoTrack update to bouncycastle 1.54
Kenny Root [Wed, 10 Feb 2016 23:30:56 +0000 (15:30 -0800)]
Track update to bouncycastle 1.54

Change-Id: I87252e179e191c6210d26e4055bee03fb43d8ba7

8 years agoMerge "Add kernel config tests"
Mark Salyzyn [Wed, 10 Feb 2016 23:20:17 +0000 (23:20 +0000)]
Merge "Add kernel config tests"

8 years agoAdd kernel config tests
Mark Salyzyn [Wed, 10 Feb 2016 22:00:14 +0000 (14:00 -0800)]
Add kernel config tests

A simple start to simple day. Check for evidence of following CONFIGs:

CONFIG_MMC_BLOCK_MAX_SPEED=y
CONFIG_IPV6=y
CONFIG_IP_MULTICAST=y
CONFIG_PSTORE=y
CONFIG_PSTORE_CONSOLE=y
CONFIG_PSTORE_PMSG=y
CONFIG_SYSVIPC is not set

ToDo: Evidence for all configs in android/configs/android-base.cfg
      and android/configs/android-recommended.cfg. Most are not
      possible to directly discover, this is performed on a best
      effort basis.

Bug: 19173869
Bug: 26559308
Change-Id: I0447334fab7781579fab10610d2f7ac1d34e6044

8 years agoMerge "simpleperf: port read_apk and read_apk/read_elf tests to nonlinux."
Yabin Cui [Wed, 10 Feb 2016 19:21:54 +0000 (19:21 +0000)]
Merge "simpleperf: port read_apk and read_apk/read_elf tests to nonlinux."

8 years agosimpleperf: port read_apk and read_apk/read_elf tests to nonlinux.
Yabin Cui [Sat, 6 Feb 2016 01:32:08 +0000 (17:32 -0800)]
simpleperf: port read_apk and read_apk/read_elf tests to nonlinux.

Also make following small changes:
1. Manage testdata files like libziparchive.
2. Replace StringToPid() with android::base::ParseInt().
3. Add tests in read_elf_test.

Bug: 26962895

Change-Id: I6603e9f3cea3a013e2618ea003790d102739f843

8 years agoMerge "libfec: fix thread count calculation"
Sami Tolvanen [Mon, 8 Feb 2016 19:00:57 +0000 (19:00 +0000)]
Merge "libfec: fix thread count calculation"

8 years agolibfec: fix thread count calculation
Sami Tolvanen [Mon, 8 Feb 2016 18:54:27 +0000 (10:54 -0800)]
libfec: fix thread count calculation

On systems with a large number of cores, smallish reads may not be
able to utilize all the cores. Correctly compute the number of threads
we should use.

Change-Id: I7a05c144c2b83a2f6083c33a686ced32cce576c4

8 years agoMerge "Add __s32 define."
Christopher Ferris [Sat, 6 Feb 2016 00:55:51 +0000 (00:55 +0000)]
Merge "Add __s32 define."

8 years agoAdd __s32 define.
Christopher Ferris [Sat, 6 Feb 2016 00:53:13 +0000 (16:53 -0800)]
Add __s32 define.

This is needed for the new v4.4.1 kernel headers.

Bug: 23789423
Change-Id: I3053cdf895793c38ff1af41ebb560c13fda23215

8 years agoImprove sock_diag debugging code.
Lorenzo Colitti [Fri, 5 Feb 2016 03:58:07 +0000 (12:58 +0900)]
Improve sock_diag debugging code.

- Unbreak GetConstantName on modules that contain constants whose
  names start with "INET_DIAG_BC".
- Honour NL_DEBUG when sending dump requests.
- Decode sock_diag messages differently depending on whether
  they are requests or responses.
- Print sock_diag bytecode hex-encoded instead of raw.

Change-Id: I3cc20ab635d1ff4f137aa0f9ff0ff88b1a37ce72

8 years agoMerge "Support profiling of shared libs embedded in APKs."
Than McIntosh [Wed, 3 Feb 2016 12:00:41 +0000 (12:00 +0000)]
Merge "Support profiling of shared libs embedded in APKs."

8 years agoMerge "Stop living in the '80s."
Dan Albert [Wed, 3 Feb 2016 03:53:23 +0000 (03:53 +0000)]
Merge "Stop living in the '80s."

8 years agoStop living in the '80s.
Dan Albert [Wed, 3 Feb 2016 03:52:41 +0000 (19:52 -0800)]
Stop living in the '80s.

Build fix for GCC.

Change-Id: I2215913647a95897dc39b862696e395a1ebcf208

8 years agoMerge "Fix warnings in system/extras."
Dan Albert [Wed, 3 Feb 2016 02:25:12 +0000 (02:25 +0000)]
Merge "Fix warnings in system/extras."

8 years agoFix warnings in system/extras.
Dan Albert [Tue, 2 Feb 2016 23:35:33 +0000 (15:35 -0800)]
Fix warnings in system/extras.

Bug: http://b/26936282
Change-Id: I1b9c6c9bb06944c32abcb871279d056eea0fb11a

8 years agoSupport profiling of shared libs embedded in APKs.
Than McIntosh [Tue, 2 Feb 2016 00:50:20 +0000 (19:50 -0500)]
Support profiling of shared libs embedded in APKs.

Some APKs contain shared libraries that the linker handles
by mmap'ing directly from their APKs (if the library is
uncompressed and the proper manifest flag is set). With
this patch simpleperf now breaks out samples on a per-li
basis and reports the name of the lib within the APK.
Example output:

  Cmdline: /system/xbin/simpleperf record -a sleep 30
  Samples: 140672 of event 'cpu-cycles'
  Event count: 84111474884

  Overhead  Command          Pid    Tid    Shared Object
  90.22%    b_open_from_apk  19066  19066
  /data/app/com.android.frameworks.coretests.install_jni_lib_open_from_apk-2/base.apk!lib/armeabi-v7a/libgcdstuff.so
  4.85%     b_open_from_apk  19066  19066
  /data/app/com.android.frameworks.coretests.install_jni_lib_open_from_apk-2/base.apk!lib/armeabi-v7a/libframeworks_coretests_jni.so
  1.19%     simpleperf       19085  19085  /system/lib/libc.so
  ...

Bug: 22560619
Change-Id: I1e0f2e155e03b33935eac24e104c3fd7b9a7e33c

8 years agoMerge "Fix/suppress potential memory leaks warnings."
Chih-hung Hsieh [Tue, 2 Feb 2016 19:40:10 +0000 (19:40 +0000)]
Merge "Fix/suppress potential memory leaks warnings."

8 years agoFix/suppress potential memory leaks warnings.
Chih-Hung Hsieh [Tue, 2 Feb 2016 18:49:50 +0000 (10:49 -0800)]
Fix/suppress potential memory leaks warnings.

* One simple problem fixed by calling free.
* Others are suppressed since we don't care memory leaks
  in this soon-to-be-obsolete test program.

BUG: 26910807
Change-Id: I5ac10115db9644b53e9e8b5fd40a5dc87b2019dc

8 years agoMerge "simpleperf: use RemoveFileIfExists in libbase."
Yabin Cui [Tue, 2 Feb 2016 06:23:38 +0000 (06:23 +0000)]
Merge "simpleperf: use RemoveFileIfExists in libbase."

8 years agosimpleperf: use RemoveFileIfExists in libbase.
Yabin Cui [Tue, 2 Feb 2016 02:07:03 +0000 (18:07 -0800)]
simpleperf: use RemoveFileIfExists in libbase.

Change-Id: Ife16103a5ec86cc6ee2aee4838d1a56a91f54516

8 years agoMerge changes I3b881be8,I80d97bd5,Id115e8b2
Lorenzo Colitti [Wed, 27 Jan 2016 05:54:24 +0000 (05:54 +0000)]
Merge changes I3b881be8,I80d97bd5,Id115e8b2

* changes:
  Fix lint warnings.
  Note a 3.18 commit in neighbour_test.py.
  SOCK_DESTROY is no longer optional.

8 years agoFix lint warnings.
Lorenzo Colitti [Tue, 26 Jan 2016 14:22:28 +0000 (23:22 +0900)]
Fix lint warnings.

Change-Id: I3b881be8b665ba790e7da79b3560c159d72be1e2

8 years agoMerge "Remove header from LOCAL_SRC_FILES"
Dan Willemsen [Tue, 26 Jan 2016 23:55:09 +0000 (23:55 +0000)]
Merge "Remove header from LOCAL_SRC_FILES"

8 years agoMerge "rtc_test: EACCES acceptable for write"
Mark Salyzyn [Tue, 26 Jan 2016 20:41:12 +0000 (20:41 +0000)]
Merge "rtc_test: EACCES acceptable for write"

8 years agortc_test: EACCES acceptable for write
Mark Salyzyn [Tue, 26 Jan 2016 19:18:48 +0000 (11:18 -0800)]
rtc_test: EACCES acceptable for write

If we can not write to /dev/rtc0, then accept result

Requires /dev/rtc0 to be something like mode 440.

Bug: 26792522
Change-Id: Ief2ac5cd1bac4b0272ef9d9bf096ed4000163244

8 years agoNote a 3.18 commit in neighbour_test.py.
Lorenzo Colitti [Tue, 26 Jan 2016 06:59:47 +0000 (15:59 +0900)]
Note a 3.18 commit in neighbour_test.py.

Change-Id: I80d97bd548c8d6749e48f4e8ff539808a7e1e0ab

8 years agoSOCK_DESTROY is no longer optional.
Lorenzo Colitti [Mon, 25 Jan 2016 08:06:56 +0000 (17:06 +0900)]
SOCK_DESTROY is no longer optional.

Change-Id: Id115e8b2ef100e19ae063047be5ddfde0b60e3b0

8 years agoMerge changes Ib1510f36,I8a2f50da,Ife74d135,Idfb19903
Lorenzo Colitti [Tue, 26 Jan 2016 06:57:48 +0000 (06:57 +0000)]
Merge changes Ib1510f36,I8a2f50da,Ife74d135,Idfb19903

* changes:
  Refactor TCP test code into its own file.
  Move some sock_diag tests around.
  Teach more sock_diag code and tests about mapped sockets.
  Delete the hack that finds mapped sockets.

8 years agoRemove header from LOCAL_SRC_FILES
Dan Willemsen [Tue, 26 Jan 2016 03:55:37 +0000 (19:55 -0800)]
Remove header from LOCAL_SRC_FILES

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.

Change-Id: I0ced87726dae5fcd4209d9ff1f83fa611817ecd3

8 years agoMerge "Add use of libbacktrace_offline."
Christopher Ferris [Tue, 26 Jan 2016 01:50:26 +0000 (01:50 +0000)]
Merge "Add use of libbacktrace_offline."

8 years agoAdd use of libbacktrace_offline.
Christopher Ferris [Tue, 26 Jan 2016 00:21:54 +0000 (16:21 -0800)]
Add use of libbacktrace_offline.

Change-Id: Ia8c16b3b82e4a19fcaedd21c05ab6bae5006f561

8 years agoRefactor TCP test code into its own file.
Lorenzo Colitti [Mon, 25 Jan 2016 15:32:06 +0000 (00:32 +0900)]
Refactor TCP test code into its own file.

Change-Id: Ib1510f3679f9d4eb651e21307b71873190e610fc

8 years agoMove some sock_diag tests around.
Lorenzo Colitti [Mon, 25 Jan 2016 14:43:15 +0000 (23:43 +0900)]
Move some sock_diag tests around.

Change-Id: I8a2f50da826bbf2a2c8d42bd3d05d53fc1f05932

8 years agoTeach more sock_diag code and tests about mapped sockets.
Lorenzo Colitti [Thu, 21 Jan 2016 03:02:27 +0000 (12:02 +0900)]
Teach more sock_diag code and tests about mapped sockets.

Change-Id: Ife74d135f4af33ccebe10ce7d42d4b43e37f9523

8 years agoMerge "Simpleperf: adjust default mmap_pages used when recording."
Yabin Cui [Sat, 23 Jan 2016 03:57:11 +0000 (03:57 +0000)]
Merge "Simpleperf: adjust default mmap_pages used when recording."

8 years agoSimpleperf: adjust default mmap_pages used when recording.
Yabin Cui [Fri, 22 Jan 2016 23:38:46 +0000 (15:38 -0800)]
Simpleperf: adjust default mmap_pages used when recording.

If running as non-root, there is a limitation on how many
mmap pages can be used for profiling per user. So adjust
default mmap_pages value to fit the limit, and add option
to change it.

Change-Id: Ie73f33c473498689234972989fc55b7731366792

8 years agoDelete the hack that finds mapped sockets.
Lorenzo Colitti [Thu, 21 Jan 2016 01:04:54 +0000 (10:04 +0900)]
Delete the hack that finds mapped sockets.

The kernel handles this for us as of net-next commit
fc439d9489479411fbf9bbbec2c768df89e85503

Change-Id: Idfb19903cdeb8b1c0f288e1b290332414e9565cd

8 years agoMerge changes I2e3eb0b3,I2f7bd13e
Lorenzo Colitti [Fri, 22 Jan 2016 03:41:14 +0000 (03:41 +0000)]
Merge changes I2e3eb0b3,I2f7bd13e

* changes:
  Delete FixupDiagMsg and cite the commit that makes it unnecessary.
  Add a test for a port comparison bytecode validation bug.

8 years agoMerge changes I035cd9b6,I8ca9f205
Lorenzo Colitti [Fri, 22 Jan 2016 03:40:06 +0000 (03:40 +0000)]
Merge changes I035cd9b6,I8ca9f205

* changes:
  Make the SOCK_DESTROY tests work again.
  Make CloseSocketFromFd work on mapped sockets too.

8 years agoMerge "key_control.cpp: Use linux/keyctl.h"
Nick Kralevich [Tue, 19 Jan 2016 18:21:56 +0000 (18:21 +0000)]
Merge "key_control.cpp: Use linux/keyctl.h"

8 years agokey_control.cpp: Use linux/keyctl.h
Nick Kralevich [Tue, 19 Jan 2016 18:18:22 +0000 (10:18 -0800)]
key_control.cpp: Use linux/keyctl.h

Use linux/keyctl.h instead of copying the header definitions.

Change-Id: Ic3804d49671e4951d1d8869411f665e9f5eef674

8 years agoMerge "libfec: fix back-up header validation"
Sami Tolvanen [Tue, 19 Jan 2016 13:16:09 +0000 (13:16 +0000)]
Merge "libfec: fix back-up header validation"

8 years agoDelete FixupDiagMsg and cite the commit that makes it unnecessary.
Lorenzo Colitti [Sat, 16 Jan 2016 16:54:24 +0000 (01:54 +0900)]
Delete FixupDiagMsg and cite the commit that makes it unnecessary.

Change-Id: I2e3eb0b3f6e3be824c37c161813c3b1301fd796e

8 years agoMake the SOCK_DESTROY tests work again.
Lorenzo Colitti [Fri, 15 Jan 2016 17:30:59 +0000 (02:30 +0900)]
Make the SOCK_DESTROY tests work again.

These bitrotted due to changes to the tests developed on kernels
which don't yet have SOCK_DESTROY backported to them. Make minor
fixes to get them passing again:

1. Move asserts shared between TcpTest and SockDiagTest to
   SockDiagBaseTest.
2. Make IncomingConnection not leave FIN_WAIT sockets around,
   and check for their presence in testCrossFamilyBytecode, which
   fails if any other sockets exist.
3. Make mapped addresses work in testConnectInterrupted.

Change-Id: I035cd9b6570ca83a411d6e12df46ce3e76554a19

8 years agoAdd a test for a port comparison bytecode validation bug.
Lorenzo Colitti [Sat, 16 Jan 2016 12:33:58 +0000 (21:33 +0900)]
Add a test for a port comparison bytecode validation bug.

Change-Id: I2f7bd13e96124c6342a21559ca8e086010e8c51a

8 years agoMake CloseSocketFromFd work on mapped sockets too.
Lorenzo Colitti [Fri, 15 Jan 2016 17:21:58 +0000 (02:21 +0900)]
Make CloseSocketFromFd work on mapped sockets too.

Change-Id: I8ca9f205fcca49391f2e20339c8a6ddc66f75c3c

8 years agoMerge "Initial import of headless systrace analysis."
Martijn Coenen [Mon, 18 Jan 2016 20:42:19 +0000 (20:42 +0000)]
Merge "Initial import of headless systrace analysis."

8 years agoInitial import of headless systrace analysis.
Martijn Coenen [Mon, 28 Sep 2015 14:18:39 +0000 (16:18 +0200)]
Initial import of headless systrace analysis.

Can dump the following on a per-process/activity basis:
- Time the process was running / activity in the foreground
- # of frames rendered, and their performance
- # of direct reclaims
- Amount of time spent on each CPU for key threads
- CPU frequency distribution

Change-Id: I449c5729a0cd4c27d1b810b669a86cd5ee7f4467

8 years agolibfec: fix back-up header validation
Sami Tolvanen [Mon, 18 Jan 2016 20:33:43 +0000 (20:33 +0000)]
libfec: fix back-up header validation

If the primary fec_header is invalid, correctly validate the
back-up header even if it's not at the beginning of a block.

Change-Id: Ida15e6eeb08f3d50d4e096897ccc814c0949e8f8

8 years agoMerge "Simpleperf: support build for windows."
Yabin Cui [Sun, 17 Jan 2016 21:01:03 +0000 (21:01 +0000)]
Merge "Simpleperf: support build for windows."

8 years agoSimpleperf: support build for windows.
Yabin Cui [Fri, 15 Jan 2016 23:25:48 +0000 (15:25 -0800)]
Simpleperf: support build for windows.

Change-Id: I31554f36ee97eb0ae27bda9b77e29410776925e2

8 years agoMerge changes I251088dc,I23d0191e
Lorenzo Colitti [Fri, 15 Jan 2016 13:23:15 +0000 (13:23 +0000)]
Merge changes I251088dc,I23d0191e

* changes:
  Test for a cross-family bytecode comparison bug.
  Support checking structs for equality.

8 years agoTest for a cross-family bytecode comparison bug.
Lorenzo Colitti [Thu, 14 Jan 2016 08:40:30 +0000 (17:40 +0900)]
Test for a cross-family bytecode comparison bug.

Change-Id: I251088dc09d803a7448930cd155fc3a1c6c5bddf

8 years agoSupport checking structs for equality.
Lorenzo Colitti [Thu, 14 Jan 2016 17:00:05 +0000 (02:00 +0900)]
Support checking structs for equality.

Also:

- Rename _fields to _fieldnames, because the history of this
  CL shows that _fields is confusing
- Fix some lint errors.

Change-Id: I23d0191e6a588820b3697b2d36d70880ea921d8a

8 years agoMerge "Add code and tests for inet_diag bytecode."
Lorenzo Colitti [Fri, 15 Jan 2016 02:48:35 +0000 (02:48 +0000)]
Merge "Add code and tests for inet_diag bytecode."

8 years agoMerge "Add time rtc ioctl tests"
Mark Salyzyn [Thu, 14 Jan 2016 18:48:45 +0000 (18:48 +0000)]
Merge "Add time rtc ioctl tests"

8 years agoAdd time rtc ioctl tests
Mark Salyzyn [Thu, 14 Jan 2016 15:28:21 +0000 (07:28 -0800)]
Add time rtc ioctl tests

- test read validity
- test year setting from 1970 to 2037 (2015+ critical)
- test year rollover operation (68 seconds to run test)

Bug: 26346842
Change-Id: I225ca2a25c291b9d05d75f5f39de2c6c753fcba1

8 years agoAdd code and tests for inet_diag bytecode.
Lorenzo Colitti [Thu, 14 Jan 2016 02:49:33 +0000 (11:49 +0900)]
Add code and tests for inet_diag bytecode.

Change-Id: I02af43151cf14905cc762455f282cb7fa5a1b003

8 years agoMerge changes I1c396ab2,Ibf0223cc,Ibe49c873,I6aa1bb98,Ib091831c
Lorenzo Colitti [Thu, 14 Jan 2016 11:31:23 +0000 (11:31 +0000)]
Merge changes I1c396ab2,Ibf0223cc,Ibe49c873,I6aa1bb98,Ib091831c

* changes:
  Make RTA_METRICS parsing work properly.
  Slightly simplify dumping sockets.
  Support specifying attributes in dump requests.
  Don't run the sock_diag tests twice.
  Test for a SOCK_DIAG oops on IPv4-mapped SYN_RECV connections.

8 years agoMake RTA_METRICS parsing work properly.
Lorenzo Colitti [Thu, 14 Jan 2016 07:15:24 +0000 (16:15 +0900)]
Make RTA_METRICS parsing work properly.

Currently, parsing RTA_METRICS attributes only works if the
attributes only contain a single RTAX_MTU attribute, but not
other attributes.

This is because _ParseAttributes usually operates on netlink data
structures, and thus takes a data structure (such as a RTMsg
instance) as input. In the special case of the RTA_METRICS
attribute, _Decode calls _ParseAttributes on a blob of nested
attributes and not a data structure (which is correct), but
incorrectly passes in a msg of "RTMsg", which is a data structure
class, not an instance.

The result is that _Decode throws an exception when reading
msg.family. This was not never spotted before because _Decode
had a special hack to parse RTAX_MTU and we never happened to
parse a RTA_METRICS that contained anything else.

Fix this by passing None into _ParseAttributes when we know that
there is no message, and fetching msg.family in _ParseAttributes
only when we know that the message is in fact a rtmsg. This
allows us to merge the hack that parses RTAX_MTU with the code
that parses the other arguments. Also, support RTAX_HOPLIMIT,
which is the attribute which caused us to discover this problem.

Change-Id: I1c396ab29850e6cff95d2e7327ef6d702a8046f7

8 years agoSlightly simplify dumping sockets.
Lorenzo Colitti [Thu, 14 Jan 2016 04:25:29 +0000 (13:25 +0900)]
Slightly simplify dumping sockets.

- Remove the _DumpSockets method, since it's not useful.
- Make ALL_NON_TIME_WAIT the default.

Change-Id: Ibf0223ccfd9968e2e7223226ec3cb74ebd53f97c

8 years agoSupport specifying attributes in dump requests.
Lorenzo Colitti [Thu, 14 Jan 2016 02:46:22 +0000 (11:46 +0900)]
Support specifying attributes in dump requests.

Change-Id: Ibe49c87397518eeb35132bc485093cc8d3aae39e

8 years agoDon't run the sock_diag tests twice.
Lorenzo Colitti [Wed, 13 Jan 2016 16:47:36 +0000 (01:47 +0900)]
Don't run the sock_diag tests twice.

TcpTest inherits from SockDiagTest, which means it runs all the
SockDiagTest test methods as well. Fix this by making the two
inherit from a new base class with no test methods.

Change-Id: I6aa1bb987be00ba29317ab035f2ab3d3cb8e5b9e

8 years agoTest for a SOCK_DIAG oops on IPv4-mapped SYN_RECV connections.
Lorenzo Colitti [Tue, 12 Jan 2016 15:00:24 +0000 (00:00 +0900)]
Test for a SOCK_DIAG oops on IPv4-mapped SYN_RECV connections.

Change-Id: Ib091831cefd140161b020d9801bc7b1fa1e1ea76

8 years agoMerge "Simpleperf: fix --comms option for report cmd."
Yabin Cui [Thu, 14 Jan 2016 04:12:23 +0000 (04:12 +0000)]
Merge "Simpleperf: fix --comms option for report cmd."

8 years agoSimpleperf: fix --comms option for report cmd.
Yabin Cui [Wed, 13 Jan 2016 02:10:45 +0000 (18:10 -0800)]
Simpleperf: fix --comms option for report cmd.

Add corresponding runtest.
Adjust limitation in runtest.conf to pass tests on device.

Change-Id: Ie56dc6dc4dade3c13aaaa7022b871b5d8bfd69dc

8 years agoMerge "Remove cpu benchmark."
Christopher Ferris [Tue, 12 Jan 2016 21:56:29 +0000 (21:56 +0000)]
Merge "Remove cpu benchmark."