Commit Graph

12 Commits (7ea8062810b6e3076ab6c4b40d6f24421e92a889)

Author SHA1 Message Date
shirou 7ea8062810
Merge pull request #1083 from elmeyer/fix-processes-smartos
process, v3/process (Linux): fix Processes in SmartOS lx containers
4 years ago
Lars Meyer 0ab3954dc4 [process][linux] fix Processes in SmartOS lx containers
In Linux containers running in LX Branded Zones on SmartOS (potentially
other Solaris-based OSes with LX Branded Zones),
fillFromTIDStatWithContext panics as the delayacct_blkio_ticks field is
not present and thus results in an out-of-bounds slice access.
Check the slice length before and only attempt to parse the
delayacct_blkio_ticks field if there is an appropriate number of fields.
4 years ago
Tobias Klauser 611c8b576e process, v3/process: use SC_CLK_TCK sysconf value instead of hard-coding clock ticks
The github.com/tklauser/go-sysconf package is already a dependency used
in the cpu and v3/cpu packages to determine clock ticks using
`sysconf.Sysconf(sysconf.SC_CLK_TCK)`, see #1036. Use the same in
packages process and v3/process as well instead of hard-coding clock
ticks to 100.
4 years ago
Sergey Kacheev 44d3907f9d
Merge branch 'master' into splitProcStat 4 years ago
shirou 008b5a41ef
Merge pull request #1060 from heptalium/master
Fix fillFromStatusWithContext() on systems with 128 bit signal masks.
4 years ago
Jens Meißner 14a1f64e7e
[v3][process][linux] Fix fillFromStatusWithContext() on systems with 128 bit signal masks. 4 years ago
Damilola Bello 61c36c7b8c Make limitToUint parse to uint instead of int 4 years ago
Sergey Kacheev 306f6d104b add a reliable way to get fields from /prod/PID/stat 4 years ago
shirou a5a07ae83c [process][linux] apply #1033 to v3. 4 years ago
Rishabh Arya 5b1d8ecae7 fix smap parser 4 years ago
shirou b7e74218ca [v3 migration] change process.Status returns []string with no letter status string. 4 years ago
shirou 005a35c436 [v3 migartion] add v3 sourcodes, and change disk.opts to []string 4 years ago