History log of /frameworks/native/libs/binder/tests/schd-dbg.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
60c513c5e1ef92fadf851f56ecff6b289fc93a2c 10-Apr-2017 Howard Chen <howardsoc@google.com> Refine the binder latency test

* limit the output line length be be under 80.
* fix the target service when pair > 2

Bug:36705188
Test: sailfish with prebuilt kernel on oc-dev
Change-Id: I5ce2754418a669a61f9913a30dbeb7176796e230
/frameworks/native/libs/binder/tests/schd-dbg.cpp
25715517db7e056c0ebd71ecc0debf37c7d2b271 28-Mar-2017 Howard Chen <howardsoc@google.com> Support halt the trace when schd-dbg hit deadline

Usage:

start atrace as usual:
>atrace --async_start sched freq ...

then use schd-dbg with -trace arguments
./schd-dbg -trace -deadline_us 2500

This makes schd-dbg to stop trace once it detects a transaction
duration over the deadline. By writing '0' to
/sys/kernel/debug/tracing and halt the process. The tracelog is
then available on /sys/kernel/debug/trace

Bug: b/36669012
Test: sailfish with prebuilt kernel
Change-Id: I9f81109cd22705f070f3f78ddf3539b8fa1f9973
(cherry picked from commit f682b13716006d0f41c13a26e34f3592ff28d1cc)
/frameworks/native/libs/binder/tests/schd-dbg.cpp
c135dbcace640473035b613bce3460048b4d94cd 25-Mar-2017 Howard Chen <howardsoc@google.com> This test is used to check if the kernel scheduler

1. supports priority inheritance.
2. utilize the sync flag.

It also make statistic on average, best and worst latency
as well as number of deadline miss with a configurable
deadline specified in us.

The output is in json format hopefully to make it easy
to integrated with present test framework.

usage:

./schd-dbg # test and output json
./schd-dbg -i 1 # number of iterations
./schd-dbg -pair 4 # number of process pairs
./schd-dbg -deadline_us 2500 # deadline in us
./schd-dbg -v # debug

Test: pixel
Change-Id: Idccf0d402dcd7b81c639020364b5ee32075e18cb
/frameworks/native/libs/binder/tests/schd-dbg.cpp