OSDN Git Service
Lorenzo Colitti [Wed, 28 Oct 2015 07:56:12 +0000 (16:56 +0900)]
Move packet definitions to their own file.
Change-Id: I68c57311915e2a8dbdb6842dfb87367485fcf819
Lorenzo Colitti [Tue, 27 Oct 2015 08:37:00 +0000 (17:37 +0900)]
Test SIOCKILLADDR on non-empty addresses too.
Change-Id: Ifddc4e16c4cd59f96048dd517186d0a1f440f02c
Lorenzo Colitti [Fri, 16 Oct 2015 04:52:11 +0000 (13:52 +0900)]
Add a test for timewait crash.
Change-Id: I6cbaf2274c002eeef97a62880f31c8546554765e
Lorenzo Colitti [Thu, 1 Oct 2015 08:36:37 +0000 (17:36 +0900)]
Test nuking IPv4 sockets as well as IPv6.
Also, for clarity, use cstruct.Struct to make the ifreq
structures instead of hand-packing them.
Change-Id: I917d6e38b3db067182ef1c971ff6c676fc2d7431
Lorenzo Colitti [Fri, 25 Sep 2015 08:43:55 +0000 (17:43 +0900)]
Add functional tests for tcp_nuke_addr.
1. Test for the hash table off-by-one error.
2. Test that sockets are closed and read() calls are interrupted
with ETIMEDOUT.
Change-Id: Id8cdd50f1f5447734c230341f73d71fcfecdddd8
Lorenzo Colitti [Fri, 16 Oct 2015 04:37:33 +0000 (13:37 +0900)]
Support reading /proc/net/tcp[6].
Support the two different TCP socket formats, and move the
parsing code to net_test.py so it can be used for other things
apart from ping.
Change-Id: Iaa10cc323d11834b6ac9429d42708f6cdf89f404
Lorenzo Colitti [Fri, 16 Oct 2015 04:01:35 +0000 (13:01 +0900)]
Add support for iif rules.
On real systems, we use this to set up tethering.
Change-Id: I0896191754c81e385a08b325922ad42230980d9e
Lorenzo Colitti [Fri, 16 Oct 2015 03:57:39 +0000 (12:57 +0900)]
Make host network access optional.
This isn't required to run the tests, so it's an unnecessary
burden - it needs uml_utilities installed, needs root access,
and doesn't even perform a full network setup.
Change-Id: I8b0c3783290526909de9fe7d40ecaf7399891ba8
Lorenzo Colitti [Thu, 1 Oct 2015 08:35:29 +0000 (17:35 +0900)]
Fix ambiguous commit number.
Change-Id: I5081c360a8ab996d7c77e41c099e4acdd65a8ce2
Lorenzo Colitti [Fri, 25 Sep 2015 08:43:49 +0000 (17:43 +0900)]
Make tcp_nuke_addr_test pass when run more than once.
Change-Id: I4e235f57f4491d02d8a89966e88b528b8000e877
Lorenzo Colitti [Fri, 18 Sep 2015 06:12:39 +0000 (15:12 +0900)]
Add some Android-specific kernel options.
Change-Id: Ib5574bc3645e6073a20c0f828269b17c308f2bdb
Sami Tolvanen [Tue, 29 Sep 2015 13:07:46 +0000 (13:07 +0000)]
Merge "fec: enable building on Mac"
Sami Tolvanen [Mon, 28 Sep 2015 16:05:11 +0000 (17:05 +0100)]
fec: enable building on Mac
Enable the host libfec and the fec tool to be built on Mac with the
help of <utils/Compat.h>.
Change-Id: I5e7c9fac11f4a00814bad92734e703ec8dc22dc9
Sami Tolvanen [Mon, 28 Sep 2015 16:14:25 +0000 (16:14 +0000)]
Merge "Error correction: Add a tool for en/decoding files"
Sami Tolvanen [Mon, 28 Sep 2015 15:10:14 +0000 (15:10 +0000)]
Merge "libfec: fix Mac build"
Sami Tolvanen [Mon, 28 Sep 2015 14:54:42 +0000 (15:54 +0100)]
libfec: fix Mac build
Exclude the host library and executables on Mac.
Change-Id: Ie399b83f3678d16aac67ce9a4414344a93f90055
Sami Tolvanen [Mon, 28 Sep 2015 14:09:01 +0000 (14:09 +0000)]
Merge "Error correction: Add libfec to read encoded data"
Yabin Cui [Fri, 25 Sep 2015 18:16:11 +0000 (18:16 +0000)]
Merge "Simpleperf: support dwarf callgraph in report command."
Sami Tolvanen [Sat, 16 May 2015 14:14:14 +0000 (15:14 +0100)]
Error correction: Add a tool for en/decoding files
Add fec, a tool for generating error-correcting codes for files
and recovering them.
Bug:
21893453
Change-Id: I389c92e5cc7f825d632759b9f96045767e74120a
Sami Tolvanen [Fri, 26 Jun 2015 13:28:31 +0000 (14:28 +0100)]
Error correction: Add libfec to read encoded data
Add libfec to read files or partitions with error-correcting codes
appended to them. Uses verity metadata to speed up I/O and improve
error correction effectiveness.
Bug:
21893453
Change-Id: I94b95058b084418019fc96595bb6055df36e2c2b
Yabin Cui [Thu, 24 Sep 2015 21:59:16 +0000 (21:59 +0000)]
Merge "Simpleperf: fix flaky workload unit tests."
Yabin Cui [Thu, 24 Sep 2015 19:37:27 +0000 (12:37 -0700)]
Simpleperf: fix flaky workload unit tests.
Move SIGABRT to SIGKILL to make sure the child process is terminated by a signal.
SIGABRT can't guarantee this because the child process can install signal handler for SIGABRT.
Add a final _exit(1) after ChildProcessFn in case execvp() fails.
Change-Id: I353720b10c6ea42826efcafce5ff2699fd246e22
Ying Wang [Thu, 24 Sep 2015 19:42:41 +0000 (19:42 +0000)]
Merge "Fix multilib build warning."
Ying Wang [Thu, 24 Sep 2015 19:31:50 +0000 (12:31 -0700)]
Fix multilib build warning.
Change-Id: I3816f7f5352f204795f45d782b8ec80493d78491
David Zeuthen [Thu, 24 Sep 2015 16:25:32 +0000 (16:25 +0000)]
Merge "boot_control_copy: Fix getCurrentSlot()."
Lorenzo Colitti [Thu, 24 Sep 2015 04:39:16 +0000 (04:39 +0000)]
Merge "Add test to exercise the tcp_nuke_addr functionality"
Lorenzo Colitti [Thu, 24 Sep 2015 03:58:37 +0000 (03:58 +0000)]
Merge "Add a crash test for tcp_nuke_addr."
Yabin Cui [Fri, 14 Aug 2015 03:30:20 +0000 (20:30 -0700)]
Simpleperf: support dwarf callgraph in report command.
Use libbacktrace for stack unwinding.
Bug:
22229391
Change-Id: Iab35cdb52936c65c4728e23423ded83050f1db76
Elliott Hughes [Wed, 23 Sep 2015 18:48:51 +0000 (18:48 +0000)]
Merge "Remove the hack for including libpagemap's headers."
David Zeuthen [Wed, 23 Sep 2015 18:07:10 +0000 (14:07 -0400)]
boot_control_copy: Fix getCurrentSlot().
The getCurrentSlot() method wasn't returning the right value if
setActiveBootSlot() was called with another slot since last reboot.
Instead of peeking in the misc partition, just look at the dev_t for
/system and compare it with the dev_t for system_a and system_b.
Bug:
24201805
Change-Id: I601ab5e355e0f423637e6867d0afda97f68b57fd
Elliott Hughes [Wed, 23 Sep 2015 05:33:10 +0000 (22:33 -0700)]
Remove the hack for including libpagemap's headers.
Change-Id: If75e007111f82178e372c88ab4dce62fd8ff7873
Elliott Hughes [Wed, 23 Sep 2015 05:27:36 +0000 (05:27 +0000)]
Merge "Use %n to parse maps in libpagemap."
Elliott Hughes [Wed, 23 Sep 2015 01:28:04 +0000 (18:28 -0700)]
Use %n to parse maps in libpagemap.
Bug: http://b/
24212024
Change-Id: If00782c7af6fde30650045180512132ee5a8fd89
Alex Deymo [Tue, 22 Sep 2015 01:32:55 +0000 (01:32 +0000)]
Merge "Example /postinst script module for update_engine."
Alex Deymo [Mon, 21 Sep 2015 23:49:23 +0000 (16:49 -0700)]
Example /postinst script module for update_engine.
The "post-install" program (normally /system/postinst) is a program
stored in the new system but executed from the old system right before
finishing the update. This post-install step provides a way to perform
device-specific tasks needed for old devices to accept the new update
*before* attempting to boot it.
Currently, we don't require any particular task to be performed in this
step, so this is just an example post-install program with some
documentation. Nevertheless, update_engine payload major version 1
requires a /postinst script in the system partition. While we plan to
use payload major version 2 in Brillo, this patch allows to push images
to the pre-release version of update_engine.
Bug:
24194445
Test: `m` includes /postinst in a Brillo target.
Change-Id: I6397537119873c68e0a626a37137ececcf8f03d5
Yabin Cui [Mon, 21 Sep 2015 19:06:56 +0000 (19:06 +0000)]
Merge "Simpleperf: rewrite unsupported logging style."
Yabin Cui [Fri, 18 Sep 2015 18:10:55 +0000 (11:10 -0700)]
Simpleperf: rewrite unsupported logging style.
Previously we can use a ternary operator to choose the log level, like
(error ? LOG(ERROR) : LOG(DEBUG)) << xxx. But as the LOG() macro is about
to change, we can no longer write like this.
This CL also changes some improper log levels and log messages.
Change-Id: Ib9a55f2ca241516a6e89afad4a733cc07b19570f
Filipe Brandenburger [Fri, 18 Sep 2015 22:37:03 +0000 (15:37 -0700)]
Add test to exercise the tcp_nuke_addr functionality
Change-Id: I5da6a2ae4638a8405c46a03911d1257ca58cc072
Mark Salyzyn [Fri, 18 Sep 2015 21:17:05 +0000 (21:17 +0000)]
Merge "Build Breakage in branch: git_master @
2265859"
Mark Salyzyn [Fri, 18 Sep 2015 21:14:13 +0000 (14:14 -0700)]
Build Breakage in branch: git_master @
2265859
Split mmap-perf into a 32 and 64-bit version.
Change-Id: I8630d8b62f163990d0f14f3ca48bf9b72df87d45
Mark Salyzyn [Fri, 18 Sep 2015 20:17:24 +0000 (20:17 +0000)]
Merge "Yet another disk performance benchmark."
Riley Andrews [Fri, 4 Sep 2015 00:25:14 +0000 (17:25 -0700)]
Yet another disk performance benchmark.
This does memory mapped i/o on huge files, and thus requires
a 64 bit device.
Change-Id: Id91dd59b8c32751b6cb14f166affbd57912f8d28
Lorenzo Colitti [Mon, 14 Sep 2015 05:54:55 +0000 (14:54 +0900)]
Add a crash test for tcp_nuke_addr.
Bug:
23663111
Change-Id: I3b79362d6a53b7689168488527059ae506161d5f
Lorenzo Colitti [Fri, 18 Sep 2015 07:23:13 +0000 (07:23 +0000)]
Merge "Allow run_net_test.sh to use a pre-existing kernel binary."
Lorenzo Colitti [Fri, 18 Sep 2015 02:48:49 +0000 (11:48 +0900)]
Allow run_net_test.sh to use a pre-existing kernel binary.
This is useful to check whether a prebuilt built by the build
server, or one built using build server scripts in a local tree,
passes the tests.
Bug:
23016816
Change-Id: I7001f57c6a7ae335b41eba37caad5aeb2368a223
Lorenzo Colitti [Fri, 18 Sep 2015 06:13:18 +0000 (06:13 +0000)]
Merge "Annotate more tests with the relevant commits."
Lorenzo Colitti [Fri, 18 Sep 2015 02:00:19 +0000 (11:00 +0900)]
Annotate more tests with the relevant commits.
Change-Id: Id8a2b2b350d9a58fe42f53cb474c30d891696101
Colin Cross [Thu, 17 Sep 2015 18:13:08 +0000 (18:13 +0000)]
Merge "Fix output when -m is not passed"
Colin Cross [Wed, 16 Sep 2015 23:31:31 +0000 (16:31 -0700)]
Fix output when -m is not passed
limit == -1 was being treated as limit == 0, and no tasks were being
printed.
Change-Id: Ie4ec278249bc750a3494e55d483dd983bf7bbdc3
Colin Cross [Thu, 17 Sep 2015 18:12:42 +0000 (18:12 +0000)]
Merge "Support TASKSTATS_TYPE_NULL"
Gilad Arnold [Thu, 17 Sep 2015 15:09:28 +0000 (15:09 +0000)]
Merge "Check command line arguments first."
Gilad Arnold [Thu, 17 Sep 2015 12:17:14 +0000 (05:17 -0700)]
Check command line arguments first.
This allows users to see the usage text before attempting to do actual
work. Particularly useful when bootctrl module consistently fails to
load.
Bug:
24157039
Change-Id: Id0f3fa048f4c88ef87156b79f4fff249a77270b4
Sami Tolvanen [Thu, 17 Sep 2015 10:31:11 +0000 (10:31 +0000)]
Merge "boot_signer: allow verification using an external certificate"
Colin Cross [Wed, 16 Sep 2015 23:28:11 +0000 (16:28 -0700)]
Support TASKSTATS_TYPE_NULL
Some kernels need to pad the netlink packet with an attribute of
type TASKSTATS_TYPE_NULL.
Bug:
24142514
Change-Id: I2745537bacf936325c52a03237ac04459c605271
Christopher Ferris [Tue, 15 Sep 2015 23:29:05 +0000 (23:29 +0000)]
Merge "Fix mac build."
Christopher Ferris [Tue, 15 Sep 2015 23:26:21 +0000 (16:26 -0700)]
Fix mac build.
This disables the host code and host tests on anything but a linux
system.
Change-Id: I1a6396707df216e1c22de537072b10221fcc7fce
Christopher Ferris [Tue, 15 Sep 2015 23:04:08 +0000 (23:04 +0000)]
Merge "Tool 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
Sami Tolvanen [Tue, 15 Sep 2015 09:41:16 +0000 (10:41 +0100)]
boot_signer: allow verification using an external certificate
Add a -certificate parameter, which allows one to specify an external
public key certificate to use for verifying boot image signatures:
boot_signer -verify boot.img -certificate cert.x509.pem
This makes it possible to confirm that the boot image has been signed
with a specific key.
Change-Id: I41f1a05e1c8be3bfac2a86678d81beaae0e371bb
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
Than McIntosh [Wed, 9 Sep 2015 15:20:17 +0000 (15:20 +0000)]
Merge "Support for additional profile annotations."
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
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
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."
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
Lorenzo Colitti [Sun, 6 Sep 2015 11:11:58 +0000 (11:11 +0000)]
Merge "Annotate a few tests with the relevant kernel commits."
Colin Cross [Sat, 5 Sep 2015 19:31:52 +0000 (19:31 +0000)]
Merge "Implement 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
Filipe Brandenburger [Fri, 4 Sep 2015 05:39:35 +0000 (05:39 +0000)]
Merge "Expect 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
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
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
Kenny Root [Wed, 2 Sep 2015 23:03:30 +0000 (23:03 +0000)]
Merge "Prepare 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
Colin Cross [Wed, 2 Sep 2015 17:30:31 +0000 (17:30 +0000)]
Merge "Fix 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
David Zeuthen [Tue, 1 Sep 2015 20:42:47 +0000 (20:42 +0000)]
Merge "bootctl: Command-line wrapper for boot_control HAL."
Lorenzo Colitti [Tue, 1 Sep 2015 10:50:27 +0000 (10:50 +0000)]
Merge "Add 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
Dan Willemsen [Tue, 1 Sep 2015 00:46:48 +0000 (00:46 +0000)]
Merge "Remove HOST_OS checks, whitelist windows module"
David Zeuthen [Mon, 31 Aug 2015 21:55:33 +0000 (17:55 -0400)]
bootctl: Command-line wrapper for boot_control HAL.
Change-Id: Icd7bfee8fcc04ca113c2e6dc8bcefd614e804bb6
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
Mark Salyzyn [Mon, 24 Aug 2015 17:08:11 +0000 (17:08 +0000)]
Merge "fix 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
Yabin Cui [Fri, 21 Aug 2015 23:52:29 +0000 (23:52 +0000)]
Merge "Simpleperf: 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
Yabin Cui [Fri, 21 Aug 2015 20:25:39 +0000 (20:25 +0000)]
Merge "Simpleperf: 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
Tom Cherry [Fri, 21 Aug 2015 17:42:32 +0000 (17:42 +0000)]
Merge "bundle init.rc contents with its service"
Yabin Cui [Fri, 21 Aug 2015 03:20:08 +0000 (03:20 +0000)]
Merge "Simpleperf: 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
Yabin Cui [Thu, 20 Aug 2015 02:03:29 +0000 (02:03 +0000)]
Merge "Simpleperf: improve output of stat command."
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
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
Yabin Cui [Wed, 19 Aug 2015 22:10:22 +0000 (22:10 +0000)]
Merge "Simpleperf: add raw data in sample records for tracepoint events."
Yusuke Sato [Wed, 19 Aug 2015 20:23:43 +0000 (20:23 +0000)]
Merge "Use the new version of android_fork_execvp_ext()"
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
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
Yabin Cui [Wed, 19 Aug 2015 02:47:33 +0000 (02:47 +0000)]
Merge "Simpleperf: 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