Documentation ¶
Overview ¶
Package sxid provides the NVIDIA SXID error details.
Index ¶
Constants ¶
View Source
const ( // e.g., // [111111111.111] nvidia-nvswitch3: SXid (PCI:0000:05:00.0): 12028, Non-fatal, Link 32 egress non-posted PRIV error (First) // [131453.740743] nvidia-nvswitch0: SXid (PCI:0000:00:00.0): 20034, Fatal, Link 30 LTSSM Fault Up // // ref. // "D.4 Non-Fatal NVSwitch SXid Errors" // https://docs.nvidia.com/datacenter/tesla/pdf/fabric-manager-user-guide.pdf RegexNVSwitchSXidDmesg = `SXid.*?: (\d+),` )
Variables ¶
View Source
var CompiledRegexNVSwitchSXidDmesg = regexp.MustCompile(RegexNVSwitchSXidDmesg)
Functions ¶
func ExtractNVSwitchSXid ¶
Extracts the nvidia NVSwitch SXid error code from the dmesg log line. Returns 0 if the error code is not found. https://docs.nvidia.com/datacenter/tesla/pdf/fabric-manager-user-guide.pdf
Types ¶
type Detail ¶
type Detail struct { ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` PotentialFatal bool `json:"potential_fatal"` AlwaysFatal bool `json:"always_fatal"` Impact string `json:"impact"` Recovery string `json:"recovery"` OtherImpact string `json:"other_impact"` }
Defines the SXID error type. ref. https://docs.nvidia.com/datacenter/tesla/pdf/fabric-manager-user-guide.pdf
type DmesgError ¶
type DmesgError struct { Detail *Detail `json:"detail,omitempty"` DetailFound bool `json:"detail_found"` LogItem query_log.Item `json:"log_item"` }
func ParseDmesgErrorJSON ¶
func ParseDmesgErrorJSON(data []byte) (*DmesgError, error)
func ParseDmesgErrorYAML ¶
func ParseDmesgErrorYAML(data []byte) (*DmesgError, error)
func ParseDmesgLogLine ¶
func ParseDmesgLogLine(line string) (DmesgError, error)
func (*DmesgError) JSON ¶
func (de *DmesgError) JSON() ([]byte, error)
func (*DmesgError) YAML ¶
func (de *DmesgError) YAML() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.