Provide access to /proc/PID/task/TID files, for thread specific values. Since such files have the same structure as /proc/PID/ ones, the data structures and the parsers for the latter may be reused. AllThreads returns a list of all currently available threads under /proc/PID.
(pid int)
| 27 | |
| 28 | // AllThreads returns a list of all currently available threads under /proc/PID. |
| 29 | func AllThreads(pid int) (Procs, error) { |
| 30 | fs, err := NewFS(DefaultMountPoint) |
| 31 | if err != nil { |
| 32 | return Procs{}, err |
| 33 | } |
| 34 | return fs.AllThreads(pid) |
| 35 | } |
| 36 | |
| 37 | // AllThreads returns a list of all currently available threads for PID. |
| 38 | func (fs FS) AllThreads(pid int) (Procs, error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…