Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107622891
D25660.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D25660.diff
View Options
Index: head/bin/ps/print.c
===================================================================
--- head/bin/ps/print.c
+++ head/bin/ps/print.c
@@ -723,11 +723,18 @@
break;
case RTP_PRIO_NORMAL:
/* alias for PRI_TIMESHARE */
- asprintf(&str, "normal:%u", level - PRI_MIN_TIMESHARE);
+ if (level >= PRI_MIN_TIMESHARE)
+ asprintf(&str, "normal:%u", level - PRI_MIN_TIMESHARE);
+ else
+ asprintf(&str, "kernel:%u", level - PRI_MIN_KERN);
break;
case RTP_PRIO_IDLE:
/* alias for PRI_IDLE */
asprintf(&str, "idle:%u", level - PRI_MIN_IDLE);
+ break;
+ case RTP_PRIO_ITHD:
+ /* alias for PRI_ITHD */
+ asprintf(&str, "intr:%u", level - PRI_MIN_ITHD);
break;
default:
asprintf(&str, "%u:%u", class, level);
Index: head/sys/sys/rtprio.h
===================================================================
--- head/sys/sys/rtprio.h
+++ head/sys/sys/rtprio.h
@@ -44,6 +44,7 @@
/* priority types. Start at 1 to catch uninitialized fields. */
+#define RTP_PRIO_ITHD PRI_ITHD /* Interrupt thread. */
#define RTP_PRIO_REALTIME PRI_REALTIME /* real time process */
#define RTP_PRIO_NORMAL PRI_TIMESHARE /* time sharing process */
#define RTP_PRIO_IDLE PRI_IDLE /* idle process */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 17, 7:39 PM (19 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15842597
Default Alt Text
D25660.diff (1 KB)
Attached To
Mode
D25660: Update to D25266 bin/ps: Make the rtprio option actually show realtime priorities
Attached
Detach File
Event Timeline
Log In to Comment