Home
last modified time | relevance | path

Searched refs:task_id (Results 1 – 14 of 14) sorted by relevance

/frameworks/native/libs/vr/libperformance/
Dperformance_client.cpp22 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/
Dperformance_client.h17 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/
Dperformance_service.cpp225 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, &param); 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 …]
Dcpu_set.cpp170 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()
Dperformance_service.h32 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);
Dtask.cpp22 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()
Dperformance_service_tests.cpp34 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()
Dtask.h24 explicit Task(pid_t task_id);
29 pid_t task_id() const { return task_id_; } in task_id() function
Dcpu_set.h33 pdx::Status<void> AttachTask(pid_t task_id) const;
/frameworks/native/libs/vr/libperformance/include/dvr/
Dperformance_client_api.h23 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/
Ddvr_performance.cpp9 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/
Ddvr_performance.h21 int dvrPerformanceSetSchedulerPolicy(pid_t task_id, const char* scheduler_policy);
Ddvr_api.h368 pid_t task_id, const char* scheduler_policy);
/frameworks/native/libs/vr/libpdx_default_transport/
Dpdx_benchmarks.cpp85 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