Age | Commit message (Collapse) | Author |
|
Change-Id: Ic925814191b8ac952b584a994cf455f871a8ee0c
|
|
Change-Id: If4b32546c6678afaaebffbcf1fbeee17a1879561
|
|
|
|
|
|
1. Build libsimpleperf_report.so on host, which exports functions
to access samples.
2. Add simpleperf_report_lib.py to wrap libsimpleperf_report.so.
3. Write report_sample.py to test simpleperf_report_lib.py. The
output format of report_sample.py matches the need of building
FlameGraph.
Bug: http://b/31069528
Test: run report_sample.py on perf.data.
Test: run simpleperf_unit_test.
Change-Id: I4949f8ea506f12101a9c4fb4c896957c96676853
|
|
am: cbbc907a4d
Change-Id: I644f3d99f55fe84da2d517c3e5e6bae439a35a12
|
|
|
|
Fix two errors when reporting perf.data generated by linux perf.
And add corresponding tests.
Test: run simpleperf_unit_test.
Change-Id: I04dd88461fdd6a85763847570bac16db1ccb81fa
|
|
|
|
am: 728c8de11d
Change-Id: Id5719e1c027d0c9fb09b789d5aab48167fb1bf3a
|
|
|
|
1. When a cpu is down, read records from event files on that cpu,
then close those event files.
2. When a cpu is up, open event files on that cpu, and create
mapped buffer for those event files to dump records.
3. Instead of creating a mapped buffer for each event type on each
cpu, we can just create a mapped buffer for all event types on
each cpu.
4. When new event files are created, store a EventIdRecord record in
perf.data to notify record_file_reader.cpp.
Bug: http://b/29245608
Test: run simpleperf record cmd and make cpu offline and online.
Test: run simpleperf_unit_test.
Change-Id: Ib97a24b6292fa143e9b35cb105bdddf1e826d60a
|
|
Bug: 29321445
Change-Id: Ib6797def04d69f20ea4e856d4005c57b5ec6ac42
(cherry picked from commit 3defd8f2199234c5a7a6092fba320f143caf3622)
|
|
am: b5a1a4a772
Change-Id: Ic4b372e601b2e66aef25c3c2b536fce86547657c
|
|
|
|
libziparchive-host is no longer necessary, and mixing libziparchive-host
and libziparchive can cause ODR violations.
Change-Id: I018d3726e6ab099a86a3ea662ab6d52509218510
|
|
am: c3ead4eb80
Change-Id: Ibb93a0572bdd79c75e4e40a35f8699f1f69498ca
|
|
|
|
1. When a cpu is down, read counters from event files on that cpu,
then close those events files.
2. When a cpu is up, open event files on that cpu.
3. Remove check of time_running != 0 in cmd_stat.cpp, because
1) We no longer need the check as we no longer open event file
for each cpu for non system wide profiling.
2) The kernel has a bug that can make time_running == 0 if
a cpu is down while profiling. But the counter value is
still valid, and shouldn't be ignored.
Bug: http://b/29245608
Test: run simpleperf and make cpu offline and online.
Change-Id: I3e7bec139c5f50bea1311c95bb154a5b290a72ea
|
|
am: 4a35dafc21
Change-Id: I5a2751fbb762f98f9ef1050372a2c5e506e2c76d
|
|
|
|
It helps users to find out which files are used for
reporting.
Bug: http://b/29574526
Change-Id: I3d608e61c50471632c50bf6e8f6f9e45c63fc4b4
Test: run `simpleperf report --log verbose` manually.
|
|
am: db7a1c571a
Change-Id: I27b4a11bcdf4c578f908ffa4ca7c5a9d2599b547
|
|
|
|
am: a903cc9b9c
Change-Id: I53f788aa6100b0eb6917920334efa624af14e77f
|
|
These tools depend on libandroid, which is not present in Brillo.
Bug: 31068444
Change-Id: I0565775ab3effa910149f28bef790b6fed4e6485
Test: `make dist`
|
|
|
|
1. Add offline_while_user_process_profiling test for
http://b/28086229.
2. Add options to adjust test duration and cpu hotplug
interval.
3. Report test time periodically for tests running for
a long time.
Bug: http://b/25193162
Bug: http://b/28086229
Bug: http://b/30839193
Change-Id: If02a45aed2dab718ca381b24da2898f22fed1a8d
|
|
am: 4d269c7593
Change-Id: I7a58fdbab63c1c4cd11973d49278571db0c50fde
|
|
am: 43908a31c1
Change-Id: I4f53fa84ea663a4090a99f2261f153faf8f0b8fb
|
|
|
|
|
|
am: ef99a90b46
Change-Id: I7c89d8155b9ade3c288d92d496ec9fc84be648b6
|
|
If there is no need to record samples, u/k modifiers
used in event cpu-clock and task-clock are ignored
by the kernel.
Bug: http://b/29574526
Change-Id: Id45568448888965a3bfa382c4420e395a741f77a
Test: simpleperf_unit_test.
|
|
|
|
am: 5079d0aabc
Change-Id: Ica4813dcf76197b8866307c7c0ba5fc4a56fd6e3
|
|
|
|
Use the uapi ones instead, so I don't have to think about whether ours
are correct.
Bug: http://b/31044648
Change-Id: Ibe4a078ad3223419301a5f585e8ed24dd7366ce2
|
|
am: 84ea73e65c
Change-Id: I7f7aa533eb8f4d0d224981f2b2865ee45e0d718f
|
|
|
|
Bug: http://b/31039737
Change-Id: Ia65c61b874a2f60d7022be3ef0774f5fc6b09d7c
Test: test manually as described in the bug.
|
|
am: 23a73bf538
Change-Id: Ia5b6064a5f3936f739480221a9603b66b744ed6f
|
|
|
|
1. Don't stat() entries in /proc directory if not necessary.
2. Don't read tracing events in debugfs if not root.
Bug: http://b/30981595
Change-Id: Ic695671357dad936d60f4e6d573ce4452dec217c
Test: run `simpleperf list` and check kmsg.
|
|
Move code used to monitor cpu hotplug events
from cmd_record.cpp to event_selection_set.cpp,
so it can also be used by stat cmd.
Bug: http://b/29245608
Change-Id: I1f5f3268192aa5c98c0be9fc1de763352c08eab6
Test: run simpleperf stat, and online/offline a cpu.
|
|
am: cb0112fe64
Change-Id: I5554ac7aaf799dda68731802bd8668b3db5bbfb5
|
|
am: e2d0366442 -s ours
Change-Id: Ic9f51fa2ad2f69004afc51fb31a75aa910697b0c
|
|
|
|
Change-Id: Iac9511f7d943fde9e00d21d46ca32f186d4d5673
|
|
|