libprocessgroup: Add support for task profiles
Abstract usage of cgroups into task profiles that allows for changes
in cgroup hierarchy and version without affecting framework codebase.
Rework current processgroup and sched_policy API function implementations
to use task profiles instead of hardcoded paths and attributes.
Mount cgroups using information from cgroups.json rather than from init.rc
Exempt-From-Owner-Approval: already approved in internal master
Bug: 111307099
Test: builds, boots
Change-Id: If5532d6dc570add825cebd5b5148e00c7d688e32
Merged-In: If5532d6dc570add825cebd5b5148e00c7d688e32
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
diff --git a/libprocessgroup/Android.bp b/libprocessgroup/Android.bp
index d04a79a..d97f09f 100644
--- a/libprocessgroup/Android.bp
+++ b/libprocessgroup/Android.bp
@@ -16,8 +16,10 @@
cc_library {
srcs: [
+ "cgroup_map.cpp",
"processgroup.cpp",
"sched_policy.cpp",
+ "task_profiles.cpp",
],
name: "libprocessgroup",
host_supported: true,
@@ -29,7 +31,7 @@
},
shared_libs: [
"libbase",
- "liblog",
+ "libjsoncpp",
],
// for cutils/android_filesystem_config.h
header_libs: [