diff options
author | Yabin Cui <yabinc@google.com> | 2017-07-14 15:59:56 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2017-07-14 17:58:51 -0700 |
commit | 616b3a020bf708f364e0608107ded083930ac6b4 (patch) | |
tree | cf7de582ecda3ec87fe4a9f35b71f55aa996fe56 /simpleperf/command.h | |
parent | 9aa1dc2f3039db9faee9d581360a5d65caddb8f4 (diff) | |
download | extras-616b3a020bf708f364e0608107ded083930ac6b4.tar.gz |
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
Diffstat (limited to 'simpleperf/command.h')
-rw-r--r-- | simpleperf/command.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/simpleperf/command.h b/simpleperf/command.h index 2311f33a..6063dbf8 100644 --- a/simpleperf/command.h +++ b/simpleperf/command.h @@ -65,5 +65,6 @@ void RegisterCommand(const std::string& cmd_name, void UnRegisterCommand(const std::string& cmd_name); std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name); const std::vector<std::string> GetAllCommandNames(); +bool RunSimpleperfCmd(int argc, char** argv); #endif // SIMPLE_PERF_COMMAND_H_ |