/frameworks/native/libs/vr/libperformance/ |
D | performance_client.cpp | 22 int PerformanceClient::SetCpuPartition(pid_t task_id, in SetCpuPartition() argument 24 if (task_id == 0) in SetCpuPartition() 25 task_id = gettid(); in SetCpuPartition() 28 InvokeRemoteMethod<PerformanceRPC::SetCpuPartition>(task_id, partition)); in SetCpuPartition() 31 int PerformanceClient::SetCpuPartition(pid_t task_id, const char* partition) { in SetCpuPartition() argument 32 if (task_id == 0) in SetCpuPartition() 33 task_id = gettid(); in SetCpuPartition() 37 task_id, WrapString(partition))); in SetCpuPartition() 40 int PerformanceClient::SetSchedulerPolicy(pid_t task_id, in SetSchedulerPolicy() argument 42 if (task_id == 0) in SetSchedulerPolicy() [all …]
|
/frameworks/native/libs/vr/libperformance/include/private/dvr/ |
D | performance_client.h | 17 int SetSchedulerPolicy(pid_t task_id, const std::string& scheduler_policy); 18 int SetSchedulerPolicy(pid_t task_id, const char* scheduler_policy); 21 int SetCpuPartition(pid_t task_id, const std::string& partition); 22 int SetCpuPartition(pid_t task_id, const char* partition); 23 int SetSchedulerClass(pid_t task_id, const std::string& scheduler_class); 24 int SetSchedulerClass(pid_t task_id, const char* scheduler_class); 25 int GetCpuPartition(pid_t task_id, std::string* partition_out); 26 int GetCpuPartition(pid_t task_id, char* partition_out, std::size_t size);
|
/frameworks/native/services/vr/performanced/ |
D | performance_service.cpp | 225 Message& message, pid_t task_id, const std::string& scheduler_policy) { in OnSetSchedulerPolicy() argument 229 task_id, scheduler_policy.c_str()); in OnSetSchedulerPolicy() 231 Task task(task_id); in OnSetSchedulerPolicy() 236 task_id); in OnSetSchedulerPolicy() 259 task.thread_group_id(), task_id); in OnSetSchedulerPolicy() 274 auto attach_status = target_set->AttachTask(task_id); in OnSetSchedulerPolicy() 278 task_id, target_cpuset.c_str(), in OnSetSchedulerPolicy() 290 sched_setscheduler(task_id, config.scheduler_policy, ¶m); in OnSetSchedulerPolicy() 291 prctl(PR_SET_TIMERSLACK_PID, config.timer_slack, task_id); in OnSetSchedulerPolicy() 297 scheduler_policy.c_str(), task_id); in OnSetSchedulerPolicy() [all …]
|
D | cpu_set.cpp | 170 for (auto task_id : root->GetTasks()) { in MoveUnboundTasks() local 171 Task task(task_id); in MoveUnboundTasks() 179 task_id, task.name().c_str(), target_set.c_str(), in MoveUnboundTasks() 182 auto status = target->AttachTask(task_id); in MoveUnboundTasks() 186 task_id, target_set.c_str(), status.GetErrorMessage().c_str()); in MoveUnboundTasks() 190 task_id, task.name().c_str(), task.cpus_allowed_list().c_str()); in MoveUnboundTasks() 239 Status<void> CpuSet::AttachTask(pid_t task_id) const { in AttachTask() 243 stream << task_id; in AttachTask() 267 pid_t task_id = std::strtol(line.c_str(), nullptr, 10); in GetTasks() local 268 tasks.push_back(task_id); in GetTasks()
|
D | performance_service.h | 32 pdx::Status<void> OnSetSchedulerPolicy(pdx::Message& message, pid_t task_id, 35 pdx::Status<void> OnSetCpuPartition(pdx::Message& message, pid_t task_id, 37 pdx::Status<void> OnSetSchedulerClass(pdx::Message& message, pid_t task_id, 40 pid_t task_id);
|
D | task.cpp | 22 android::base::unique_fd OpenTaskDirectory(pid_t task_id) { in OpenTaskDirectory() argument 24 stream << kProcBase << "/" << task_id; in OpenTaskDirectory() 44 Task::Task(pid_t task_id) in Task() argument 45 : task_id_(task_id), in Task() 54 task_id, strerror(error)); in Task()
|
D | performance_service_tests.cpp | 34 std::pair<UniqueFile, int> OpenTaskFile(pid_t task_id, in OpenTaskFile() argument 37 stream << kProcBase << "/" << task_id << "/" << name; in OpenTaskFile() 44 std::string GetTaskCpuSet(pid_t task_id) { in GetTaskCpuSet() argument 48 std::tie(file, error) = OpenTaskFile(task_id, "cpuset"); in GetTaskCpuSet() 74 pid_t task_id = 0; in TEST() local 81 task_id = gettid(); in TEST() 89 id_condition.wait(lock, [&task_id] { return task_id != 0; }); in TEST() 91 EXPECT_NE(0, task_id); in TEST() 93 error = dvrSetCpuPartition(task_id, "/application"); in TEST()
|
D | task.h | 24 explicit Task(pid_t task_id); 29 pid_t task_id() const { return task_id_; } in task_id() function
|
D | cpu_set.h | 33 pdx::Status<void> AttachTask(pid_t task_id) const;
|
/frameworks/native/libs/vr/libperformance/include/dvr/ |
D | performance_client_api.h | 23 int dvrSetSchedulerPolicy(pid_t task_id, const char* scheduler_policy); 37 int dvrSetCpuPartition(pid_t task_id, const char* partition); 53 int dvrSetSchedulerClass(pid_t task_id, const char* scheduler_class); 67 int dvrGetCpuPartition(pid_t task_id, char* partition, size_t size);
|
/frameworks/native/libs/vr/libdvr/ |
D | dvr_performance.cpp | 9 int dvrPerformanceSetSchedulerPolicy(pid_t task_id, in dvrPerformanceSetSchedulerPolicy() argument 13 return client->SetSchedulerPolicy(task_id, scheduler_policy); in dvrPerformanceSetSchedulerPolicy()
|
/frameworks/native/libs/vr/libdvr/include/dvr/ |
D | dvr_performance.h | 21 int dvrPerformanceSetSchedulerPolicy(pid_t task_id, const char* scheduler_policy);
|
D | dvr_api.h | 368 pid_t task_id, const char* scheduler_policy);
|
/frameworks/native/libs/vr/libpdx_default_transport/ |
D | pdx_benchmarks.cpp | 85 SchedStats(pid_t task_id) : task_id_(task_id) {} in SchedStats() argument 113 pid_t task_id() const { return task_id_; } in task_id() function in __anon71e129100111::SchedStats
|