No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Connor O'Brien 4242998e5b ANDROID: cpufreq: times: add /proc/uid_concurrent_{active,policy}_time
In order to model the energy used by the cpu, we need to expose cpu
time information to userspace.  We can use this information to blame
uids for the energy they are using.

This patch adds 2 files:

/proc/uid_concurrent_active_time outputs the time each uid spent
running with 1 to num_possible_cpus online and not idle.

For instance, if 4 cores are online and active for 50ms and the uid is
running on one of the cores, the uid should be blamed for 1/4 of the
base energy used by the cpu when 1 or more cores is active.

/proc/uid_concurrent_policy_time outputs the time each uid spent
running on group of cpu's with the same policy with 1 to
num_related_cpus online and not idle.

For instance, if 2 cores that are a part of the same policy are online
and active for 50ms and the uid is running on one of the cores, the
uid should be blamed for 1/2 of the energy that is used everytime one
or more cpus in the same policy is active.

This patch is based on commit c89e69136fec ("ANDROID: cpufreq:
uid_concurrent_active_time") and commit 989212536842 ("ANDROID:
cpufreq: uid_concurrent_policy_time") in the android-msm-wahoo-4.4
kernel by Marissa Wall.

Bug: 111216804
Bug: 127641090
Test: cat files on hikey960 and confirm output is reasonable
Change-Id: I1a342361af5c04ecee58d1ab667c91c1bce42445
Signed-off-by: Connor O'Brien <connoro@google.com>
2019-05-03 10:44:51 -07:00
arch ANDROID: cuttlefish_defconfig: Enable CONFIG_CPU_FREQ_TIMES 2019-05-03 10:44:51 -07:00
block block: don't deal with discard limit in blkdev_issue_discard() 2018-10-18 07:23:40 -06:00
certs
crypto
Documentation ANDROID: cpufreq: times: add /proc/uid_concurrent_{active,policy}_time 2019-05-03 10:44:51 -07:00
drivers ANDROID: cpufreq: times: add /proc/uid_concurrent_{active,policy}_time 2019-05-03 10:44:51 -07:00
firmware
fs ANDROID: cpufreq: Add time_in_state to /proc/uid directories 2019-05-03 10:44:50 -07:00
include ANDROID: cpufreq: Add time_in_state to /proc/uid directories 2019-05-03 10:44:50 -07:00
init
ipc
kernel ANDROID: proc: Add /proc/uid directory 2019-05-03 10:44:50 -07:00
lib test_ida: Fix lockdep warning 2018-10-15 16:31:29 -04:00
LICENSES LICENSES: Remove CC-BY-SA-4.0 license text 2018-10-18 11:28:50 +02:00
mm ANDROID: add extra free kbytes tunable 2019-05-03 10:40:06 -07:00
net ANDROID: net: ipv6: autoconf routes into per-device tables 2019-05-03 10:42:46 -07:00
samples
scripts ANDROID: Kbuild, LLVMLinux: allow overriding clang target triple 2019-05-03 10:39:56 -07:00
security ANDROID: security,perf: Allow further restriction of perf_event_open 2019-05-03 10:42:45 -07:00
sound
tools Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-10-20 15:02:51 +02:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
build.config.cuttlefish.aarch64 ANDROID: Move from clang r346389b to r349610. 2019-05-03 10:44:48 -07:00
build.config.cuttlefish.x86_64 ANDROID: Move from clang r346389b to r349610. 2019-05-03 10:44:48 -07:00
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS MAINTAINERS: Add an entry for the code of conduct 2018-10-22 07:33:36 +01:00
Makefile ANDROID: Kbuild, LLVMLinux: allow overriding clang target triple 2019-05-03 10:39:56 -07:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.