# Functions
GetMajMinNumOfDevice is used for getting major:minor device number.
GoroutinesFromStack returns the Goroutine by the stack information.
ParseCgroupFile parse cgroup path from cgroup file.
PartialEqual is used for check if string 'obtain' has substring 'expect', return can be used in check.Assert() or somewhere else.
StringSliceTrimSpace delete empty items from string slice.
TmpFileWithContent provide tmp file.
TrimAllSpaceAndNewline is used to strip all empty space and newline from a string.
WaitTimeout wait at most timeout nanoseconds, until the condition become true or timeout reached.