OSDN Git Service

android-x86/system-extras.git
9 years agoMerge "Simpleperf: check build id in report command."
Yabin Cui [Sat, 11 Jul 2015 01:46:19 +0000 (01:46 +0000)]
Merge "Simpleperf: check build id in report command."

9 years agoSimpleperf: check build id in report command.
Yabin Cui [Wed, 1 Jul 2015 23:16:57 +0000 (16:16 -0700)]
Simpleperf: check build id in report command.

1. refactor BuildId type.
2. check build id before parsing symbols in report command.

Bug: 22179177

Change-Id: Iefc797a88d4a168e109db786105120c8d6914369

9 years agoMerge "Require optimistic behaviour to pass srcaddr_selection_test"
Erik Kline [Thu, 2 Jul 2015 07:11:37 +0000 (07:11 +0000)]
Merge "Require optimistic behaviour to pass srcaddr_selection_test"

9 years agoRequire optimistic behaviour to pass srcaddr_selection_test
Erik Kline [Thu, 2 Jul 2015 06:35:51 +0000 (15:35 +0900)]
Require optimistic behaviour to pass srcaddr_selection_test

Change-Id: I612a8e1427d976c154529540b89b9db3da2b25d5

9 years agoMerge "Simpleperf: support callgraph option in report command."
Yabin Cui [Thu, 2 Jul 2015 03:36:53 +0000 (03:36 +0000)]
Merge "Simpleperf: support callgraph option in report command."

9 years agoMerge "Simpleperf: add --log option to ease debugging."
Yabin Cui [Thu, 2 Jul 2015 03:35:11 +0000 (03:35 +0000)]
Merge "Simpleperf: add --log option to ease debugging."

9 years agoSimpleperf: add --log option to ease debugging.
Yabin Cui [Wed, 1 Jul 2015 01:03:34 +0000 (18:03 -0700)]
Simpleperf: add --log option to ease debugging.

Bug: 19483574
Change-Id: If45bbefb79b488206ca7542957f4207c3420fce3

9 years agoSimpleperf: support callgraph option in report command.
Yabin Cui [Wed, 1 Jul 2015 17:00:52 +0000 (10:00 -0700)]
Simpleperf: support callgraph option in report command.

Bug: 19483574
Change-Id: I7c5558a71ea15650c1d3e7afa268b3fbc11543d7

9 years agoMerge "Add a test for repeated neighbour probes."
Lorenzo Colitti [Wed, 1 Jul 2015 05:52:22 +0000 (05:52 +0000)]
Merge "Add a test for repeated neighbour probes."

9 years agoMerge "Add a test for ND cache behaviour."
Lorenzo Colitti [Wed, 1 Jul 2015 05:49:28 +0000 (05:49 +0000)]
Merge "Add a test for ND cache behaviour."

9 years agoAdd a test for repeated neighbour probes.
Lorenzo Colitti [Wed, 1 Jul 2015 04:45:35 +0000 (13:45 +0900)]
Add a test for repeated neighbour probes.

Bug: 21909622
Change-Id: Ie0581da732f330f1b7b6a1cab15fcc8fdeb4203d

9 years agoAdd a test for ND cache behaviour.
Lorenzo Colitti [Tue, 30 Jun 2015 08:21:00 +0000 (17:21 +0900)]
Add a test for ND cache behaviour.

Bug: 21909622
Change-Id: I2c38b6220ac8d021785901d775f23ad30aa38242

9 years agoMerge "Simpleperf: support --children option in report command."
Yabin Cui [Wed, 1 Jul 2015 01:16:40 +0000 (01:16 +0000)]
Merge "Simpleperf: support --children option in report command."

9 years agoSimpleperf: support --children option in report command.
Yabin Cui [Tue, 30 Jun 2015 01:19:46 +0000 (18:19 -0700)]
Simpleperf: support --children option in report command.

1. Refactor code about managing report items.
2. support --children option. It is a preparation to support -g option.

Bug: 19483574
Change-Id: Iba4dc0895c48a9fa1937aed165d7b3a2dc8e5c71

9 years agoMerge "Add a unit test for the IPV6_JOIN_ANYCAST hang."
Lorenzo Colitti [Tue, 30 Jun 2015 07:36:41 +0000 (07:36 +0000)]
Merge "Add a unit test for the IPV6_JOIN_ANYCAST hang."

9 years agoAdd a unit test for the IPV6_JOIN_ANYCAST hang.
Lorenzo Colitti [Tue, 30 Jun 2015 04:01:37 +0000 (13:01 +0900)]
Add a unit test for the IPV6_JOIN_ANYCAST hang.

Bug: 18902601
Change-Id: I67cff7954498b9bf2950a34b583be43fd21d6005

9 years agoMerge "Simpleperf: support build on mac."
Yabin Cui [Mon, 29 Jun 2015 22:48:43 +0000 (22:48 +0000)]
Merge "Simpleperf: support build on mac."

9 years agoSimpleperf: support build on mac.
Yabin Cui [Fri, 26 Jun 2015 00:42:23 +0000 (17:42 -0700)]
Simpleperf: support build on mac.

Bug: 19483574
Change-Id: I6c28541944bc0a4e6fc07d7ea5a8fb5f71890510

9 years agoMerge "Simpleperf: don't use designation in struct member initialization."
Yabin Cui [Mon, 29 Jun 2015 17:02:42 +0000 (17:02 +0000)]
Merge "Simpleperf: don't use designation in struct member initialization."

9 years agoMerge "squashfs_utils: fix build on Mac"
Sami Tolvanen [Fri, 26 Jun 2015 16:42:18 +0000 (16:42 +0000)]
Merge "squashfs_utils: fix build on Mac"

9 years agosquashfs_utils: fix build on Mac
Sami Tolvanen [Fri, 26 Jun 2015 16:37:11 +0000 (17:37 +0100)]
squashfs_utils: fix build on Mac

Mac's libc doesn't define TEMP_FAILURE_RETRY. Include a definition
from libcutils.

Change-Id: I72c67d17614f79964fd684fd728242bee3e0599c

9 years agoMerge "squashfs_utils: Add host library and parsing from buffer"
Sami Tolvanen [Fri, 26 Jun 2015 15:25:20 +0000 (15:25 +0000)]
Merge "squashfs_utils: Add host library and parsing from buffer"

9 years agoSimpleperf: don't use designation in struct member initialization.
Yabin Cui [Thu, 25 Jun 2015 20:23:55 +0000 (13:23 -0700)]
Simpleperf: don't use designation in struct member initialization.

designation is not supported in c++ standard, and partially initialized
struct can be unsafe.
And use constexpr when desired.

Bug: 19483574
Change-Id: I4f445845a7d97aeb685f02176485c70f8b0ca995

9 years agoMerge "Simpleperf: support cmdline feature in perf.data."
Yabin Cui [Thu, 25 Jun 2015 17:13:06 +0000 (17:13 +0000)]
Merge "Simpleperf: support cmdline feature in perf.data."

9 years agosquashfs_utils: Add host library and parsing from buffer
Sami Tolvanen [Mon, 1 Jun 2015 09:46:06 +0000 (10:46 +0100)]
squashfs_utils: Add host library and parsing from buffer

Allow the squashfs_utils library to be used on host and add a function to
parse the super block from a buffer.

Change-Id: I7cc59cba9882e159faeb0b203df20aaefb5c6e16

9 years agoSimpleperf: support cmdline feature in perf.data.
Yabin Cui [Wed, 24 Jun 2015 01:50:36 +0000 (18:50 -0700)]
Simpleperf: support cmdline feature in perf.data.

Bug: 19483574
Change-Id: I92f16d6616f274f31ea54e305fe1de10049baf02

9 years agoMerge "Simpleperf: add option to report branch stack information."
Yabin Cui [Thu, 25 Jun 2015 03:09:53 +0000 (03:09 +0000)]
Merge "Simpleperf: add option to report branch stack information."

9 years agoMerge "mksquashfsimage.sh: Add forward slash for SRC_DIR"
Mohamad Ayyash [Wed, 24 Jun 2015 22:00:56 +0000 (22:00 +0000)]
Merge "mksquashfsimage.sh: Add forward slash for SRC_DIR"

9 years agoMerge "mksquashfsimge.sh: Support creating a sparse image"
Mohamad Ayyash [Wed, 24 Jun 2015 22:00:50 +0000 (22:00 +0000)]
Merge "mksquashfsimge.sh: Support creating a sparse image"

9 years agomksquashfsimage.sh: Add forward slash for SRC_DIR
Mohamad Ayyash [Wed, 24 Jun 2015 20:04:29 +0000 (13:04 -0700)]
mksquashfsimage.sh: Add forward slash for SRC_DIR

There is a bug in mksquashfs that fails to interpret symlink dirs unless
they have a forward slash

Change-Id: I64df07d99858a792e1d7af5d11234fe8b75f91ae
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
9 years agoMerge "Simpleperf: exclude meaningless labels in aarch64."
Yabin Cui [Wed, 24 Jun 2015 20:28:37 +0000 (20:28 +0000)]
Merge "Simpleperf: exclude meaningless labels in aarch64."

9 years agoSimpleperf: exclude meaningless labels in aarch64.
Yabin Cui [Tue, 23 Jun 2015 02:41:39 +0000 (19:41 -0700)]
Simpleperf: exclude meaningless labels in aarch64.

Also remove the use of <elf.h> because of its conflicts with llvm.

Bug: 19483574
Change-Id: I2cc6fcb3429aa986101e214dc39fabd920f254dd

9 years agomksquashfsimge.sh: Support creating a sparse image
Mohamad Ayyash [Wed, 24 Jun 2015 17:36:40 +0000 (10:36 -0700)]
mksquashfsimge.sh: Support creating a sparse image

Change-Id: Idc28996028e666f929c032e5380312b7b28faa91
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
9 years agoMerge "Switch to fchown() for changing the UID of sockets."
Erik Kline [Wed, 24 Jun 2015 07:26:20 +0000 (07:26 +0000)]
Merge "Switch to fchown() for changing the UID of sockets."

9 years agoSwitch to fchown() for changing the UID of sockets.
Erik Kline [Wed, 24 Jun 2015 06:06:07 +0000 (15:06 +0900)]
Switch to fchown() for changing the UID of sockets.

All tests PASS on:
    - android/android-3.4
    - android/android-3.10

Also, multinetwork_test.py PASSes
    - android/android-3.18

Bug: 20733156
Bug: 21832279
Change-Id: I1738ca014e58af35f841e31faad649d485b370c6

9 years agoSimpleperf: add option to report branch stack information.
Yabin Cui [Wed, 24 Jun 2015 03:42:01 +0000 (20:42 -0700)]
Simpleperf: add option to report branch stack information.

Bug: 19483574
Change-Id: If98e6d3e7a171bb4f2aa7f5d4be43586a6286f56

9 years agoMerge "Simpleperf: support child inherit option."
Yabin Cui [Mon, 22 Jun 2015 23:02:20 +0000 (23:02 +0000)]
Merge "Simpleperf: support child inherit option."

9 years agoMerge "Simpleperf: better support for per thread comm."
Yabin Cui [Mon, 22 Jun 2015 21:42:52 +0000 (21:42 +0000)]
Merge "Simpleperf: better support for per thread comm."

9 years agoSimpleperf: support child inherit option.
Yabin Cui [Mon, 22 Jun 2015 21:23:01 +0000 (14:23 -0700)]
Simpleperf: support child inherit option.

In order to support child inherit option, also change the way to open event
files for threads on all cpus in record command.

Bug: 19483574
Change-Id: I0765e9ec90841c1f762490de3dd24ad37b0cc619

9 years agoSimpleperf: better support for per thread comm.
Yabin Cui [Mon, 22 Jun 2015 19:27:58 +0000 (12:27 -0700)]
Simpleperf: better support for per thread comm.

1. Move ProcessEntry to ThreadEntry, and add thread_comm in SampleEntry.
2. Add support of ForkRecord and Mmap2Record.
3. Dump ForkRecord for each thread in record command.
4. Add sort key 'tid' in report command, and change default keys.

Bug: 19483574
Change-Id: Iacc690637154aeb7b6f85373730beb50d638ce86

9 years agoMerge "Simpleperf: support event type modifier."
Yabin Cui [Fri, 19 Jun 2015 23:36:25 +0000 (23:36 +0000)]
Merge "Simpleperf: support event type modifier."

9 years agoSimpleperf: support event type modifier.
Yabin Cui [Mon, 15 Jun 2015 20:57:23 +0000 (13:57 -0700)]
Simpleperf: support event type modifier.

Also fix a bug in event_attr dumping.

Bug: 19483574
Change-Id: I255647d1471acab3a63c3dc787ab06b3d2bee294

9 years agoMerge "Simpleperf: support monitoring existing processes/threads."
Yabin Cui [Fri, 19 Jun 2015 00:56:22 +0000 (00:56 +0000)]
Merge "Simpleperf: support monitoring existing processes/threads."

9 years agoSimpleperf: support monitoring existing processes/threads.
Yabin Cui [Thu, 18 Jun 2015 04:15:09 +0000 (21:15 -0700)]
Simpleperf: support monitoring existing processes/threads.

Also change the default record freq from 1000 to 4000. Because 1000 seems to be too low.

Bug: 19483574
Change-Id: I340fcb9d28a156862705e483ee340a1c824eea21

9 years agoMerge "Swap column in procrank not reported with swap enabled"
Rom Lemarchand [Thu, 18 Jun 2015 22:22:03 +0000 (22:22 +0000)]
Merge "Swap column in procrank not reported with swap enabled"

9 years agoMerge "Simpleperf: add branch stack feature in perf.data."
Yabin Cui [Thu, 18 Jun 2015 20:17:54 +0000 (20:17 +0000)]
Merge "Simpleperf: add branch stack feature in perf.data."

9 years agoSimpleperf: add branch stack feature in perf.data.
Yabin Cui [Thu, 18 Jun 2015 05:21:12 +0000 (22:21 -0700)]
Simpleperf: add branch stack feature in perf.data.

Also add the function to remove old perf.data.

Bug: 19483574

Change-Id: I605bb637674d4674f95503a160de8c530fe87812

9 years agoSwap column in procrank not reported with swap enabled
Yu Liu [Thu, 18 Jun 2015 17:46:29 +0000 (10:46 -0700)]
Swap column in procrank not reported with swap enabled

9 years agoMerge "Simpleperf: add signal handler for SIGCHLD, SIGINT, SIGTERM."
Yabin Cui [Thu, 18 Jun 2015 00:16:50 +0000 (00:16 +0000)]
Merge "Simpleperf: add signal handler for SIGCHLD, SIGINT, SIGTERM."

9 years agoSimpleperf: add signal handler for SIGCHLD, SIGINT, SIGTERM.
Yabin Cui [Mon, 15 Jun 2015 23:17:20 +0000 (16:17 -0700)]
Simpleperf: add signal handler for SIGCHLD, SIGINT, SIGTERM.

And rely on signal to decide when to stop in record/stat command.

Bug: 19483574
Change-Id: I564cb61e74ea81cffe4de5b050482b3250ed9a06

9 years agoMerge "Simpleperf: support callchain sampling in record command."
Yabin Cui [Tue, 16 Jun 2015 01:55:15 +0000 (01:55 +0000)]
Merge "Simpleperf: support callchain sampling in record command."

9 years agoSimpleperf: support callchain sampling in record command.
Yabin Cui [Mon, 15 Jun 2015 21:36:43 +0000 (14:36 -0700)]
Simpleperf: support callchain sampling in record command.

Bug: 19483574
Change-Id: Icd8ed7c316144fc51d54f196872061533bdeef2b

9 years agoMerge "Simpleperf: add option to print sample count in report command."
Yabin Cui [Fri, 12 Jun 2015 00:22:33 +0000 (00:22 +0000)]
Merge "Simpleperf: add option to print sample count in report command."

9 years agoMerge "Simpleperf: improve records parsing."
Yabin Cui [Thu, 11 Jun 2015 22:24:14 +0000 (22:24 +0000)]
Merge "Simpleperf: improve records parsing."

9 years agoMerge "Simpleperf: parse prefixed symbol of linker."
Yabin Cui [Thu, 11 Jun 2015 22:23:49 +0000 (22:23 +0000)]
Merge "Simpleperf: parse prefixed symbol of linker."

9 years agoSimpleperf: improve records parsing.
Yabin Cui [Thu, 11 Jun 2015 19:03:11 +0000 (12:03 -0700)]
Simpleperf: improve records parsing.

Sort records by time before handling.
Separate kernel space and user space sample records handling.

Bug: 19483574

Change-Id: I7722bb15678af18cbe883a2cf3fdac948bdd0c9f

9 years agoSimpleperf: parse prefixed symbol of linker.
Yabin Cui [Thu, 11 Jun 2015 21:57:21 +0000 (14:57 -0700)]
Simpleperf: parse prefixed symbol of linker.

Bug: 19483574
Change-Id: I2597d4a91fd9a6cfc5c15c8b637dc4ba5213ee56

9 years agoSimpleperf: add option to print sample count in report command.
Yabin Cui [Thu, 11 Jun 2015 21:02:10 +0000 (14:02 -0700)]
Simpleperf: add option to print sample count in report command.

Also make output items left-aligned.

Bug: 19483574
Change-Id: I1b40a68d219a3fdd0ff3bf25a67c1a355201810a

9 years agoMerge "Simpleperf: always use the latest comm."
Yabin Cui [Thu, 11 Jun 2015 21:05:31 +0000 (21:05 +0000)]
Merge "Simpleperf: always use the latest comm."

9 years agoMerge "Simpleperf: improve symbol parsing."
Yabin Cui [Thu, 11 Jun 2015 21:05:15 +0000 (21:05 +0000)]
Merge "Simpleperf: improve symbol parsing."

9 years agoSimpleperf: always use the latest comm.
Yabin Cui [Thu, 11 Jun 2015 20:49:59 +0000 (13:49 -0700)]
Simpleperf: always use the latest comm.

Bug: 19483574
Change-Id: Ie314bdce7a61aeda679ea9d1bbe5e05436a22edc

9 years agoSimpleperf: improve symbol parsing.
Yabin Cui [Thu, 11 Jun 2015 18:15:42 +0000 (11:15 -0700)]
Simpleperf: improve symbol parsing.

Support c++ symbol demangling, and add option to disable it.
Add option to set symfs dir, so it can report on host.
Add label symbols, add add symbol length fixing for it.
Add two hacks about arm elf symbol parsing.

Bug: 19483574

Change-Id: I300d6c007c8634db382d0a50627b9cde1502df89

9 years agoMerge "Record device screen state and system load (from /proc/loadavg)."
Than McIntosh [Thu, 11 Jun 2015 16:51:10 +0000 (16:51 +0000)]
Merge "Record device screen state and system load (from /proc/loadavg)."

9 years agoMerge "Simpleperf: fix a few bugs."
Yabin Cui [Thu, 11 Jun 2015 00:02:54 +0000 (00:02 +0000)]
Merge "Simpleperf: fix a few bugs."

9 years agoMerge "Simpleperf: support symbol parsing in report command."
Yabin Cui [Wed, 10 Jun 2015 23:58:53 +0000 (23:58 +0000)]
Merge "Simpleperf: support symbol parsing in report command."

9 years agoSimpleperf: fix a few bugs.
Yabin Cui [Tue, 9 Jun 2015 20:38:42 +0000 (13:38 -0700)]
Simpleperf: fix a few bugs.

Fix mistyped word.
Kill workload process when exiting.
Add checking of whether branch sampling is supported.

Bug: 19483574

Change-Id: Ibe48914cd92da1ee40bf67c0c47a6376a7291e8c

9 years agoRecord device screen state and system load (from /proc/loadavg).
Than McIntosh [Wed, 10 Jun 2015 15:47:01 +0000 (11:47 -0400)]
Record device screen state and system load (from /proc/loadavg).

Bug: http://b/19483574
Change-Id: Ic0306ca9d7707c7e20158014e2c0a18b929afbc4

9 years agoSimpleperf: support symbol parsing in report command.
Yabin Cui [Mon, 8 Jun 2015 17:38:10 +0000 (10:38 -0700)]
Simpleperf: support symbol parsing in report command.

Also fix the storage of ProcessEntry.

Bug: 19483574
Change-Id: I2182a804f6ecbd28e7aa3c1a38a6f19b86f583c9

9 years agoMerge "Simpleperf: remove overlapped user map in SampleTree."
Yabin Cui [Mon, 8 Jun 2015 21:17:42 +0000 (21:17 +0000)]
Merge "Simpleperf: remove overlapped user map in SampleTree."

9 years agoMerge "Simpleperf: adjust report width based on requirement."
Yabin Cui [Mon, 8 Jun 2015 19:32:06 +0000 (19:32 +0000)]
Merge "Simpleperf: adjust report width based on requirement."

9 years agoSimpleperf: remove overlapped user map in SampleTree.
Yabin Cui [Mon, 8 Jun 2015 19:27:19 +0000 (12:27 -0700)]
Simpleperf: remove overlapped user map in SampleTree.

If a new map overlapps with some old maps, the overlapped old
maps are not valid any more and should be removed.

Bug: 19483574
Change-Id: Ie5df5073d0c8c3727ab05163ef27537618bb416e

9 years agoSimpleperf: adjust report width based on requirement.
Yabin Cui [Mon, 8 Jun 2015 18:09:11 +0000 (11:09 -0700)]
Simpleperf: adjust report width based on requirement.

Bug: 19483574
Change-Id: I01fadd50090aea67cda5009c5f4c2d8d780fc616

9 years agoMerge "Add simpleperf report command."
Yabin Cui [Sat, 6 Jun 2015 02:58:49 +0000 (02:58 +0000)]
Merge "Add simpleperf report command."

9 years agoAdd simpleperf report command.
Yabin Cui [Thu, 21 May 2015 19:17:23 +0000 (12:17 -0700)]
Add simpleperf report command.

Only support report of process/file level. Symbol parsing is not included.

Bug: 19483574
Change-Id: I6d1c67000bd0e303623183912ff06fdeeb51c5e9

9 years agoMerge "Simpleperf: refactor command system."
Yabin Cui [Fri, 5 Jun 2015 01:41:28 +0000 (01:41 +0000)]
Merge "Simpleperf: refactor command system."

9 years agoSimpleperf: refactor command system.
Yabin Cui [Mon, 1 Jun 2015 18:21:37 +0000 (11:21 -0700)]
Simpleperf: refactor command system.

Register a callback function to create a new command instance instead of
registering a command instance. Then we can release resources in the
command destructors, and don't need xxxCommandImpl classes any more.

Bug: 19483574
Change-Id: Ibb54892ec0655fd43909347afd72bb08bc8a716c

9 years agoMerge "Simpleperf: support branch stack sampling in `simpleperf record`."
Yabin Cui [Thu, 4 Jun 2015 02:22:59 +0000 (02:22 +0000)]
Merge "Simpleperf: support branch stack sampling in `simpleperf record`."

9 years agoSimpleperf: support branch stack sampling in `simpleperf record`.
Yabin Cui [Wed, 3 Jun 2015 00:54:52 +0000 (17:54 -0700)]
Simpleperf: support branch stack sampling in `simpleperf record`.

This only adds support in simpleperf. Branch stack sampling still
lacks kernel support on arm devices.
Use perf_event.h of bionic in host build, because the perf_event.h
of platform glibc is too old.

Bug: 19483574
Change-Id: I9c7332c054e93e7433717dd293d3f366b1802e2d

9 years agoMerge "Simpleperf: add test about cpu hot-plug."
Yabin Cui [Fri, 29 May 2015 23:21:18 +0000 (23:21 +0000)]
Merge "Simpleperf: add test about cpu hot-plug."

9 years agoSimpleperf: add test about cpu hot-plug.
Yabin Cui [Fri, 29 May 2015 02:57:01 +0000 (19:57 -0700)]
Simpleperf: add test about cpu hot-plug.

On device like N7(flo), because of a kernel bug, if a cpu is hotplugged
while there are hardware events monitored not on that cpu, the kernel
arrives in an error state that no further hardware events can be monitored.
This test is used to detect the kernel bug.

Bug: 19863147
Change-Id: Ieed4fef174373b5fe62afacf8197e839685893df

9 years agoMerge "Perfprofd: various changes related to config parameters."
Than McIntosh [Thu, 28 May 2015 13:23:38 +0000 (13:23 +0000)]
Merge "Perfprofd: various changes related to config parameters."

9 years agoMerge "Set -fno-strict-aliasing here so we can get rid of it globally"
Elliott Hughes [Thu, 28 May 2015 05:28:07 +0000 (05:28 +0000)]
Merge "Set -fno-strict-aliasing here so we can get rid of it globally"

9 years agoPerfprofd: various changes related to config parameters.
Than McIntosh [Thu, 21 May 2015 18:44:34 +0000 (14:44 -0400)]
Perfprofd: various changes related to config parameters.

Details:
- turn "max unprocessed profiles" into a configurable parameter.
- use a longer default collection interval
- reread config file on very iteration through the main loop,
  so as to incorporate new parameters written by the upload service

Bug: http://b/19483574
Change-Id: I1ecacbdeccf26f09ddd8387aef0f2587483eb967

9 years agoMerge "Make mark reflect/accept required, it's been upstream for a while."
Lorenzo Colitti [Fri, 22 May 2015 05:43:59 +0000 (05:43 +0000)]
Merge "Make mark reflect/accept required, it's been upstream for a while."

9 years agoMake mark reflect/accept required, it's been upstream for a while.
Lorenzo Colitti [Fri, 22 May 2015 00:49:31 +0000 (09:49 +0900)]
Make mark reflect/accept required, it's been upstream for a while.

Change-Id: I4a329ef59987a6414293ececcf9ed87466c3cadd

9 years agoMerge "Disable certain kernel configuration options in net_test."
Lorenzo Colitti [Wed, 20 May 2015 07:06:40 +0000 (07:06 +0000)]
Merge "Disable certain kernel configuration options in net_test."

9 years agoDisable certain kernel configuration options in net_test.
Lorenzo Colitti [Wed, 20 May 2015 06:53:30 +0000 (15:53 +0900)]
Disable certain kernel configuration options in net_test.

- Support disabling as well as enabling configuration options
- Disable two options that break the flo kernel when compiling
  with a recent GCC.

Change-Id: Ic8824c0de997bb479f44d9ec35c1d1d2f6fc344b

9 years agoSet -fno-strict-aliasing here so we can get rid of it globally
Bernhard Rosenkränzer [Tue, 19 May 2015 21:49:59 +0000 (23:49 +0200)]
Set -fno-strict-aliasing here so we can get rid of it globally

Add -fno-strict-aliasing to the compiler flags where it is actually
needed so we can get rid of the flag globally -- without it, compilers
can optimize better.

Change-Id: Ia574120ee231503ce364ee377506115fd41f0a48
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
9 years agoMerge "Don't use TEMP_FAILURE_RETRY with close in system/extras."
Elliott Hughes [Sat, 16 May 2015 01:11:07 +0000 (01:11 +0000)]
Merge "Don't use TEMP_FAILURE_RETRY with close in system/extras."

9 years agoMerge "Support tracepoint event types in simpleperf."
Yabin Cui [Sat, 16 May 2015 00:42:23 +0000 (00:42 +0000)]
Merge "Support tracepoint event types in simpleperf."

9 years agoDon't use TEMP_FAILURE_RETRY with close in system/extras.
Elliott Hughes [Sat, 16 May 2015 00:20:47 +0000 (17:20 -0700)]
Don't use TEMP_FAILURE_RETRY with close in system/extras.

Bug: http://b/20501816
Change-Id: I32123049314a30a255fdf1a76a0e00bd35ac8801

9 years agoSupport tracepoint event types in simpleperf.
Yabin Cui [Thu, 30 Apr 2015 16:43:26 +0000 (09:43 -0700)]
Support tracepoint event types in simpleperf.

Also support options in `simpleperf list`, add test about tracepoint event types.

Bug: 19483574

Change-Id: I2d2c2f300fe5e2968696228899084410aa9f29a4

9 years agoMerge "Remove selinux/android.h from host tools"
Jeff Vander Stoep [Thu, 14 May 2015 15:27:13 +0000 (15:27 +0000)]
Merge "Remove selinux/android.h from host tools"

9 years agoMerge "Add sequence number to encoded perf.data file."
Elliott Hughes [Thu, 14 May 2015 00:24:22 +0000 (00:24 +0000)]
Merge "Add sequence number to encoded perf.data file."

9 years agoMerge "Dump build_id feature in `simpleperf record`."
Yabin Cui [Wed, 13 May 2015 23:33:54 +0000 (23:33 +0000)]
Merge "Dump build_id feature in `simpleperf record`."

9 years agoDump build_id feature in `simpleperf record`.
Yabin Cui [Wed, 6 May 2015 02:58:07 +0000 (19:58 -0700)]
Dump build_id feature in `simpleperf record`.

Bug: 19483574
Change-Id: Ie2acd8a157bca9ad3c01a2e4b37e139aba89670f

9 years agoRemove selinux/android.h from host tools
Jeff Vander Stoep [Wed, 13 May 2015 21:29:15 +0000 (14:29 -0700)]
Remove selinux/android.h from host tools

For tools built for both host and device, only include if not host.

Change-Id: Ie102bd7575d2cf5eef3f95e6063c2970d143dac8

9 years agoAdd sequence number to encoded perf.data file.
Dehao Chen [Thu, 7 May 2015 20:16:35 +0000 (13:16 -0700)]
Add sequence number to encoded perf.data file.

Bug: 19483574
Change-Id: I49e313f295ebc4ea3f994634676aa6d5f6798a82

9 years agoMerge "Fix unused result warnings in system/extras/verity."
Elliott Hughes [Wed, 13 May 2015 17:03:55 +0000 (17:03 +0000)]
Merge "Fix unused result warnings in system/extras/verity."

9 years agoFix unused result warnings in system/extras/verity.
Elliott Hughes [Wed, 13 May 2015 04:34:57 +0000 (21:34 -0700)]
Fix unused result warnings in system/extras/verity.

This lets us turn on _FORTIFY_SOURCE=2 for the host.

Bug: http://b/20558757
Change-Id: Iea7761874b0ccc68920c4d90889e83281155e52b