[LTP] [PATCH v8 3/5] lapi/sched: add SAFE_SCHED_SETATTR()
Cyril Hrubis
chrubis@suse.cz
Thu Sep 10 12:52:48 CEST 2026
Hi!
> +static inline int safe_sched_setattr(const char *file, const int lineno,
> + pid_t pid, struct sched_attr *attr,
> + unsigned int flags)
> +{
> + int ret;
> +
> + ret = sched_setattr(pid, attr, flags);
> +
> + if (ret == -1) {
> + tst_brk_(file, lineno, TBROK | TERRNO,
> + "sched_setattr(%i) failed", pid);
Maybe it would make sense to print at least the size and sched_policy as well.
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list