[Bug 213478] procstat --libxo produces non-compliant JSON and XML output
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Oct 14 15:31:08 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213478
Bug ID: 213478
Summary: procstat --libxo produces non-compliant JSON and XML
output
Product: Base System
Version: 10.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: standards
Assignee: freebsd-standards at FreeBSD.org
Reporter: dpslavov at hotmail.com
Just tried the new functionality for machine readable output of "procstat" and
found two issues with non standard compliant output generated for JSON and XML
formats. Suppose that this is an issue with "libxo" library, not "procstat" but
didn't dig further.
For JSON output hexadecimal numbers are printed as normal numbers while JSON
standard says that numbers can be only decimal digits, in my opinion they needs
to be printed as strings. Here is example output showing the issue:
# procstat --libxo:PJ -v 841
{
"__version": "1",
"procstat": {
"vm": {
"841": {
"process_id": 841,
"vm": [
{
"kve_start": 0x400000,
"kve_end": 0x8f9000,
...
For XML output PID is used as name the element while XML element name must
start with letter or underscore. Here is an example:
<procstat __version="1">
<vm>
<841>
<process_id>841</process_id>
<vm>
...
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-standards
mailing list