Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177565382
D54924.1794748863.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
759 B
Referenced Files
None
Subscribers
None
D54924.1794748863.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
Sun, Nov 15, 1:21 PM (14 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41737136
Default Alt Text
D54924.1794748863.diff (759 B)
Attached To
Mode
D54924: procstat: nest the threads in the cpuset libxo output
Attached
Detach File
Event Timeline