You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lnav/src/formats/strace_log.json

47 lines
1.5 KiB
JSON

{
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
"strace_log": {
"title": "Strace",
"description": "The strace output format.",
"url": "http://en.wikipedia.org/wiki/Strace",
"multiline": false,
"regex": {
"std": {
"pattern": "^(?<timestamp>\\d{2}:\\d{2}:\\d{2}\\.\\d{6}|\\d+\\.\\d{6}) (?<syscall>\\w+)\\((?<body>.*)\\)\\s+=\\s+(?<rc>[-\\w]+)(?: (?<errno>\\w+) \\([^\\)]+\\))?(?: <(?<duration>\\d+\\.\\d+)>)?$"
}
},
"level-field": "errno",
"level": {
"error": ".+"
},
"value": {
"syscall": {
"kind": "string",
"identifier": true,
"rewriter": ":pipe-line-to explain-syscall.sh ${syscall}"
},
"rc": {
"kind": "integer",
"foreign-key": true
},
"duration": {
"kind": "float"
},
"errno": {
"kind": "string",
"identifier": true
}
},
"sample": [
{
"line": "08:09:33.814936 execve(\"/bin/ls\", [\"ls\"], [/* 38 vars */]) = 0 <0.000264>"
},
{
"line": "08:09:33.815943 access(\"/etc/ld.so.nohwcap\", F_OK) = -1 ENOENT (No such file or directory) <0.000019>"
},
{
"line": "1695668091.895450 execve(\"/tmp/lnav\", [\"/tmp/lnav\"], [/* 21 vars */]) = 0"
}
]
}
}