OSDN Git Service
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
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
Yabin Cui [Thu, 25 Jun 2015 03:09:53 +0000 (03:09 +0000)]
Merge "Simpleperf: add option to report branch stack information."
Mohamad Ayyash [Wed, 24 Jun 2015 22:00:56 +0000 (22:00 +0000)]
Merge "mksquashfsimage.sh: Add forward slash for SRC_DIR"
Mohamad Ayyash [Wed, 24 Jun 2015 22:00:50 +0000 (22:00 +0000)]
Merge "mksquashfsimge.sh: Support creating a sparse image"
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>
Yabin Cui [Wed, 24 Jun 2015 20:28:37 +0000 (20:28 +0000)]
Merge "Simpleperf: 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
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>
Erik Kline [Wed, 24 Jun 2015 07:26:20 +0000 (07:26 +0000)]
Merge "Switch 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
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
Yabin Cui [Mon, 22 Jun 2015 23:02:20 +0000 (23:02 +0000)]
Merge "Simpleperf: support child inherit option."
Yabin Cui [Mon, 22 Jun 2015 21:42:52 +0000 (21:42 +0000)]
Merge "Simpleperf: better support for per thread comm."
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
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
Yabin Cui [Fri, 19 Jun 2015 23:36:25 +0000 (23:36 +0000)]
Merge "Simpleperf: 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
Yabin Cui [Fri, 19 Jun 2015 00:56:22 +0000 (00:56 +0000)]
Merge "Simpleperf: 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
Rom Lemarchand [Thu, 18 Jun 2015 22:22:03 +0000 (22:22 +0000)]
Merge "Swap column in procrank not reported with swap enabled"
Yabin Cui [Thu, 18 Jun 2015 20:17:54 +0000 (20:17 +0000)]
Merge "Simpleperf: 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
Yu Liu [Thu, 18 Jun 2015 17:46:29 +0000 (10:46 -0700)]
Swap column in procrank not reported with swap enabled
Yabin Cui [Thu, 18 Jun 2015 00:16:50 +0000 (00:16 +0000)]
Merge "Simpleperf: 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
Yabin Cui [Tue, 16 Jun 2015 01:55:15 +0000 (01:55 +0000)]
Merge "Simpleperf: 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
Yabin Cui [Fri, 12 Jun 2015 00:22:33 +0000 (00:22 +0000)]
Merge "Simpleperf: add option to print sample count in report command."
Yabin Cui [Thu, 11 Jun 2015 22:24:14 +0000 (22:24 +0000)]
Merge "Simpleperf: improve records parsing."
Yabin Cui [Thu, 11 Jun 2015 22:23:49 +0000 (22:23 +0000)]
Merge "Simpleperf: parse prefixed symbol of linker."
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
Yabin Cui [Thu, 11 Jun 2015 21:57:21 +0000 (14:57 -0700)]
Simpleperf: parse prefixed symbol of linker.
Bug:
19483574
Change-Id: I2597d4a91fd9a6cfc5c15c8b637dc4ba5213ee56
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
Yabin Cui [Thu, 11 Jun 2015 21:05:31 +0000 (21:05 +0000)]
Merge "Simpleperf: always use the latest comm."
Yabin Cui [Thu, 11 Jun 2015 21:05:15 +0000 (21:05 +0000)]
Merge "Simpleperf: improve symbol parsing."
Yabin Cui [Thu, 11 Jun 2015 20:49:59 +0000 (13:49 -0700)]
Simpleperf: always use the latest comm.
Bug:
19483574
Change-Id: Ie314bdce7a61aeda679ea9d1bbe5e05436a22edc
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
Than McIntosh [Thu, 11 Jun 2015 16:51:10 +0000 (16:51 +0000)]
Merge "Record device screen state and system load (from /proc/loadavg)."
Yabin Cui [Thu, 11 Jun 2015 00:02:54 +0000 (00:02 +0000)]
Merge "Simpleperf: fix a few bugs."
Yabin Cui [Wed, 10 Jun 2015 23:58:53 +0000 (23:58 +0000)]
Merge "Simpleperf: support symbol parsing in report command."
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
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
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
Yabin Cui [Mon, 8 Jun 2015 21:17:42 +0000 (21:17 +0000)]
Merge "Simpleperf: remove overlapped user map in SampleTree."
Yabin Cui [Mon, 8 Jun 2015 19:32:06 +0000 (19:32 +0000)]
Merge "Simpleperf: adjust report width based on requirement."
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
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
Yabin Cui [Sat, 6 Jun 2015 02:58:49 +0000 (02:58 +0000)]
Merge "Add 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
Yabin Cui [Fri, 5 Jun 2015 01:41:28 +0000 (01:41 +0000)]
Merge "Simpleperf: 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
Yabin Cui [Thu, 4 Jun 2015 02:22:59 +0000 (02:22 +0000)]
Merge "Simpleperf: 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
Yabin Cui [Fri, 29 May 2015 23:21:18 +0000 (23:21 +0000)]
Merge "Simpleperf: 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
Than McIntosh [Thu, 28 May 2015 13:23:38 +0000 (13:23 +0000)]
Merge "Perfprofd: various changes related to config parameters."
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"
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
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."
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
Lorenzo Colitti [Wed, 20 May 2015 07:06:40 +0000 (07:06 +0000)]
Merge "Disable 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
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>
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."
Yabin Cui [Sat, 16 May 2015 00:42:23 +0000 (00:42 +0000)]
Merge "Support tracepoint event types in simpleperf."
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
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
Jeff Vander Stoep [Thu, 14 May 2015 15:27:13 +0000 (15:27 +0000)]
Merge "Remove selinux/android.h from host tools"
Elliott Hughes [Thu, 14 May 2015 00:24:22 +0000 (00:24 +0000)]
Merge "Add sequence number to encoded perf.data file."
Yabin Cui [Wed, 13 May 2015 23:33:54 +0000 (23:33 +0000)]
Merge "Dump 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
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
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
Elliott Hughes [Wed, 13 May 2015 17:03:55 +0000 (17:03 +0000)]
Merge "Fix 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
Lorenzo Colitti [Wed, 13 May 2015 08:46:08 +0000 (08:46 +0000)]
Merge "Improve netlink message debugging."
Lorenzo Colitti [Wed, 13 May 2015 01:57:43 +0000 (10:57 +0900)]
Improve netlink message debugging.
1. Add a method to convert a message to a string. The code didn't
have anything that did just that; all string conversions were
part of the debugging code. This method can be used by
external callers that just want to parse raw messages obtained
by other means (e.g., strace).
2. Teach the code about FRA_FWMASK.
3. Fix a bug in the parsing error handling due to attempting to
catch the wrong exception.
Also fix a couple of lint errors.
Change-Id: I1915ab984934810ddbef7040c78d58e8657bb028
Kenny Root [Tue, 12 May 2015 22:41:13 +0000 (22:41 +0000)]
Merge "system/extra: include more of what you use."
Paul Crowley [Tue, 12 May 2015 12:56:49 +0000 (12:56 +0000)]
Merge "Don't apply default encryption to /data/user, it should get per-user encryption."
Adam Langley [Mon, 11 May 2015 19:17:25 +0000 (12:17 -0700)]
system/extra: include more of what you use.
This is a reland of
aa24bc89b78a5981df7618bdef78b7b49ffad14d which was
reverted in
291e20dab39783c7074191ff2d2de9b86465c10f because it broke
the git_master-gpl builder.
This version of the change uses crypto.h as a proxy for mem.h because
it'll work in both BoringSSL and OpenSSL.
Change-Id: I9e4c9e4d459c2e31f74180b3a3b2ab139ab76e80
Paul Crowley [Wed, 6 May 2015 14:28:35 +0000 (15:28 +0100)]
Don't apply default encryption to /data/user, it should get per-user
encryption.
Bug:
19704432
Change-Id: I4eb8b6a966c3923f5222dfc068d7a3aef2b23adb
Kenny Root [Sat, 9 May 2015 23:56:31 +0000 (23:56 +0000)]
Merge "Revert "system/extra: include more of what you use.""
Kenny Root [Sat, 9 May 2015 23:56:12 +0000 (23:56 +0000)]
Revert "system/extra: include more of what you use."
This reverts commit
aa24bc89b78a5981df7618bdef78b7b49ffad14d.
Change-Id: If55eb0effc582f1cfa329bab8d7504ad4964f67e
Kenny Root [Sat, 9 May 2015 14:55:03 +0000 (14:55 +0000)]
Merge "system/extra: include more of what you use."
Lorenzo Colitti [Fri, 8 May 2015 08:45:36 +0000 (08:45 +0000)]
Merge "Support dumping neighbour cache entries."
Lorenzo Colitti [Fri, 8 May 2015 07:41:57 +0000 (16:41 +0900)]
Support dumping neighbour cache entries.
Change-Id: I69675c9d8ee4a8c6e2daf4bbe60d9858855019ea
Elliott Hughes [Thu, 7 May 2015 04:14:34 +0000 (04:14 +0000)]
Merge "Separate the destination directory to /data/misc/perfprofd. Remove reading of aux-config."
Dehao Chen [Tue, 5 May 2015 22:03:48 +0000 (15:03 -0700)]
Separate the destination directory to /data/misc/perfprofd.
Remove reading of aux-config.
Bug:
19483574
Change-Id: Ie99d522d37e8688febc7f324502ca68150dd235c
Adam Langley [Tue, 28 Apr 2015 20:20:26 +0000 (13:20 -0700)]
system/extra: include more of what you use.
Historically, the OpenSSL/BoringSSL headers have been quite sloppy:
including many system headers. Over time, code has grown to depend on
this.
BoringSSL has cleaned things up a bit, but that requires code like this
to include what it uses.
Change-Id: Id456a598151d4c58a73cf05cef46f3db296e1f39
Yabin Cui [Tue, 5 May 2015 22:21:11 +0000 (22:21 +0000)]
Merge "Dump kernel/modules/thread mmap information in `simpleperf record`."
Yabin Cui [Tue, 5 May 2015 03:27:57 +0000 (20:27 -0700)]
Dump kernel/modules/thread mmap information in `simpleperf record`.
Bug:
19483574
Change-Id: Ia65cb12804a6dffa440501736a6229b2f7248958
Paul Lawrence [Tue, 5 May 2015 20:18:23 +0000 (20:18 +0000)]
Merge changes I15dc0de9,Icdb3d9af
* changes:
Use default key permissions for ext4enc
New faster file open kernel
Paul Lawrence [Tue, 5 May 2015 18:06:43 +0000 (11:06 -0700)]
Use default key permissions for ext4enc
As per discussion default permissions are the correct ones.
Note that since we use logon keys, they cannot be read outside
the kernel.
Note also that we limit who can read/write keys in selinux policy.
Bug:
18151196
Change-Id: I15dc0de92643ae1472b0cde79c464fb3e1a1d453
Paul Lawrence [Fri, 1 May 2015 12:24:04 +0000 (05:24 -0700)]
New faster file open kernel
Bug:
18151196
Change-Id: Icdb3d9afa1db125102d01cd06f45dbc99ca78021
Elliott Hughes [Tue, 5 May 2015 00:56:09 +0000 (00:56 +0000)]
Merge "Change the encoded file's mode to be readable by GMS core."
Dehao Chen [Mon, 4 May 2015 23:08:00 +0000 (16:08 -0700)]
Change the encoded file's mode to be readable by GMS core.
Bug:
19483574
Change-Id: Iee89138520a657df9a02bc98217c311d8c5a9262
Yabin Cui [Mon, 4 May 2015 22:47:15 +0000 (22:47 +0000)]
Merge "Implement simpleperf record/dumprecord subcommands."
Yabin Cui [Tue, 28 Apr 2015 22:54:13 +0000 (15:54 -0700)]
Implement simpleperf record/dumprecord subcommands.
Bug:
19483574
Change-Id: Id879713a75c2d3a6289d8847b95ee0bb4a2cc8a0
Colin Cross [Sun, 3 May 2015 21:17:40 +0000 (21:17 +0000)]
Merge "Fix asan error when copying super block to backup super blocks"