• Home
  • History
  • Annotate
  • only in /system/extras/taskstats/
History log of /system/extras/taskstats/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1ed4c8d28b4236fe79269f0357e53a3c98a05490 02-Sep-2015 Colin Cross <ccross@android.com> 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
askstats.c
e7e7cc7a3388168444b4591dac1934817336cf4b 20-Mar-2014 Colin Cross <ccross@android.com> taskstats: fix warnings

Fix warnings on arm64 build

Change-Id: Icc1b497361e8f532f10c850fb0bf5e3fa22249b5
askstats.c
e21a07848e8e1f88d6699ab35d4e1b987c7c9f30 20-Mar-2014 Colin Cross <ccross@android.com> taskstats: convert to libnl

libnl_2 has been replaced with libnl.

Change-Id: Ie96a92c3a77a1a4dcbf0646b1a8f41659f0027e8
ndroid.mk
askstats.c
06a83b7c4b2c1b63177b60c90197afbbb9d4aebe 27-Feb-2014 Ying Wang <wangying@google.com> Fix 64-bit build.

Change-Id: I52f4acaab3e2dcd59c23701f60ac12fed40828c6
ndroid.mk
178e74d8517fcf9f7cf7826e38eaeb41e51fa8f0 20-Sep-2013 Sami Kyostila <skyostil@google.com> Add taskstats reporting tool

Add a tool for querying and printing out the kernel's taskstats
structure. This structure contains various profiling information about a
given process or thread group.

Sample output:

Basic task statistics
---------------------
Stats version: 8
Exit code: 0
Flags: 0x2
Nice value: 0
Command name: init
Scheduling discipline: 0
UID: 0
GID: 0
PID: 1
PPID: 0
Begin time: Fri Sep 20 17:06:14 2013
Elapsed time: 611384577 usec
User CPU time: 980000 usec
Minor page faults: 515
Major page faults: 0
Scaled user time: 980000 usec
Scaled system time: 2590000 usec

Delay accounting
----------------
Count Delay (ms) Average delay Real delay Scaled real Virtual delay
CPU 1101 90.615 0.082 3570.000 3570.000 3620.204
IO 45 50.155 1.115
Swap 0 0.000 0.000
Reclaim 0 0.000 0.000

Extended accounting fields
--------------------------
Average RSS usage: 0.348 MB
Average VM usage: 0.727 MB
RSS high water mark: 548 KB
VM high water mark: 688 KB
IO bytes read: 330752
IO bytes written: 979968
IO read syscalls: 17408
IO write syscalls: 0

Per-task/thread statistics
--------------------------
Voluntary switches: 768
Involuntary switches: 333

Change-Id: I4dab68d98de5db0f9112bec014872a067684f799
ndroid.mk
ODULE_LICENSE_APACHE2
OTICE
askstats.c