OSDN Git Service

android-x86/system-extras.git
8 years agoTool to replay memory allocation recordings.
Christopher Ferris [Fri, 11 Sep 2015 22:34:23 +0000 (15:34 -0700)]
Tool to replay memory allocation recordings.

Included with the tool are a set of app memory recordings that
can be used to judge the abilities of the native memory
allocator.

Verified the full flow by running valgrind on the host version on all
the current dumps and verifying that there are no leak, and no errors.

Change-Id: I756224991f04b61ba26c692a30a37aad0c9fb163

8 years agoMerge changes I7dc2edd4,I419b2ec0
Colin Cross [Mon, 14 Sep 2015 17:55:58 +0000 (17:55 +0000)]
Merge changes I7dc2edd4,I419b2ec0

* changes:
  iotop: add total read/write stats
  iotop: fix bytes per second, and add accumulation

8 years agoMerge "Support for additional profile annotations."
Than McIntosh [Wed, 9 Sep 2015 15:20:17 +0000 (15:20 +0000)]
Merge "Support for additional profile annotations."

8 years agoiotop: add total read/write stats
Colin Cross [Wed, 9 Sep 2015 00:09:22 +0000 (17:09 -0700)]
iotop: add total read/write stats

Provide total read, write, and read/write stats across all threads
or processes.

Change-Id: I7dc2edd45681b6a54f67347337c76deb1342dc95

8 years agoiotop: fix bytes per second, and add accumulation
Colin Cross [Tue, 8 Sep 2015 22:04:22 +0000 (15:04 -0700)]
iotop: fix bytes per second, and add accumulation

Bytes per second forgot to divide bytes by seconds.  Also add
the -a flag to print bytes instead of bytes per second.

Change-Id: I419b2ec0f702a291d299fe736d2d4ab290c03445

8 years agoMerge "boot_control_copy: A boot_control HAL implementation that works by copying."
David Zeuthen [Tue, 8 Sep 2015 19:09:04 +0000 (19:09 +0000)]
Merge "boot_control_copy: A boot_control HAL implementation that works by copying."

8 years agoSupport for additional profile annotations.
Than McIntosh [Thu, 3 Sep 2015 19:16:04 +0000 (15:16 -0400)]
Support for additional profile annotations.

Includes "device booting", "on charger", and cpu utilization.
Prototype version of "camera active" (not yet enabled). Also in
this patch, separate out the code to read perfprofd's config
file and place into a separate source file.

Change-Id: I04d65c406fd41f26a509983f08658991e8f1d422

8 years agoMerge "Annotate a few tests with the relevant kernel commits."
Lorenzo Colitti [Sun, 6 Sep 2015 11:11:58 +0000 (11:11 +0000)]
Merge "Annotate a few tests with the relevant kernel commits."

8 years agoMerge "Implement iotop"
Colin Cross [Sat, 5 Sep 2015 19:31:52 +0000 (19:31 +0000)]
Merge "Implement iotop"

8 years agoImplement iotop
Colin Cross [Fri, 4 Sep 2015 00:56:39 +0000 (17:56 -0700)]
Implement iotop

iotop provides per process statistics on IO rates and kernel delays.
Requires root, and a kernel compiled with CONFIG_TASKSTATS,
CONFIG_TASK_DELAY_ACCT, and CONFIG_TASK_IO_ACCOUNTING.

Change-Id: I111c55a1492e9ea33d8d7b3ab620080625b84346

8 years agoMerge "Expect a notification for NUD_REACHABLE."
Filipe Brandenburger [Fri, 4 Sep 2015 05:39:35 +0000 (05:39 +0000)]
Merge "Expect a notification for NUD_REACHABLE."

8 years agoExpect a notification for NUD_REACHABLE.
Filipe Brandenburger [Thu, 3 Sep 2015 22:11:13 +0000 (15:11 -0700)]
Expect a notification for NUD_REACHABLE.

This is necessary when running on kernel v3.13+ which includes commit
53385d2 "neigh: Netlink notification for administrative NUD state change"

BUG=chrome-os-partner:43435
TEST=Ran successfully on chromeos-3.18 kernels, android-3.10 unaffected.

Change-Id: I365ba5b8762776156a8a942975286e1c92734277

8 years agoboot_control_copy: A boot_control HAL implementation that works by copying.
David Zeuthen [Tue, 1 Sep 2015 18:58:36 +0000 (14:58 -0400)]
boot_control_copy: A boot_control HAL implementation that works by copying.

This boot_control HAL implementation emulates A/B by copying the
contents of the boot partition of the requested slot to the boot
partition. It hence works with bootloaders that are not yet aware of
A/B. This code is only intended to be used for development.

Change-Id: Ifcc1ff19530f9e6db1de882807a25c785e1959de

8 years agoAnnotate a few tests with the relevant kernel commits.
Lorenzo Colitti [Tue, 1 Sep 2015 04:42:56 +0000 (13:42 +0900)]
Annotate a few tests with the relevant kernel commits.

Also fix a couple of lint warnings, a few spurious newlines, and
a syntax error in currently-unused debug code.

Change-Id: I192eb730d48443ee050ca7702bc3735cd6ff6553

8 years agoMerge "Prepare for BoringSSL update."
Kenny Root [Wed, 2 Sep 2015 23:03:30 +0000 (23:03 +0000)]
Merge "Prepare for BoringSSL update."

8 years agoPrepare for BoringSSL update.
Adam Langley [Wed, 2 Sep 2015 22:45:12 +0000 (15:45 -0700)]
Prepare for BoringSSL update.

This change tweaks things as needed so that the code will compile
against both the BoringSSL that's currently in Android and a version
from upstream. The BORINGSSL_201509 define is temporary to allow the
switch to happen without breaking the build and a followup change will
remove it.

In this case, we backed off on removing |ERR_print_errors|, despite it
being a wart in the layering of the code.

Change-Id: I2f2f567cfc37fe2d5a69742302c5a92d289b814f

8 years agoMerge "Fix taskstats for libnl"
Colin Cross [Wed, 2 Sep 2015 17:30:31 +0000 (17:30 +0000)]
Merge "Fix taskstats for libnl"

8 years agoFix taskstats for libnl
Colin Cross [Wed, 2 Sep 2015 06:24:13 +0000 (23:24 -0700)]
Fix taskstats for libnl

taskstats doesn't work, probably caused by when I switched it from
using system/core/libnl_2 to external/libnl.  Fix a few bugs that
libnl_2 didn't care about:
 - callbacks must be registered with NL_CB_CUSTOM
 - nla_next is not guaranteed to work if !nla_ok, use nla_for_each_attr
   which does the right thing
 - instead of fixing get_family_id, use genl_ctrl_resolve
 - instead of manually setting pid, seq, and flags, use
   nl_send_auto_complete
 - since there is now only one command sent, get rid of send_command
   and take advantage of the known parameter type to use nla_put_u32
 - libnl does not set errno, return nl error codes and use nl_perror
   instead of perror

Change-Id: Ic631c8c1d9cc6ed288cbbeb6fe40c45ca5fe9143

8 years agoMerge "bootctl: Command-line wrapper for boot_control HAL."
David Zeuthen [Tue, 1 Sep 2015 20:42:47 +0000 (20:42 +0000)]
Merge "bootctl: Command-line wrapper for boot_control HAL."

8 years agoMerge "Add a millisecond-variant of MonitorSleep."
Lorenzo Colitti [Tue, 1 Sep 2015 10:50:27 +0000 (10:50 +0000)]
Merge "Add a millisecond-variant of MonitorSleep."

8 years agoAdd a millisecond-variant of MonitorSleep.
Lorenzo Colitti [Tue, 1 Sep 2015 04:42:31 +0000 (13:42 +0900)]
Add a millisecond-variant of MonitorSleep.

This is only used for debugging.

Change-Id: I1e00ff476f99b3a0d30658933f24b5a11ca0710a

8 years agoMerge "Remove HOST_OS checks, whitelist windows module"
Dan Willemsen [Tue, 1 Sep 2015 00:46:48 +0000 (00:46 +0000)]
Merge "Remove HOST_OS checks, whitelist windows module"

8 years agobootctl: Command-line wrapper for boot_control HAL.
David Zeuthen [Mon, 31 Aug 2015 21:55:33 +0000 (17:55 -0400)]
bootctl: Command-line wrapper for boot_control HAL.

Change-Id: Icd7bfee8fcc04ca113c2e6dc8bcefd614e804bb6

8 years agoRemove HOST_OS checks, whitelist windows module
Dan Willemsen [Tue, 18 Aug 2015 23:56:12 +0000 (16:56 -0700)]
Remove HOST_OS checks, whitelist windows module

This doesn't remove the HOST_OS checks later in the file, those can be
removed once LOCAL_MODULE_HOST_OS is enforced.

Bug: 23566667
Change-Id: I0032022b470bcc8d5546ed6f8dbd99e3d0cf3db5

8 years agoMerge "fix bug in mkf2fs tool calculation of f2fs filesystem length"
Mark Salyzyn [Mon, 24 Aug 2015 17:08:11 +0000 (17:08 +0000)]
Merge "fix bug in mkf2fs tool calculation of f2fs filesystem length"

8 years agofix bug in mkf2fs tool calculation of f2fs filesystem length
lei wang wang [Mon, 24 Aug 2015 07:47:36 +0000 (15:47 +0800)]
fix bug in mkf2fs tool calculation of f2fs filesystem length

8 years agoMerge "Simpleperf: use OneTimeFreeAllocator to allocate symbol names."
Yabin Cui [Fri, 21 Aug 2015 23:52:29 +0000 (23:52 +0000)]
Merge "Simpleperf: use OneTimeFreeAllocator to allocate symbol names."

8 years agoSimpleperf: use OneTimeFreeAllocator to allocate symbol names.
Yabin Cui [Fri, 21 Aug 2015 21:23:43 +0000 (14:23 -0700)]
Simpleperf: use OneTimeFreeAllocator to allocate symbol names.

simpleperf report takes a lot of time mallocing and freeing memory.
This change reduces the time to free memory.

Before this change:
$sudo simpleperf stat simpleperf report
Performance counter statistics:

    3,258,481,203  cpu-cycles                # 2.290946 GHz                      (80%)
    4,147,660,154  instructions              # 0.785619 cycles per instruction   (79%)

Total test time: 1.422330 seconds.

After this change:
$sudo simpleperf stat simpleperf report
Performance counter statistics:

   1,699,221,386  cpu-cycles                # 2.994754 GHz                      (79%)
   2,739,945,156  instructions              # 0.620166 cycles per instruction   (81%)

Total test time: 0.567399 seconds.

This change also fix a bug in record_file_test.cpp.

Bug: 23387541

Change-Id: I59fc86ca54a6c09bd08eec8ada931ccff88d3102

8 years agoMerge "Simpleperf: refactor dso."
Yabin Cui [Fri, 21 Aug 2015 20:25:39 +0000 (20:25 +0000)]
Merge "Simpleperf: refactor dso."

8 years agoSimpleperf: refactor dso.
Yabin Cui [Thu, 20 Aug 2015 22:04:39 +0000 (15:04 -0700)]
Simpleperf: refactor dso.

Having DsoEntry and DsoFactory confuses me which part code should belong to.
This change merges the two into class Dso and makes things clear.
It is also a preparation for performance optimization in Dso.

Bug: 23387541
Change-Id: I41e773406a7f1582a11a18859df252ce8ea3acfa

8 years agoMerge "bundle init.rc contents with its service"
Tom Cherry [Fri, 21 Aug 2015 17:42:32 +0000 (17:42 +0000)]
Merge "bundle init.rc contents with its service"

8 years agoMerge "Simpleperf: support multiple event types in record command."
Yabin Cui [Fri, 21 Aug 2015 03:20:08 +0000 (03:20 +0000)]
Merge "Simpleperf: support multiple event types in record command."

8 years agoSimpleperf: support multiple event types in record command.
Yabin Cui [Wed, 19 Aug 2015 22:46:51 +0000 (15:46 -0700)]
Simpleperf: support multiple event types in record command.

Change-Id: I0aa0e8c9491370b5e4fafdaf8cdc5613c26c78f5

8 years agoMerge "Simpleperf: improve output of stat command."
Yabin Cui [Thu, 20 Aug 2015 02:03:29 +0000 (02:03 +0000)]
Merge "Simpleperf: improve output of stat command."

8 years agobundle init.rc contents with its service
Tom Cherry [Fri, 14 Aug 2015 20:06:21 +0000 (13:06 -0700)]
bundle init.rc contents with its service

Bug: 23186545
Change-Id: I29e6f1e6e404838c7b57a736012a28d4d60f951a

8 years agoSimpleperf: improve output of stat command.
Yabin Cui [Wed, 19 Aug 2015 22:01:12 +0000 (15:01 -0700)]
Simpleperf: improve output of stat command.

Before this change:
$sudo simpleperf record -a sleep 1
Performance counter statistics:

                    5994649915(scaled)  cpu-cycles
                    8785461570(scaled)  stalled-cycles-frontend
                    6089237592(scaled)  instructions
                    1086987265(scaled)  branch-instructions
                      11019426(scaled)  branch-misses
                   40306210522         task-clock
                         21955         context-switches
                         16659         page-faults

Total test time: 1.007973 seconds.

After this change:
$sudo simpleperf record -a sleep 1
Performance counter statistics:

    11,768,763,985  cpu-cycles                # 11.675808 Ghz                     (83%)
    16,142,943,081  stalled-cycles-frontend   # 16.015 G/sec                      (67%)
    17,286,201,730  instructions              # 0.680818 cycles per instruction   (83%)
     3,141,529,369  branch-instructions       # 3.117 G/sec                       (84%)
        18,168,963  branch-misses             # 0.578348% miss rate               (83%)
  40222.432118(ms)  task-clock                # 3990.473223% cpu usage            (100%)
            19,240  context-switches          # 19.088 K/sec                      (100%)
             9,302  page-faults               # 9.229 K/sec                       (100%)

Total test time: 1.007961 seconds.

Change-Id: I5590699957650e246b14b3d2b405108483631908

8 years agoMerge "Simpleperf: add raw data in sample records for tracepoint events."
Yabin Cui [Wed, 19 Aug 2015 22:10:22 +0000 (22:10 +0000)]
Merge "Simpleperf: add raw data in sample records for tracepoint events."

8 years agoMerge "Use the new version of android_fork_execvp_ext()"
Yusuke Sato [Wed, 19 Aug 2015 20:23:43 +0000 (20:23 +0000)]
Merge "Use the new version of android_fork_execvp_ext()"

8 years agoSimpleperf: add raw data in sample records for tracepoint events.
Yabin Cui [Wed, 19 Aug 2015 17:12:51 +0000 (10:12 -0700)]
Simpleperf: add raw data in sample records for tracepoint events.

tracepoint events store tracing info in raw data in sample records.
And we need to enable it in sample_type.

Change-Id: Icd866059f4703b56724845d7526ae58099e83113

8 years agoUse the new version of android_fork_execvp_ext()
Yusuke Sato [Tue, 18 Aug 2015 19:10:45 +0000 (12:10 -0700)]
Use the new version of android_fork_execvp_ext()

This CL depends on I818f5cf61045286c8d64a91b6d50f05740329be1.

Bug: 21725996
Change-Id: I2d26cf79989de717b7695757d0297a16dedbebbd

8 years agoMerge "Simpleperf: demangle symbols only when necessary."
Yabin Cui [Wed, 19 Aug 2015 02:47:33 +0000 (02:47 +0000)]
Merge "Simpleperf: demangle symbols only when necessary."

8 years agoSimpleperf: demangle symbols only when necessary.
Yabin Cui [Tue, 18 Aug 2015 23:32:18 +0000 (16:32 -0700)]
Simpleperf: demangle symbols only when necessary.

Before this change:
$sudo simpleperf record -a sleep 1
$sudo simpleperf stat simpleperf report
Total test time: 4.088779 seconds.

After this change:
$sudo simpleperf record -a sleep 1
$sudo simpleperf stat simpleperf report
Total test time: 1.226267 seconds.

Change-Id: Ifc811f432ac69f770eeb5814e4983f6f19dbc909

8 years agoMerge "Add memcpy perf test + graphing script."
Riley Andrews [Tue, 18 Aug 2015 19:17:30 +0000 (19:17 +0000)]
Merge "Add memcpy perf test + graphing script."

8 years agoAdd memcpy perf test + graphing script.
Riley Andrews [Mon, 17 Aug 2015 23:42:26 +0000 (16:42 -0700)]
Add memcpy perf test + graphing script.

Change-Id: Iaaac90f4d91dbe6023b64af6e8924f6b9f61e58b

8 years agoMerge "Add missing include."
Dan Albert [Wed, 12 Aug 2015 01:49:40 +0000 (01:49 +0000)]
Merge "Add missing include."

8 years agoAdd missing include.
Dan Albert [Wed, 12 Aug 2015 01:36:20 +0000 (18:36 -0700)]
Add missing include.

Used to be transitively included by libc++.

Change-Id: I07497ccc9bbcf3370b065876d91aed760c5f6118

8 years agoMerge "Add missing includes for pid_t."
Dan Albert [Tue, 11 Aug 2015 23:11:03 +0000 (23:11 +0000)]
Merge "Add missing includes for pid_t."

8 years agoAdd missing includes for pid_t.
Dan Albert [Tue, 11 Aug 2015 22:59:43 +0000 (15:59 -0700)]
Add missing includes for pid_t.

Was being transitively included through libc++, but the libc++ update
fixes some of the leaky headers (used to always include unistd.h!).

Change-Id: I40caf74695bb75901bda24665b8d83a6914de9c4

8 years agoMerge "Add <endian.h> back and stop building one tool for the Mac."
Elliott Hughes [Mon, 10 Aug 2015 22:53:27 +0000 (22:53 +0000)]
Merge "Add <endian.h> back and stop building one tool for the Mac."

8 years agoAdd <endian.h> back and stop building one tool for the Mac.
Elliott Hughes [Mon, 10 Aug 2015 22:49:04 +0000 (15:49 -0700)]
Add <endian.h> back and stop building one tool for the Mac.

We can't stop building all this stuff until we clean up the build
system to not require the OTA tools on Mac OS. This code does actually
use htobe64 and so should have included <endian.h>, so put that back.

Change-Id: I2807b4f237d3e26d470652f373f2de85864691c4

8 years agoMerge "Another go at fixing the Mac build."
Elliott Hughes [Mon, 10 Aug 2015 21:52:31 +0000 (21:52 +0000)]
Merge "Another go at fixing the Mac build."

8 years agoAnother go at fixing the Mac build.
Elliott Hughes [Mon, 10 Aug 2015 21:51:20 +0000 (14:51 -0700)]
Another go at fixing the Mac build.

I don't want to have to work out how to disable building OTAs on Macs --
though we should -- but it actually looks like this file didn't need the
problematic header file anyway.

Change-Id: I9d7eff8e72192958b3e880ae48fef194820ce148

8 years agoMerge "Fix Mac build."
Elliott Hughes [Mon, 10 Aug 2015 17:54:35 +0000 (17:54 +0000)]
Merge "Fix Mac build."

8 years agoFix Mac build.
Elliott Hughes [Mon, 10 Aug 2015 17:43:57 +0000 (10:43 -0700)]
Fix Mac build.

Change-Id: I4d389d7050970d8fd460a4238e8c2963211780b4

8 years agoMerge "Simpleperf: add filters to report command."
Yabin Cui [Fri, 7 Aug 2015 23:15:42 +0000 (23:15 +0000)]
Merge "Simpleperf: add filters to report command."

8 years agoSimpleperf: add filters to report command.
Yabin Cui [Thu, 6 Aug 2015 18:25:09 +0000 (11:25 -0700)]
Simpleperf: add filters to report command.

Change-Id: I0e6cec1ce638fd4c832fe398a08168138e22ee7e

8 years agoMerge "Simpleperf: support caller callgraph."
Yabin Cui [Fri, 7 Aug 2015 16:12:18 +0000 (16:12 +0000)]
Merge "Simpleperf: support caller callgraph."

8 years agoMerge "Simpleperf: don't check for empty build id."
Yabin Cui [Thu, 6 Aug 2015 17:22:21 +0000 (17:22 +0000)]
Merge "Simpleperf: don't check for empty build id."

8 years agoSimpleperf: don't check for empty build id.
Yabin Cui [Tue, 4 Aug 2015 21:48:39 +0000 (14:48 -0700)]
Simpleperf: don't check for empty build id.

Change-Id: I670ba4fa32aa764e49022abacd83ef1fdcfa7d0d

8 years agoSimpleperf: support caller callgraph.
Yabin Cui [Wed, 5 Aug 2015 00:33:47 +0000 (17:33 -0700)]
Simpleperf: support caller callgraph.

Bug: 22229391
Change-Id: I95af71d50811feb4515a5c4ec7102788a00aad31

8 years agoMerge "Simpleperf: fix the process of parsing records."
Yabin Cui [Mon, 3 Aug 2015 20:46:43 +0000 (20:46 +0000)]
Merge "Simpleperf: fix the process of parsing records."

8 years agoMerge "Simpleperf: correct the event type name printed in stat command."
Yabin Cui [Mon, 3 Aug 2015 18:07:12 +0000 (18:07 +0000)]
Merge "Simpleperf: correct the event type name printed in stat command."

8 years agoSimpleperf: fix the process of parsing records.
Yabin Cui [Mon, 3 Aug 2015 18:01:22 +0000 (11:01 -0700)]
Simpleperf: fix the process of parsing records.

It is not correct to parse all the mmap records first, then parse
all the sample records. Instead, records should be parsed one by one.
This change also fix the bug of not writing kernel build id in
record command, which is introduced previously.

Change-Id: I7e6d3d1c74c134e4b7af97c184b6a71c3379a59a

8 years agoSimpleperf: correct the event type name printed in stat command.
Yabin Cui [Sat, 1 Aug 2015 01:40:09 +0000 (18:40 -0700)]
Simpleperf: correct the event type name printed in stat command.

Bug: 22884977
Change-Id: I3c4f5c8dc02d5b17f5942e4e98476d1c4f3fbcad

8 years agoMerge "Use __ANDROID__ instead of HAVE_ANDROID_OS."
Elliott Hughes [Fri, 31 Jul 2015 17:54:17 +0000 (17:54 +0000)]
Merge "Use __ANDROID__ instead of HAVE_ANDROID_OS."

8 years agoUse __ANDROID__ instead of HAVE_ANDROID_OS.
Elliott Hughes [Fri, 31 Jul 2015 15:49:29 +0000 (08:49 -0700)]
Use __ANDROID__ instead of HAVE_ANDROID_OS.

Change-Id: Iee986b6c91b5877155609297c2bd17301ff91d5c

8 years agoMerge "Tests for candidate source address restriction"
Erik Kline [Thu, 30 Jul 2015 04:04:53 +0000 (04:04 +0000)]
Merge "Tests for candidate source address restriction"

8 years agoTests for candidate source address restriction
Erik Kline [Thu, 2 Jul 2015 07:08:15 +0000 (16:08 +0900)]
Tests for candidate source address restriction

Bug: 20733156
Change-Id: I4118cc4c4dc8e9730bc95e681c14c29240f1af77

8 years agoMerge "Add switches for compressor"
Simon Wilson [Wed, 29 Jul 2015 21:36:06 +0000 (21:36 +0000)]
Merge "Add switches for compressor"

9 years agoMerge "Fix lint errors."
Lorenzo Colitti [Tue, 28 Jul 2015 14:31:48 +0000 (14:31 +0000)]
Merge "Fix lint errors."

9 years agoMerge "Simpleperf: work around unexpected (pid, tid) pair."
Yabin Cui [Fri, 24 Jul 2015 18:15:52 +0000 (18:15 +0000)]
Merge "Simpleperf: work around unexpected (pid, tid) pair."

9 years agoSimpleperf: work around unexpected (pid, tid) pair.
Yabin Cui [Fri, 24 Jul 2015 18:00:44 +0000 (11:00 -0700)]
Simpleperf: work around unexpected (pid, tid) pair.

Bug: 22185053
Change-Id: Ibd224ce9918eac9fa5a71ec00835b3af2b03e578

9 years agoMerge "Simpleperf: use ThreadTree when getting hit files in record command."
Yabin Cui [Fri, 24 Jul 2015 17:50:33 +0000 (17:50 +0000)]
Merge "Simpleperf: use ThreadTree when getting hit files in record command."

9 years agoSimpleperf: use ThreadTree when getting hit files in record command.
Yabin Cui [Fri, 24 Jul 2015 04:39:57 +0000 (21:39 -0700)]
Simpleperf: use ThreadTree when getting hit files in record command.

The new method is more accurate and has lower time complexity.

Bug: 22229391
Change-Id: I8b3016798b8a0e20335adeb7ec5dda0068044142

9 years agoMerge "Simpleperf: separate ThreadTree from SampleTree."
Yabin Cui [Fri, 24 Jul 2015 00:45:54 +0000 (00:45 +0000)]
Merge "Simpleperf: separate ThreadTree from SampleTree."

9 years agoSimpleperf: separate ThreadTree from SampleTree.
Yabin Cui [Thu, 23 Jul 2015 03:30:43 +0000 (20:30 -0700)]
Simpleperf: separate ThreadTree from SampleTree.

It is a preparation for unwinding in record command.

Bug: 22229391
Change-Id: I2f5c6df3f7332d4c98b61c7f9f922456b5bbeaaa

9 years agoMerge "Simpleperf: load symbols from dso file only when necessary."
Yabin Cui [Tue, 21 Jul 2015 19:18:57 +0000 (19:18 +0000)]
Merge "Simpleperf: load symbols from dso file only when necessary."

9 years agoSimpleperf: load symbols from dso file only when necessary.
Yabin Cui [Tue, 21 Jul 2015 18:24:48 +0000 (11:24 -0700)]
Simpleperf: load symbols from dso file only when necessary.

Bug: 22630113
Change-Id: I12bb24ec02ba3ddb94bcb2a26ae2d6e7b445ed4d

9 years agoMerge "Simpleperf: dump thread comm/mmaps for selected threads."
Yabin Cui [Thu, 16 Jul 2015 20:26:35 +0000 (20:26 +0000)]
Merge "Simpleperf: dump thread comm/mmaps for selected threads."

9 years agoSimpleperf: dump thread comm/mmaps for selected threads.
Yabin Cui [Thu, 16 Jul 2015 17:20:55 +0000 (10:20 -0700)]
Simpleperf: dump thread comm/mmaps for selected threads.

Bug: 22511834
Change-Id: I2775b3a4cd393d75d5c6ebcd8a46e366ceb4ff76

9 years agoMerge "Simpleperf: fix build on mac."
Yabin Cui [Tue, 14 Jul 2015 04:43:54 +0000 (04:43 +0000)]
Merge "Simpleperf: fix build on mac."

9 years agoSimpleperf: fix build on mac.
Yabin Cui [Tue, 14 Jul 2015 04:41:05 +0000 (21:41 -0700)]
Simpleperf: fix build on mac.

Change-Id: I042fa65347c38879ff9b9f1027b8ae39ec26da62

9 years agoMerge "Simpleperf: support --vmlinux option in report command."
Yabin Cui [Tue, 14 Jul 2015 02:48:30 +0000 (02:48 +0000)]
Merge "Simpleperf: support --vmlinux option in report command."

9 years agoMerge "Simpleperf: fix build error on mips."
Yabin Cui [Tue, 14 Jul 2015 02:47:40 +0000 (02:47 +0000)]
Merge "Simpleperf: fix build error on mips."

9 years agoSimpleperf: fix build error on mips.
Yabin Cui [Tue, 14 Jul 2015 02:44:24 +0000 (19:44 -0700)]
Simpleperf: fix build error on mips.

Bug: 22229391
Change-Id: I3368da136277355e05045ee1203bb9a47036e94a

9 years agoSimpleperf: support --vmlinux option in report command.
Yabin Cui [Mon, 13 Jul 2015 23:23:13 +0000 (16:23 -0700)]
Simpleperf: support --vmlinux option in report command.

Bug: 22179177
Change-Id: I633da55c6bfcb106d69de9bda6b44bce24ffca8e

9 years agoMerge "Simpleperf: Support dwarf callgraph recording."
Yabin Cui [Tue, 14 Jul 2015 02:08:23 +0000 (02:08 +0000)]
Merge "Simpleperf: Support dwarf callgraph recording."

9 years agoMerge "ext4_utils: Wrap wipe.h to be C++ compatible."
Tao Bao [Tue, 14 Jul 2015 00:56:38 +0000 (00:56 +0000)]
Merge "ext4_utils: Wrap wipe.h to be C++ compatible."

9 years agoext4_utils: Wrap wipe.h to be C++ compatible.
Tao Bao [Mon, 13 Jul 2015 23:54:02 +0000 (16:54 -0700)]
ext4_utils: Wrap wipe.h to be C++ compatible.

Change-Id: Ieae03dd1afb9ef2028e8f4adaddbf8e9e09142f8

9 years agoSimpleperf: Support dwarf callgraph recording.
Yabin Cui [Mon, 13 Jul 2015 19:23:54 +0000 (12:23 -0700)]
Simpleperf: Support dwarf callgraph recording.

1. add OS_RELEASE and ARCH feature in perf.data. ARCH feature is used when parsing
   recorded user registers.
2. support `--call-graph dwarf` option in record command.

Bug: 22229391
Change-Id: I56dbdd101338658ce6a9b59aa8be90e712e007f5

9 years agoMerge "Simpleperf: remove unnecessary std::move."
Yabin Cui [Mon, 13 Jul 2015 21:01:34 +0000 (21:01 +0000)]
Merge "Simpleperf: remove unnecessary std::move."

9 years agoSimpleperf: remove unnecessary std::move.
Yabin Cui [Mon, 13 Jul 2015 19:44:21 +0000 (12:44 -0700)]
Simpleperf: remove unnecessary std::move.

Bug: 19483574
Change-Id: I2b49ded640c799058b448ddce7f92b5cecd86de3

9 years agoMerge "Simpleperf: Fix unused parameter"
Andreas Gampe [Sat, 11 Jul 2015 06:43:10 +0000 (06:43 +0000)]
Merge "Simpleperf: Fix unused parameter"

9 years agoSimpleperf: Fix unused parameter
Andreas Gampe [Sat, 11 Jul 2015 06:41:07 +0000 (23:41 -0700)]
Simpleperf: Fix unused parameter

Fix mac build. Follow-up to 638c558339b7f1ae0ed95f64bcf7dbc5b238ed83.

Change-Id: I3065f2ac81db9992f9d4dba2d863402e0a600ee7

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 agoAdd switches for compressor
Simon Wilson [Wed, 17 Jun 2015 19:36:53 +0000 (12:36 -0700)]
Add switches for compressor

Change-Id: I297321db3996d07e9eba3edc0b2837c8d221ab1a
(cherry picked from commit b4cf7b309e8d8dc2ebbc6501ef205091322ab659)

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."