mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-02 07:07:33 -04:00
unix: add taskstats type and constants on Linux
Taskstats is a netlink-based interface for sending per-task and per-process statistics from the kernel to userspace. For more information, please see: https://www.kernel.org/doc/Documentation/accounting/taskstats.txt. Fixes golang/go#21616. Change-Id: I7d4b8035aa8e993074d61911d9a8c3a3e61c9b2e Reviewed-on: https://go-review.googlesource.com/59050 Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
@@ -1629,6 +1629,12 @@ const (
|
||||
TAB2 = 0x1000
|
||||
TAB3 = 0x1800
|
||||
TABDLY = 0x1800
|
||||
TASKSTATS_CMD_ATTR_MAX = 0x4
|
||||
TASKSTATS_CMD_MAX = 0x2
|
||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||
TASKSTATS_GENL_VERSION = 0x1
|
||||
TASKSTATS_TYPE_MAX = 0x6
|
||||
TASKSTATS_VERSION = 0x8
|
||||
TCFLSH = 0x5407
|
||||
TCGETA = 0x5401
|
||||
TCGETS = 0x540d
|
||||
@@ -1769,6 +1775,7 @@ const (
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TOSTOP = 0x8000
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x801054d5
|
||||
TUNDETACHFILTER = 0x801054d6
|
||||
TUNGETFEATURES = 0x400454cf
|
||||
|
||||
Reference in New Issue
Block a user