MCPcopy Create free account

hub / github.com/Gui774ume/fsprobe / functions

Functions251 in github.com/Gui774ume/fsprobe

↓ 1 callersMethodaddWatch
addWatch - Updates the eBPF hashmaps to look for the provided paths
pkg/fsprobe/fsprobe.go:228
↓ 1 callersFunctionbindataProbeOBytes
()
pkg/assets/probe.go:83
↓ 1 callersFunctionbindataRead
(data []byte, name string)
pkg/assets/probe.go:20
↓ 1 callersMethodclearWake
()
pkg/inotify/inotify_poller.go:162
↓ 1 callersFunctionemptyPoller
(fd int)
pkg/inotify/inotify_poller.go:21
↓ 1 callersFunctionfilter_src
ebpf/filter.h:22
↓ 1 callersFunctionfilter_target
ebpf/filter.h:37
↓ 1 callersFunctiongetHostByteOrder
()
pkg/utils/utils.go:150
↓ 1 callersFunctionget_inode_ino
get_inode_ino - Returns the inode number of an inode structure
ebpf/dentry.h:28
↓ 1 callersMethodignoreLinux
Certain types of events can be "ignored" and not sent over the Events channel. Such as events marked ignore by the kernel, or MODIFY events against fi
pkg/inotify/inotify.go:300
↓ 1 callersMethodinit
init - Initializes the NetworkSecurityProbe
pkg/fsprobe/fsprobe.go:141
↓ 1 callersFunctionisBigEndian
()
pkg/utils/utils.go:144
↓ 1 callersMethodlisten
listen - Listen for new events from the kernel
pkg/model/perfmap.go:87
↓ 1 callersMethodloadEBPFProgram
loadEBPFProgram - Loads the compiled eBPF programs
pkg/fsprobe/fsprobe.go:182
↓ 1 callersFunctionload_follow_mode
load_follow_mode - Loads the follow mode
ebpf/const.h:36
↓ 1 callersFunctionload_inode_filtering_mode
load_inode_filtering_mode - Loads the inode filtering mode
ebpf/const.h:29
↓ 1 callersFunctionload_recursive_mode
load_recursive_mode - Loads the recursive mode
ebpf/const.h:43
↓ 1 callersFunctionnewEvent
newEvent returns an platform-independent Event based on an inotify mask.
pkg/inotify/inotify.go:319
↓ 1 callersFunctionnewFdPoller
Create a new inotify poller. This creates an inotify handler, and an epoll handler.
pkg/inotify/inotify_poller.go:32
↓ 1 callersFunctionnewOutputWriter
(options CLIOptions)
cmd/fsprobe/cmd/output.go:110
↓ 1 callersFunctionpollLost
(lostChan chan *model.LostEvt)
tests/open_test.go:91
↓ 1 callersMethodpollStart
()
pkg/model/perfmap.go:69
↓ 1 callersMethodpollStop
pollStop - Stop a perf map listener
pkg/model/perfmap.go:116
↓ 1 callersMethodreadEvents
readEvents reads from the inotify file descriptor, converts the received events into Event objects and sends them via the Events channel
pkg/inotify/inotify.go:172
↓ 1 callersMethodremoveUnusedMaps
removeUnusedMaps - Removes unused maps in the collectionSpec so that we use less kernel memory
pkg/fsprobe/fsprobe.go:360
↓ 1 callersFunctionresolvePaths
resolvePaths - Resolves the paths of the event according to the configured method
pkg/model/events.go:92
↓ 1 callersFunctionresolve_fragments
resolve_fragments - Resolves the paths of an event using the multiple fragments method. This method creates an entry in a hashmap for each parent of t
ebpf/dentry.h:285
↓ 1 callersFunctionresolve_perf_buffer
resolve_perf_buffer - Resolves the paths of an event using the perf buffer method. This method resolves the paths directly in the buffer of the event
ebpf/dentry.h:250
↓ 1 callersFunctionresolve_single_fragment
resolve_single_fragment - Resolves the paths of an event using the single fragment method. This method resolves the each path in one entry of the sing
ebpf/dentry.h:319
↓ 1 callersFunctionsanitizeOptions
sanitizeOptions - Sanitizes the provided options
cmd/fsprobe/cmd/fsprobe.go:68
↓ 1 callersMethodstart
()
pkg/inotify/recursive_inotify.go:95
↓ 1 callersMethodstart
setup - runs the setup steps to start fsprobe
pkg/fsprobe/fsprobe.go:124
↓ 1 callersMethodstartMonitors
startMonitors - Loads and attaches the eBPF program in the kernel
pkg/fsprobe/fsprobe.go:209
↓ 1 callersFunctiontrace_link
trace_link - Traces a file system link event. @ctx: registers context @old_dentry: pointer to the dentry structure of the source file @new_dir: pointe
ebpf/events/link.h:24
↓ 1 callersFunctiontrace_link_ret
trace_link_ret - Traces the return of a file system link event. @ctx: registers context
ebpf/events/link.h:65
↓ 1 callersFunctiontrace_mkdir
trace_mkdir - Traces a file system mkdir event. @ctx: registers context @dir: pointer to the inode of the containing directory @dentry: pointer to the
ebpf/events/mkdir.h:24
↓ 1 callersFunctiontrace_mkdir_ret
trace_mkdir_ret - Traces the return of a file system mkdir event. @ctx: registers context
ebpf/events/mkdir.h:59
↓ 1 callersFunctiontrace_modify
trace_modify - Traces a file modification event. @ctx: registers context @dentry: pointer to the dentry of the file
ebpf/events/modify.h:22
↓ 1 callersFunctiontrace_modify_ret
trace_modify_ret - Traces the return of a file modification event. @ctx: registers context
ebpf/events/modify.h:62
↓ 1 callersFunctiontrace_open
trace_open - Traces a file system open event. @ctx: registers context @path: pointer to the file path structure
ebpf/events/open.h:22
↓ 1 callersFunctiontrace_open_ret
trace_open_ret - Traces the return of a file system open event. @ctx: registers context
ebpf/events/open.h:60
↓ 1 callersFunctiontrace_rename
trace_rename - Traces a file system rename event. @ctx: registers context @old_dentry: pointer to the dentry structure of the source file @new_dir: po
ebpf/events/rename.h:24
↓ 1 callersFunctiontrace_rename_ret
trace_rename_ret - Traces the return of a file system rename event. @ctx: registers context
ebpf/events/rename.h:63
↓ 1 callersFunctiontrace_rmdir
trace_rmdir - Traces a file system rmdir event. @ctx: registers context @dir: pointer to the directory that contains the directory to delete @dentry:
ebpf/events/rmdir.h:23
↓ 1 callersFunctiontrace_rmdir_ret
trace_rmdir_ret - Traces the return of a file system rmdir event. @ctx: registers context
ebpf/events/rmdir.h:57
↓ 1 callersFunctiontrace_setattr
trace_security_inode_setattr - Traces a file system setattr event. @ctx: registers context @dentry: pointer to the dentry of the file @attr: pointer t
ebpf/events/setattr.h:23
↓ 1 callersFunctiontrace_setattr_ret
trace_setattr_ret - Traces the return of a file system setattr event. @ctx: registers context
ebpf/events/setattr.h:63
↓ 1 callersFunctiontrace_unlink
trace_unlink - Traces a file system unlink event. @ctx: registers context @dir: pointer to the inode structure of the directory containing the file to
ebpf/events/unlink.h:23
↓ 1 callersFunctiontrace_unlink_ret
trace_unlink_ret - Traces the return of a file system unlink event. @ctx: registers context
ebpf/events/unlink.h:57
↓ 1 callersFunctionwait
wait - Waits until an interrupt or kill signal is sent
cmd/fsprobe/cmd/fsprobe.go:79
↓ 1 callersMethodwait
Wait using epoll. Returns true if something is ready to be read, false if there is not.
pkg/inotify/inotify_poller.go:79
↓ 1 callersMethodwake
Close the write end of the poller.
pkg/inotify/inotify_poller.go:149
↓ 1 callersFunctionwrite_inode_ino
write_inode_ino - Writes the inode number of an inode structure
ebpf/dentry.h:36
↓ 1 callersFunctionwrite_inode_short_ino
write_inode_short_ino - Writes the inode number of an inode structure
ebpf/dentry.h:42
MethodAddCacheEntry
AddCacheEntry - Adds a new entry in the user space cache
pkg/model/resolver.go:188
MethodAddCacheEntry
AddCacheEntry - Adds a new entry in the user space cache
pkg/model/resolver.go:300
MethodAddCacheEntry
AddCacheEntry - Adds a new entry in the LRU cache
pkg/model/resolver.go:364
FunctionAssetNames
AssetNames returns the names of the assets. nolint: deadcode
pkg/assets/probe.go:163
FunctionBenchmarkFSProbeFragmentsOpen
(b *testing.B)
tests/open_test.go:139
FunctionBenchmarkFSProbePerfBufferOpen
(b *testing.B)
tests/open_test.go:122
FunctionBenchmarkFSProbeSingleFragmentOpen
(b *testing.B)
tests/open_test.go:156
FunctionBenchmarkOpen
(b *testing.B)
tests/open_test.go:104
FunctionBenchmarkPerfBufferSize
(b *testing.B)
tests/open_test.go:173
FunctionBytes
Bytes - No copy string to bytes conversion
pkg/utils/utils.go:179
MethodGetBootTime
GetBootTime - Returns the boot time of fsprobe
pkg/fsprobe/fsprobe.go:90
FunctionGetCgroupFromPid
GetCgroupFromPid - Returns the cgroup of a process
pkg/utils/utils.go:105
MethodGetCollection
GetCollection - Returns the eBPF collection of fsprobe
pkg/fsprobe/fsprobe.go:85
FunctionGetCommFromPid
GetCommFromPid - Returns the comm of a process
pkg/utils/utils.go:114
FunctionGetHostByteOrder
GetHostByteOrder - Returns the host byte order
pkg/utils/utils.go:137
MethodGetHostPidns
GetHostPidns - Returns the host pidns of fsprobe
pkg/fsprobe/fsprobe.go:95
MethodGetKeyBytes
()
pkg/model/resolver.go:210
FunctionGetMntnsFromPid
GetMntnsFromPid - Returns the mount namespace of a process
pkg/utils/utils.go:96
FunctionGetNetnsFromPid
GetNetnsFromPid - Returns the network namespace of a process
pkg/utils/utils.go:78
MethodGetOptions
GetOptions - Returns the config of fsprobe
pkg/fsprobe/fsprobe.go:80
FunctionGetPpid
GetPpid is a fallback to read the parent PID from /proc. Some kernel versions, like 4.13.0 return 0 getting the parent PID from the current task, so w
pkg/utils/utils.go:36
MethodGetString
GetString - Returns the path as a string
pkg/model/resolver.go:234
FunctionGetUsernsFromPid
GetUsernsFromPid - Returns the user namespace of a process
pkg/utils/utils.go:87
MethodGetWaitGroup
GetWaitGroup - Returns the wait group of fsprobe
pkg/fsprobe/fsprobe.go:75
FunctionHandleFSEvent
HandleFSEvent - Handles a file system event
pkg/fsprobe/monitor/fs/fs.go:245
MethodInit
Init - Initializes the monitor
pkg/model/monitor.go:80
MethodInit
Init - Initializes perfmap
pkg/model/perfmap.go:45
FunctionInterfaceToBytes
InterfaceToBytes - Tranforms an interface into a C bytes array
pkg/utils/utils.go:128
MethodIsNull
()
pkg/model/resolver.go:216
FunctionLostFSEvent
LostFSEvent - Handles a LostEvent
pkg/fsprobe/monitor/fs/fs.go:234
MethodMD5Checksum
()
pkg/assets/probe.go:48
MethodMD5Checksum
()
pkg/assets/probe.go:71
FunctionMustAsset
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables. nolint: deadcode
pkg/assets/probe.go:134
MethodRead
Read - Reads the provided data into the buffer
pkg/model/resolver.go:88
MethodRead
Read - Reads the provided data into the buffer
pkg/model/resolver.go:229
MethodRemove
Remove stops watching the named file or directory (non-recursively).
pkg/inotify/inotify.go:126
MethodRemoveEntry
RemoveEntry - Removes an entry from the cache
pkg/model/resolver.go:193
MethodRemoveEntry
RemoveEntry - Removes an entry from the cache
pkg/model/resolver.go:305
MethodRemoveEntry
RemoveEntry - Removes an entry from the cache
pkg/model/resolver.go:378
MethodRemoveInode
RemoveInode - Removes a pathname from the kernel cache using the provided mount id and inode
pkg/model/resolver.go:171
MethodRemoveInode
RemoveInode - Removes a pathname from the kernel cache using the provided mount id and inode
pkg/model/resolver.go:266
MethodRemoveInode
RemoveInode - Removes a pathname from the kernel cache using the provided mount id and inode
pkg/model/resolver.go:346
MethodRemoveRecursive
RemoveRecursive stops watching the named directory and all sub-directories.
pkg/inotify/recursive_inotify.go:78
MethodResolveInode
ResolveInode - Resolves a pathname from the provided mount id and inode
pkg/model/resolver.go:126
MethodResolveInode
ResolveInode - Does nothing
pkg/model/resolver.go:261
MethodResolveInode
ResolveInode - Does nothing
pkg/model/resolver.go:341
← previousnext →101–200 of 251, ranked by callers