)]}' { "commit": "766d0c0c6c388ec3833caf9c47e9f3f50230cdc3", "tree": "62b6dca83a81643225c3b54f6632ef4bdd7df6ba", "parents": [ "dbd016261f154491f68ac5c9bd87e99c0848ef97" ], "author": { "name": "Connor O\u0027Brien", "email": "connoro@google.com", "time": "Fri Oct 05 19:20:54 2018 -0700" }, "committer": { "name": "Connor O\u0027Brien", "email": "connoro@google.com", "time": "Mon Nov 04 22:00:22 2019 +0000" }, "message": "ANDROID: cpufreq: times: add /proc/uid_concurrent_{active,policy}_time\n\nIn order to model the energy used by the cpu, we need to expose cpu\ntime information to userspace. We can use this information to blame\nuids for the energy they are using.\n\nThis patch adds 2 files:\n\n/proc/uid_concurrent_active_time outputs the time each uid spent\nrunning with 1 to num_possible_cpus online and not idle.\n\nFor instance, if 4 cores are online and active for 50ms and the uid is\nrunning on one of the cores, the uid should be blamed for 1/4 of the\nbase energy used by the cpu when 1 or more cores is active.\n\n/proc/uid_concurrent_policy_time outputs the time each uid spent\nrunning on group of cpu\u0027s with the same policy with 1 to\nnum_related_cpus online and not idle.\n\nFor instance, if 2 cores that are a part of the same policy are online\nand active for 50ms and the uid is running on one of the cores, the\nuid should be blamed for 1/2 of the energy that is used everytime one\nor more cpus in the same policy is active.\n\nThis patch is based on commit c89e69136fec (\"ANDROID: cpufreq:\nuid_concurrent_active_time\") and commit 989212536842 (\"ANDROID:\ncpufreq: uid_concurrent_policy_time\") in the android-msm-wahoo-4.4\nkernel by Marissa Wall.\n\nBug: 111216804, 140846192\nTest: cat files on hikey960 and confirm output is reasonable\nChange-Id: I075fef030c261b47831ae8d4ddb286ee9d8b9347\nSigned-off-by: Connor O\u0027Brien \u003cconnoro@google.com\u003e\n(cherry picked from commit 605e2ec6d67919b995c7b822b38b9ffea33c2338)\nSigned-off-by: JeiFeng Lee \u003clinger.lee@mediatek.com\u003e\n", "tree_diff": [ { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "55b414289b406c1b782721a19b06ae860afb3e4c", "new_mode": 33188, "new_path": "Documentation/ABI/testing/procfs-concurrent_time" }, { "type": "modify", "old_id": "e7a8b636a5f45d8137cd8c5ce8a51168eefde468", "old_mode": 33188, "old_path": "drivers/cpufreq/cpufreq_times.c", "new_id": "2917fd3bbfc261613d95fbdc415721becded9d8a", "new_mode": 33188, "new_path": "drivers/cpufreq/cpufreq_times.c" } ] }