Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159249998
D54924.id170634.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
759 B
Referenced Files
None
Subscribers
None
D54924.id170634.diff
View Options
diff --git a/usr.bin/procstat/procstat_cs.c b/usr.bin/procstat/procstat_cs.c
--- a/usr.bin/procstat/procstat_cs.c
+++ b/usr.bin/procstat/procstat_cs.c
@@ -59,9 +59,11 @@
if (kip == NULL)
return;
kinfo_proc_sort(kip, count);
+ xo_open_list("threads");
for (i = 0; i < count; i++) {
kipp = &kip[i];
- xo_emit("{k:process_id/%5d/%d} ", kipp->ki_pid);
+ xo_open_instance("threads");
+ xo_emit("{:process_id/%5d/%d} ", kipp->ki_pid);
xo_emit("{:thread_id/%6d/%d} ", kipp->ki_tid);
xo_emit("{:command/%-19s/%s} ", strlen(kipp->ki_comm) ?
kipp->ki_comm : "-");
@@ -111,6 +113,8 @@
sbuf_delete(cpusetbuf);
}
xo_emit("\n");
+ xo_close_instance("threads");
}
+ xo_close_list("threads");
procstat_freeprocs(procstat, kip);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 12, 9:08 PM (14 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33915175
Default Alt Text
D54924.id170634.diff (759 B)
Attached To
Mode
D54924: procstat: nest the threads in the cpuset libxo output
Attached
Detach File
Event Timeline
Log In to Comment