Menu

/simpleperf/workload.cpp Commit Log


Commit Date  
[f89745] (6.4 kB) by Yabin Cui Yabin Cui

simpleperf: add test for dumping regs for tracepoint events.

If the test fails, probably a kernel patch is missing:
5b09a094f2 arm64: perf: Fix callchain parse error with kernel tracepoint events

To support the test, also enable recording tracepoint events in
app's context.

Bug: http://b/29520177
Test: run CtsSimpleperfTestCases64 on devices.

Change-Id: I085114113732366305e92f6a1e6c3b6efc6ff5ff

2017-07-17 21:36:37 View
Download
[616b3a] (6.4 kB) by Yabin Cui Yabin Cui

simpleperf: change the way running cts tests.

Before this CL, CtsSimpleperfTestCases copies itself to the app's
directory, then run it using run-as.

With this CL, CtsSimpleperfTestCases keeps itself in /data/local/tmp,
but forces stat/record cmd to run with --app option. This gives
more freedom to tests:
1. They can stay in shell's context with --in-app option.
2. The stat/record cmds are started in the shell's context, so
they can collect information no available in app's context (like
data in /sys/kernel/debug/tracing/events).

This is a preparation to add tests for recording tracepoint events.
It also matches the way we want users to use simpleperf (with --app option).

Bug: http://b/29520177
Test: run CtsSimpleperfTestCases.

Change-Id: I1709adfb1ff7169df87560226c197e473fdf8516

2017-07-14 22:59:56 View
Download
[a80f8f] (6.0 kB) by Yabin Cui Yabin Cui

simpleperf: support "--app" option in record/stat command.

By using --app [package_name] option, users don't need to
manually run run-as or look for the app's process.
It is also good for profiling app startup time.

For simpleperf, it now can start in the shell's context,
and be able to get tracing events information, which can
support profiling tracepoint events for apps. This is
useful for monitoring thread sleep time.

This CL is tested manually, but I will change the
way of running simpleperf cts test to test this.

Bug: http://b/34108866
Test: test manually.

Change-Id: I8db0390af8e49c56dc4860374153f753bbcf9b11

2017-07-12 22:50:20 View
Download
[5be914] (5.3 kB) by Yabin Cui Yabin Cui

simpleperf: fix tests for dwarf callgraph unwinding.

32-bit simpleperf can't unwind a 64-bit `sleep` process in aarch64
environment. It makes following error in tests:
simpleperf is built in arch arm, and can't do stack unwinding for arch arm64

So make the workload be able to start a process
running callback function. By profiling that process, we can
guarantee that 32-bit simpleperf is profiling a 32-bit process.

Also fix a flaky test IOEventLoop.signal.
Build 32-bit simpleperf_unit_test on 64-bit devices.

Bug: http://b/33167911
Test: run simpleperf_unit_test.
Change-Id: I82741dc5d90c73c1890f834d8e2a9188421a3828

2016-11-29 23:21:13 View
Download
[987d9a] (5.0 kB) by Yabin Cui Yabin Cui

simpleperf: let simpleperf running record/stat command die if parent exits.

Bug: 28114205
Change-Id: I310b9d7a4f52ad5bacf892eba34dbf531a3a7245

2016-07-15 21:08:48 View
Download
[6d1ee4] (4.9 kB) by Yabin Cui Yabin Cui

simpleperf: don't warn if child process was killed by simpleperf.

Bug: 29574526
Change-Id: I3ae95ed95703bcd380ed086d3fbf7ae2830feed5

2016-07-07 22:00:10 View
Download
[66dd09] (4.8 kB) by Elliott Hughes Elliott Hughes

Track rename from base/ to android-base/.

Change-Id: Ic15d4778c7accd1382de0b440a437aba2cf67016

2015-12-04 22:00:57 View
Download
[aebe74] (4.8 kB) by Yabin Cui Yabin Cui

Simpleperf: remove unnecessary exit().

Change-Id: I5256617373c3414195a7a994d0ce217d9afd47e6

2015-11-25 00:58:53 View
Download
[c8fcde] (4.8 kB) by Yabin Cui Yabin Cui

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

2015-09-24 19:37:27 View
Download
[42aa12] (4.8 kB) by Yabin Cui Yabin Cui

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

2015-09-18 18:10:55 View
Download
Older >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.