Lines Matching defs:comm_prefix
257 * procfs_is_workload_pid - check if a procfs entry contains a comm_prefix* comm
260 * process has a comm with the prefix set in char *comm_prefix. As the
264 * Return: True if the proc_entry contains a comm file with comm_prefix*.
267 static int procfs_is_workload_pid(const char *comm_prefix, struct dirent *proc_entry)
301 retval = strncmp(comm_prefix, buffer, strlen(comm_prefix));
312 * set_comm_sched_attr - set sched params to threads starting with char *comm_prefix
315 * sched_attr *attr to the threads that start with char *comm_prefix. It is
319 int set_comm_sched_attr(const char *comm_prefix, struct sched_attr *attr)
325 if (strlen(comm_prefix) >= MAX_PATH) {
327 MAX_PATH, comm_prefix);
339 retval = procfs_is_workload_pid(comm_prefix, proc_entry);
682 * set_comm_cgroup - Set cgroup to threads starting with char *comm_prefix
691 int set_comm_cgroup(const char *comm_prefix, const char *cgroup)
700 if (strlen(comm_prefix) >= MAX_PATH) {
702 MAX_PATH, comm_prefix);
740 retval = procfs_is_workload_pid(comm_prefix, proc_entry);