ANDROID: proc: Add /proc/uid directory
authorConnor O'Brien <connoro@google.com>
Mon, 16 Oct 2017 17:30:24 +0000 (10:30 -0700)
committerConnor O'Brien <connoro@google.com>
Thu, 12 Apr 2018 20:00:33 +0000 (13:00 -0700)
commit2c718becc7d503d78024afe41a4453641d6f7a60
treebead87ba06813a1a792effd8a8c1fc9ba273adec
parentb2ca4f89094256a09a463ee6c3b341f46b5113f8
ANDROID: proc: Add /proc/uid directory

Add support for reporting per-uid information through procfs, roughly
following the approach used for per-tid and per-tgid directories in
fs/proc/base.c.
This also entails some new tracking of which uids have been used, to
avoid losing information when the last task with a given uid exits.

Signed-off-by: Connor O'Brien <connoro@google.com>
Bug: 72339335
Test: ls /proc/uid/; compare with UIDs in /proc/uid_time_in_state
Change-Id: I0908f0c04438b11ceb673d860e58441bf503d478
fs/proc/Kconfig
fs/proc/Makefile
fs/proc/internal.h
fs/proc/root.c
fs/proc/uid.c [new file with mode: 0644]
include/linux/proc_fs.h
kernel/user.c