bpfprogs: Add a time_in_state program

This program will be used to collect statistics from scheduler and power
tracepoints, to provide to the batterystats service. Also add a
.clang-format file consistent with system/bpf/.

Change-Id: I984327eaaf850e524e801c3b74c889292e7d6f1b
Signed-off-by: Joel Fernandes <joelaf@google.com>
4 files changed
tree: caa6100ad79042b5c4046881d35ab80c8dfcc5bb
  1. .clang-format
  2. Android.bp
  3. helpers.h
  4. time_in_state.c