Skip to content

chrt: Improve argument handling and allow optional priority

Madadi Vineeth Reddy util-linux 2 versions Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 1 replyApplied
  2. v33 patches 1 replySuperseded

Changes in v4 from the cover letter

- Rectified my mistake of not giving proper space in a comment in v3

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3chrt: Make minor cleanups in chrtschedutils/chrt.1.adoc schedutils/chrt.c+8 -80 replies
2/3chrt: Only display current settings when no policy is specifiedschedutils/chrt.c+21 -40 replies
3/3chrt: Make priority optional for policies that don't use itschedutils/chrt.1.adoc schedutils/chrt.c+25 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] chrt: Improve argument handling and allow optional priority

This series improves the usability and correctness of the chrt tool:

- Minor cleanups such as indentation fixes and correcting comment.
- Fixes an issue where specifying a policy without a priority would misleadingly print current settings
- Makes the priority argument optional for scheduling policies that ignore it, simplifying usage for tuning parameters like --sched-runtime

Changes in v4:
- Rectified my mistake of not giving proper space in a comment in v3

Changes in v3:
- Made --pid consistent throughout (Karel Zak)
- Change get policy to not have policy options (Karel Zak and Benno Schulenberg)

Changes in v2:
- Updated the man page to reflect the optional priority behavior (Karel Zak)
- Renamed variable to 'need_prio' (Karel Zak)

Madadi Vineeth Reddy (3):
chrt: Make minor cleanups in chrt
chrt: Only display current settings when no policy is specified
chrt: Make priority optional for policies that don't use it

 schedutils/chrt.1.adoc | 24 +++++++++++++----------
 schedutils/chrt.c      | 43 +++++++++++++++++++++++++++++++++---------
 2 files changed, 48 insertions(+), 19 deletions(-)
Signature · 1 line
2.49.0