Add verified partition tools.

Change-Id: Icf34336e6d574d62b60fff093ea8abe20358ac89
Avoid underflow on an unsigned int when computering bg overrun

A computation for when a block group overruns the end of an image
was consistently storing a negative number in an unsigned var,
and then checking for >0, which is always true for negative numbers.
So first check if the number will be positive before computing it.

Change-Id: Ic8cff8f9ab9f4ea8c5a4dc42143c2430fa87ba12
Merge "Avoid underflow on an unsigned int when computering bg overrun"
am 7f026d09: Merge "Avoid underflow on an unsigned int when computering bg overrun"

* commit '7f026d09fa05a3aa93cea6f6e25df1b5c0f800a0':
  Avoid underflow on an unsigned int when computering bg overrun
libpagemap: fix memory leak in pm_process_destroy()

procrank/librank not impacted because they end quickly. But other
programs that use libpagemap and last for long time can easily see this
memory leak.

Change-Id: I8c9e9444555bef9145c9d89850987a29f15a9b3b
Signed-off-by: Carton He <carton.he@marvell.com>
Merge "libpagemap: fix memory leak in pm_process_destroy()"
am 1b72e0d0: Merge "libpagemap: fix memory leak in pm_process_destroy()"

* commit '1b72e0d0fa93e828facb3f4f2e84facff87d81fb':
  libpagemap: fix memory leak in pm_process_destroy()
use BIONIC implementation of mmap64

Change-Id: Idb0c3d3bb98f22ea7d78043b786e931613377b02
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Merge "Add verified partition tools."
Temporary revert to fix the build.

Change-Id: I40454606e3d974bd6fc79b46f663061549a1a790
Merge "Temporary revert to fix the build."
Merge "use BIONIC implementation of mmap64"
am 67a05c0d: Merge "use BIONIC implementation of mmap64"

* commit '67a05c0d165d779126a5fa8831cd95a0bf2fd1f2':
  use BIONIC implementation of mmap64
am 605023fc: am 67a05c0d: Merge "use BIONIC implementation of mmap64"

* commit '605023fc1414ec0d0d70fee44d511c64d78884e3':
  use BIONIC implementation of mmap64
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
Merge "Add taskstats reporting tool"
Revert "Temporary revert to fix the build."

This reverts commit d1cda72457fed396942ae58f689ce84de7af3e9e.

Change-Id: Ia072e7adee68a1fbb21ae0f9fa38d61b461fb39f
Merge "Revert "Temporary revert to fix the build.""
Revert "Revert "Temporary revert to fix the build.""

This reverts commit a0dafc9aacecdf45cbc20f1d0acbff789f56e607.

Change-Id: I3b1b3a0b3f5c43c0d8f6dc0b6f2f5738b09c1e81
Merge "Revert "Revert "Temporary revert to fix the build."""