Searched refs:policy (Results 1 - 4 of 4) sorted by relevance
/system/core/include/cutils/ |
H A D | sched_policy.h | 37 /* Assign thread tid to the cgroup associated with the specified policy. 43 extern int set_sched_policy(int tid, SchedPolicy policy); 45 /* Return the policy associated with the cgroup of thread tid via policy pointer. 49 extern int get_sched_policy(int tid, SchedPolicy *policy); 51 /* Return a displayable string corresponding to policy. 55 extern const char *get_sched_policy_name(SchedPolicy policy);
|
/system/core/libcutils/ |
H A D | sched_policy.c | 30 /* Re-map SP_DEFAULT to the system default policy, and leave other values unchanged. 32 * Returns the possibly re-mapped policy. 67 /* Add tid to the scheduling group defined by the policy */ 68 static int add_tid_to_cgroup(int tid, SchedPolicy policy) argument 72 switch (policy) { 92 SLOGE("add_tid_to_cgroup failed; policy=%d\n", policy); 113 SLOGW("add_tid_to_cgroup failed to write '%s' (%s); policy=%d\n", 114 ptr, strerror(errno), policy); 222 int get_sched_policy(int tid, SchedPolicy *policy) argument 261 set_sched_policy(int tid, SchedPolicy policy) argument 334 set_sched_policy(int tid, SchedPolicy policy) argument 339 get_sched_policy(int tid, SchedPolicy *policy) argument 347 get_sched_policy_name(SchedPolicy policy) argument [all...] |
/system/core/libnl_2/ |
H A D | attr.c | 123 int len, struct nla_policy *policy) 144 struct nlattr *nla, struct nla_policy *policy) 146 return nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy); 122 nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, int len, struct nla_policy *policy) argument 143 nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, struct nla_policy *policy) argument
|
/system/core/toolbox/ |
H A D | top.c | 71 char policy[POLICY_NAME_LEN]; member in struct:proc_info 385 strlcpy(proc->policy, "unk", POLICY_NAME_LEN); 387 strlcpy(proc->policy, get_sched_policy_name(p), POLICY_NAME_LEN); 388 proc->policy[2] = '\0'; 481 proc->vss / 1024, proc->rss * getpagesize() / 1024, proc->policy, user_str, proc->name[0] != 0 ? proc->name : proc->tname); 484 proc->vss / 1024, proc->rss * getpagesize() / 1024, proc->policy, user_str, proc->tname, proc->name);
|
Completed in 497 milliseconds