Documentation ¶
Index ¶
- func GetFamilyFromRawAddr(addr map[string]string) (string, error)
- func GetIPFromRawAddr(addr map[string]string) (string, error)
- func GetPathFromRawAddr(addr map[string]string) (string, error)
- func GetPortFromRawAddr(addr map[string]string) (string, error)
- func GetProtoDNSByName(event trace.Event, argName string) (trace.ProtoDNS, error)
- func GetProtoHTTPByName(event trace.Event, argName string) (trace.ProtoHTTP, error)
- func GetProtoICMPByName(event trace.Event, argName string) (trace.ProtoICMP, error)
- func GetProtoICMPv6ByName(event trace.Event, argName string) (trace.ProtoICMPv6, error)
- func GetProtoIPv4ByName(event trace.Event, argName string) (trace.ProtoIPv4, error)
- func GetProtoIPv6ByName(event trace.Event, argName string) (trace.ProtoIPv6, error)
- func GetProtoTCPByName(event trace.Event, argName string) (trace.ProtoTCP, error)
- func GetProtoUDPByName(event trace.Event, argName string) (trace.ProtoUDP, error)
- func GetRawAddrArgumentByName(event trace.Event, argName string) (map[string]string, error)
- func GetTraceeArgumentByName(event trace.Event, argName string, opts GetArgOps) (trace.Argument, error)
- func GetTraceeBytesSliceArgumentByName(event trace.Event, argName string) ([]byte, error)
- func GetTraceeHookedSymbolDataArgumentByName(event trace.Event, argName string) ([]trace.HookedSymbolData, error)
- func GetTraceeIntArgumentByName(event trace.Event, argName string) (int, error)
- func GetTraceeSliceStringArgumentByName(event trace.Event, argName string) ([]string, error)
- func GetTraceeStringArgumentByName(event trace.Event, argName string) (string, error)
- func IsElf(bytesArray []byte) bool
- func IsFileRead(flags string) bool
- func IsFileWrite(flags string) bool
- func IsInternetFamily(addr map[string]string) (bool, error)
- func IsMemoryPath(pathname string) bool
- func IsUnixFamily(addr map[string]string) (bool, error)
- type GetArgOps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFamilyFromRawAddr ¶ added in v0.9.0
func GetIPFromRawAddr ¶ added in v0.9.0
func GetPathFromRawAddr ¶ added in v0.9.0
func GetPortFromRawAddr ¶ added in v0.9.0
func GetProtoDNSByName ¶ added in v0.10.0
GetProtoDNSByName converts json to ProtoDNS
func GetProtoHTTPByName ¶ added in v0.11.0
func GetProtoICMPByName ¶ added in v0.10.0
GetProtoICMPByName converts json to ProtoICMP
func GetProtoICMPv6ByName ¶ added in v0.10.0
GetProtoICMPv6ByName converts json to ProtoICMPv6
func GetProtoIPv4ByName ¶ added in v0.10.0
GetProtoIPv4ByName converts json to ProtoIPv4
func GetProtoIPv6ByName ¶ added in v0.10.0
GetProtoIPv6ByName converts json to ProtoIPv6
func GetProtoTCPByName ¶ added in v0.10.0
GetProtoTCPByName converts json to ProtoTCP
func GetProtoUDPByName ¶ added in v0.10.0
GetProtoUDPByName converts json to ProtoUDP
func GetRawAddrArgumentByName ¶ added in v0.9.0
GetRawAddrArgumentByName returns map[string]string of addr argument
func GetTraceeArgumentByName ¶
func GetTraceeArgumentByName(event trace.Event, argName string, opts GetArgOps) (trace.Argument, error)
GetTraceeArgumentByName fetches the argument in event with `Name` that matches argName
func GetTraceeBytesSliceArgumentByName ¶ added in v0.9.0
GetTraceeBytesSliceArgumentByName gets the argument matching the "argName" given from the event "argv" field, casted as []byte.
func GetTraceeHookedSymbolDataArgumentByName ¶ added in v0.9.0
func GetTraceeHookedSymbolDataArgumentByName(event trace.Event, argName string) ([]trace.HookedSymbolData, error)
GetTraceeHookedSymbolDataArgumentByName returns []trace.HookedSymbolData of hooked symbols for arg
func GetTraceeIntArgumentByName ¶ added in v0.9.0
GetTraceeIntArgumentByName gets the argument matching the "argName" given from the event "argv" field, casted as int.
func GetTraceeSliceStringArgumentByName ¶ added in v0.9.0
GetTraceeSliceStringArgumentByName gets the argument matching the "argName" given from the event "argv" field, casted as []string.
func GetTraceeStringArgumentByName ¶ added in v0.9.0
GetTraceeStringArgumentByName gets the argument matching the "argName" given from the event "argv" field, casted as string.
func IsFileRead ¶ added in v0.9.0
IsFileRead returns whether the passed file permissions string contains o_rdonly or o_rdwr
func IsFileWrite ¶
IsFileWrite returns whether the passed file permissions string contains o_wronly or o_rdwr
func IsMemoryPath ¶ added in v0.9.0
IsMemoryPath checks if a given file path is located under "memfd", "/run/shm/" or "/dev/shm/".