Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gui774ume/fsprobe
/ functions
Functions
251 in github.com/Gui774ume/fsprobe
⨍
Functions
251
◇
Types & classes
136
↓ 1 callers
Method
addWatch
addWatch - Updates the eBPF hashmaps to look for the provided paths
pkg/fsprobe/fsprobe.go:228
↓ 1 callers
Function
bindataProbeOBytes
()
pkg/assets/probe.go:83
↓ 1 callers
Function
bindataRead
(data []byte, name string)
pkg/assets/probe.go:20
↓ 1 callers
Method
clearWake
()
pkg/inotify/inotify_poller.go:162
↓ 1 callers
Function
emptyPoller
(fd int)
pkg/inotify/inotify_poller.go:21
↓ 1 callers
Function
filter_src
ebpf/filter.h:22
↓ 1 callers
Function
filter_target
ebpf/filter.h:37
↓ 1 callers
Function
getHostByteOrder
()
pkg/utils/utils.go:150
↓ 1 callers
Function
get_inode_ino
get_inode_ino - Returns the inode number of an inode structure
ebpf/dentry.h:28
↓ 1 callers
Method
ignoreLinux
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 callers
Method
init
init - Initializes the NetworkSecurityProbe
pkg/fsprobe/fsprobe.go:141
↓ 1 callers
Function
isBigEndian
()
pkg/utils/utils.go:144
↓ 1 callers
Method
listen
listen - Listen for new events from the kernel
pkg/model/perfmap.go:87
↓ 1 callers
Method
loadEBPFProgram
loadEBPFProgram - Loads the compiled eBPF programs
pkg/fsprobe/fsprobe.go:182
↓ 1 callers
Function
load_follow_mode
load_follow_mode - Loads the follow mode
ebpf/const.h:36
↓ 1 callers
Function
load_inode_filtering_mode
load_inode_filtering_mode - Loads the inode filtering mode
ebpf/const.h:29
↓ 1 callers
Function
load_recursive_mode
load_recursive_mode - Loads the recursive mode
ebpf/const.h:43
↓ 1 callers
Function
newEvent
newEvent returns an platform-independent Event based on an inotify mask.
pkg/inotify/inotify.go:319
↓ 1 callers
Function
newFdPoller
Create a new inotify poller. This creates an inotify handler, and an epoll handler.
pkg/inotify/inotify_poller.go:32
↓ 1 callers
Function
newOutputWriter
(options CLIOptions)
cmd/fsprobe/cmd/output.go:110
↓ 1 callers
Function
pollLost
(lostChan chan *model.LostEvt)
tests/open_test.go:91
↓ 1 callers
Method
pollStart
()
pkg/model/perfmap.go:69
↓ 1 callers
Method
pollStop
pollStop - Stop a perf map listener
pkg/model/perfmap.go:116
↓ 1 callers
Method
readEvents
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 callers
Method
removeUnusedMaps
removeUnusedMaps - Removes unused maps in the collectionSpec so that we use less kernel memory
pkg/fsprobe/fsprobe.go:360
↓ 1 callers
Function
resolvePaths
resolvePaths - Resolves the paths of the event according to the configured method
pkg/model/events.go:92
↓ 1 callers
Function
resolve_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 callers
Function
resolve_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 callers
Function
resolve_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 callers
Function
sanitizeOptions
sanitizeOptions - Sanitizes the provided options
cmd/fsprobe/cmd/fsprobe.go:68
↓ 1 callers
Method
start
()
pkg/inotify/recursive_inotify.go:95
↓ 1 callers
Method
start
setup - runs the setup steps to start fsprobe
pkg/fsprobe/fsprobe.go:124
↓ 1 callers
Method
startMonitors
startMonitors - Loads and attaches the eBPF program in the kernel
pkg/fsprobe/fsprobe.go:209
↓ 1 callers
Function
trace_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 callers
Function
trace_link_ret
trace_link_ret - Traces the return of a file system link event. @ctx: registers context
ebpf/events/link.h:65
↓ 1 callers
Function
trace_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 callers
Function
trace_mkdir_ret
trace_mkdir_ret - Traces the return of a file system mkdir event. @ctx: registers context
ebpf/events/mkdir.h:59
↓ 1 callers
Function
trace_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 callers
Function
trace_modify_ret
trace_modify_ret - Traces the return of a file modification event. @ctx: registers context
ebpf/events/modify.h:62
↓ 1 callers
Function
trace_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 callers
Function
trace_open_ret
trace_open_ret - Traces the return of a file system open event. @ctx: registers context
ebpf/events/open.h:60
↓ 1 callers
Function
trace_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 callers
Function
trace_rename_ret
trace_rename_ret - Traces the return of a file system rename event. @ctx: registers context
ebpf/events/rename.h:63
↓ 1 callers
Function
trace_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 callers
Function
trace_rmdir_ret
trace_rmdir_ret - Traces the return of a file system rmdir event. @ctx: registers context
ebpf/events/rmdir.h:57
↓ 1 callers
Function
trace_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 callers
Function
trace_setattr_ret
trace_setattr_ret - Traces the return of a file system setattr event. @ctx: registers context
ebpf/events/setattr.h:63
↓ 1 callers
Function
trace_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 callers
Function
trace_unlink_ret
trace_unlink_ret - Traces the return of a file system unlink event. @ctx: registers context
ebpf/events/unlink.h:57
↓ 1 callers
Function
wait
wait - Waits until an interrupt or kill signal is sent
cmd/fsprobe/cmd/fsprobe.go:79
↓ 1 callers
Method
wait
Wait using epoll. Returns true if something is ready to be read, false if there is not.
pkg/inotify/inotify_poller.go:79
↓ 1 callers
Method
wake
Close the write end of the poller.
pkg/inotify/inotify_poller.go:149
↓ 1 callers
Function
write_inode_ino
write_inode_ino - Writes the inode number of an inode structure
ebpf/dentry.h:36
↓ 1 callers
Function
write_inode_short_ino
write_inode_short_ino - Writes the inode number of an inode structure
ebpf/dentry.h:42
Method
AddCacheEntry
AddCacheEntry - Adds a new entry in the user space cache
pkg/model/resolver.go:188
Method
AddCacheEntry
AddCacheEntry - Adds a new entry in the user space cache
pkg/model/resolver.go:300
Method
AddCacheEntry
AddCacheEntry - Adds a new entry in the LRU cache
pkg/model/resolver.go:364
Function
AssetNames
AssetNames returns the names of the assets. nolint: deadcode
pkg/assets/probe.go:163
Function
BenchmarkFSProbeFragmentsOpen
(b *testing.B)
tests/open_test.go:139
Function
BenchmarkFSProbePerfBufferOpen
(b *testing.B)
tests/open_test.go:122
Function
BenchmarkFSProbeSingleFragmentOpen
(b *testing.B)
tests/open_test.go:156
Function
BenchmarkOpen
(b *testing.B)
tests/open_test.go:104
Function
BenchmarkPerfBufferSize
(b *testing.B)
tests/open_test.go:173
Function
Bytes
Bytes - No copy string to bytes conversion
pkg/utils/utils.go:179
Method
GetBootTime
GetBootTime - Returns the boot time of fsprobe
pkg/fsprobe/fsprobe.go:90
Function
GetCgroupFromPid
GetCgroupFromPid - Returns the cgroup of a process
pkg/utils/utils.go:105
Method
GetCollection
GetCollection - Returns the eBPF collection of fsprobe
pkg/fsprobe/fsprobe.go:85
Function
GetCommFromPid
GetCommFromPid - Returns the comm of a process
pkg/utils/utils.go:114
Function
GetHostByteOrder
GetHostByteOrder - Returns the host byte order
pkg/utils/utils.go:137
Method
GetHostPidns
GetHostPidns - Returns the host pidns of fsprobe
pkg/fsprobe/fsprobe.go:95
Method
GetKeyBytes
()
pkg/model/resolver.go:210
Function
GetMntnsFromPid
GetMntnsFromPid - Returns the mount namespace of a process
pkg/utils/utils.go:96
Function
GetNetnsFromPid
GetNetnsFromPid - Returns the network namespace of a process
pkg/utils/utils.go:78
Method
GetOptions
GetOptions - Returns the config of fsprobe
pkg/fsprobe/fsprobe.go:80
Function
GetPpid
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
Method
GetString
GetString - Returns the path as a string
pkg/model/resolver.go:234
Function
GetUsernsFromPid
GetUsernsFromPid - Returns the user namespace of a process
pkg/utils/utils.go:87
Method
GetWaitGroup
GetWaitGroup - Returns the wait group of fsprobe
pkg/fsprobe/fsprobe.go:75
Function
HandleFSEvent
HandleFSEvent - Handles a file system event
pkg/fsprobe/monitor/fs/fs.go:245
Method
Init
Init - Initializes the monitor
pkg/model/monitor.go:80
Method
Init
Init - Initializes perfmap
pkg/model/perfmap.go:45
Function
InterfaceToBytes
InterfaceToBytes - Tranforms an interface into a C bytes array
pkg/utils/utils.go:128
Method
IsNull
()
pkg/model/resolver.go:216
Function
LostFSEvent
LostFSEvent - Handles a LostEvent
pkg/fsprobe/monitor/fs/fs.go:234
Method
MD5Checksum
()
pkg/assets/probe.go:48
Method
MD5Checksum
()
pkg/assets/probe.go:71
Function
MustAsset
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
Method
Read
Read - Reads the provided data into the buffer
pkg/model/resolver.go:88
Method
Read
Read - Reads the provided data into the buffer
pkg/model/resolver.go:229
Method
Remove
Remove stops watching the named file or directory (non-recursively).
pkg/inotify/inotify.go:126
Method
RemoveEntry
RemoveEntry - Removes an entry from the cache
pkg/model/resolver.go:193
Method
RemoveEntry
RemoveEntry - Removes an entry from the cache
pkg/model/resolver.go:305
Method
RemoveEntry
RemoveEntry - Removes an entry from the cache
pkg/model/resolver.go:378
Method
RemoveInode
RemoveInode - Removes a pathname from the kernel cache using the provided mount id and inode
pkg/model/resolver.go:171
Method
RemoveInode
RemoveInode - Removes a pathname from the kernel cache using the provided mount id and inode
pkg/model/resolver.go:266
Method
RemoveInode
RemoveInode - Removes a pathname from the kernel cache using the provided mount id and inode
pkg/model/resolver.go:346
Method
RemoveRecursive
RemoveRecursive stops watching the named directory and all sub-directories.
pkg/inotify/recursive_inotify.go:78
Method
ResolveInode
ResolveInode - Resolves a pathname from the provided mount id and inode
pkg/model/resolver.go:126
Method
ResolveInode
ResolveInode - Does nothing
pkg/model/resolver.go:261
Method
ResolveInode
ResolveInode - Does nothing
pkg/model/resolver.go:341
← previous
next →
101–200 of 251, ranked by callers