Lines Matching defs:comm_prefix
274 * procfs_is_workload_pid - check if a procfs entry contains a comm_prefix* comm
277 * process has a comm with the prefix set in char *comm_prefix. As the
281 * Return: True if the proc_entry contains a comm file with comm_prefix*.
284 static int procfs_is_workload_pid(const char *comm_prefix, struct dirent *proc_entry)
319 retval = strncmp(comm_prefix, buffer, strlen(comm_prefix));
330 * set_comm_sched_attr - set sched params to threads starting with char *comm_prefix
333 * sched_attr *attr to the threads that start with char *comm_prefix. It is
337 int set_comm_sched_attr(const char *comm_prefix, struct sched_attr *attr)
344 if (strlen(comm_prefix) >= MAX_PATH) {
346 MAX_PATH, comm_prefix);
358 retval = procfs_is_workload_pid(comm_prefix, proc_entry);
877 * set_comm_cgroup - Set cgroup to threads starting with char *comm_prefix
886 int set_comm_cgroup(const char *comm_prefix, const char *cgroup)
893 if (strlen(comm_prefix) >= MAX_PATH) {
895 MAX_PATH, comm_prefix);
911 retval = procfs_is_workload_pid(comm_prefix, proc_entry);