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
↓ 14 callers
Function
get_dentry_ino
get_dentry_ino - Returns the inode number of the inode designated by the provided dentry
ebpf/dentry.h:113
↓ 10 callers
Function
filter
ebpf/filter.h:52
↓ 10 callers
Function
resolve_paths
resolve_paths - Resolves the requested paths following to the resolution mode. @ctx: pointer to the registers context structure used to send the perf
ebpf/dentry.h:366
↓ 9 callers
Method
Close
Close removes all watches and closes the events channel.
pkg/inotify/inotify.go:73
↓ 9 callers
Function
get_inode_mount_id
get_inode_mount_id - Returns the mount id of an inode structure
ebpf/dentry.h:48
↓ 8 callers
Function
fill_process_data
fill_process_data - Fills the provided process_ctx_t with the process context available from eBPF
ebpf/process.h:35
↓ 7 callers
Method
Read
(buffer []byte)
pkg/model/resolver.go:64
↓ 5 callers
Method
String
()
pkg/model/resolver.go:78
↓ 5 callers
Method
Write
(event *model.FSEvent)
cmd/fsprobe/cmd/output.go:107
↓ 5 callers
Function
getNamespaceID
getNamespaceID - Returns the namespace id in brackets
pkg/utils/utils.go:56
↓ 4 callers
Method
Add
Add starts watching the named file or directory (non-recursively).
pkg/inotify/inotify.go:91
↓ 4 callers
Method
Close
Close - Delete all generated files and folders
tests/paths_generator.go:99
↓ 4 callers
Method
GetKeyBytes
()
pkg/model/resolver.go:58
↓ 4 callers
Method
GetMap
GetMap - Returns the map at the provided section
pkg/model/monitor.go:75
↓ 4 callers
Method
IsDir
()
pkg/assets/probe.go:74
↓ 4 callers
Method
IsNull
()
pkg/model/resolver.go:70
↓ 4 callers
Method
RemoveEntry
(key uint32)
pkg/model/resolver.go:37
↓ 4 callers
Method
ResolveKey
(key uint32, length uint32)
pkg/model/resolver.go:36
↓ 4 callers
Method
Set
(mountID uint32, inode uint64)
pkg/model/resolver.go:47
↓ 4 callers
Function
benchmarkFSProbe
(b *testing.B, options model.FSProbeOptions, pg *PathsGenerator)
tests/open_test.go:56
↓ 4 callers
Function
build_path
build_path - Builds the entire path of the provided dentry at the "cursor" offset in the path_builder buffer. @path_builder: pointer to the fs event w
ebpf/dentry.h:142
↓ 4 callers
Function
decodePath
decodePath - Decode the raw path provided by the kernel
pkg/model/events.go:186
↓ 4 callers
Function
get_dentry_inode
get_dentry_inode - Returns the inode structure designated by the provided dentry
ebpf/dentry.h:65
↓ 4 callers
Method
isClosed
()
pkg/inotify/inotify.go:63
↓ 3 callers
Method
AddCacheEntry
(key uint32, value interface{})
pkg/model/resolver.go:38
↓ 3 callers
Function
Asset
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
pkg/assets/probe.go:117
↓ 3 callers
Method
GetName
GetName - Returns the name of the monitor
pkg/model/monitor.go:70
↓ 3 callers
Method
RemoveInode
(mountID uint32, inode uint64)
pkg/model/resolver.go:35
↓ 3 callers
Method
Sys
()
pkg/assets/probe.go:77
↓ 3 callers
Function
_filePath
(dir, name string)
pkg/assets/probe.go:273
↓ 3 callers
Method
watchInode
watchInode - Adds an inode the in the resolver cache
pkg/fsprobe/fsprobe.go:304
↓ 3 callers
Method
watchRecursive
watchRecursive adds all directories under the given one to the watch list. this is probably a very racey process. What if a file is added to a folder
pkg/inotify/recursive_inotify.go:127
↓ 2 callers
Method
GetString
GetString - Returns the path as a string
pkg/model/resolver.go:101
↓ 2 callers
Method
Init
()
tests/paths_generator.go:39
↓ 2 callers
Method
ModTime
()
pkg/assets/probe.go:68
↓ 2 callers
Function
NewFSProbeWithOptions
NewFSProbeWithOptions - Creates a new FSProbe instance with the provided options
pkg/fsprobe/fsprobe.go:58
↓ 2 callers
Function
RandomString
(length int)
tests/paths_generator.go:22
↓ 2 callers
Method
Remove
Remove stops watching the the named file or directory (non-recursively).
pkg/inotify/recursive_inotify.go:73
↓ 2 callers
Method
ResolveInode
(mountID uint32, inode uint64)
pkg/model/resolver.go:34
↓ 2 callers
Method
Stop
Stop - Stops the probe
pkg/model/probe.go:69
↓ 2 callers
Method
Watch
Watch - start watching the provided paths. This function is thread safe and can be called multiple times. If already running, the new paths will be ad
pkg/fsprobe/fsprobe.go:101
↓ 2 callers
Method
addTopLevelWatch
addTopLevelWatch - Adds watches by walking only the top level depth of directories
pkg/fsprobe/fsprobe.go:242
↓ 2 callers
Function
benchmarkOpen
benchmarkOpen - Opens a file from the paths generator and benchmark the overhead
tests/open_test.go:38
↓ 2 callers
Method
close
Close all poller file descriptors, but not the one passed to it.
pkg/inotify/inotify_poller.go:177
↓ 2 callers
Function
load_dentry_resolution_mode
load_dentry_resolution_mode - Loads the dentry resolution mode
ebpf/const.h:22
↓ 2 callers
Function
resolve_dentry_fragments
resolve_dentry_fragments - Resolves a dentry into multiple fragments, one per parent of the initial dentry. Each fragment is saved in a linked list in
ebpf/dentry.h:194
↓ 2 callers
Function
write_dentry_inode
write_dentry_inode - Writes the inode structure designated by the provided dentry
ebpf/dentry.h:73
↓ 1 callers
Method
Add
Add starts watching the named file or directory (non-recursively).
pkg/inotify/recursive_inotify.go:54
↓ 1 callers
Method
AddInodeFilter
(inode uint32, path string)
pkg/model/monitor.go:142
↓ 1 callers
Method
AddRecursive
AddRecursive starts watching the named directory and all sub-directories.
pkg/inotify/recursive_inotify.go:62
↓ 1 callers
Function
AssetDir
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data
pkg/assets/probe.go:193
↓ 1 callers
Function
AssetInfo
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
pkg/assets/probe.go:147
↓ 1 callers
Method
Callback
()
cmd/fsprobe/cmd/output.go:58
↓ 1 callers
Method
Close
Close removes all watches and closes the events channel.
pkg/inotify/recursive_inotify.go:86
↓ 1 callers
Method
Close
()
cmd/fsprobe/cmd/output.go:98
↓ 1 callers
Method
Configure
Configure - Configures the probes using the provided options
pkg/model/monitor.go:42
↓ 1 callers
Method
CreateFiles
()
tests/paths_generator.go:77
↓ 1 callers
Method
CreateFolders
()
tests/paths_generator.go:61
↓ 1 callers
Method
EditEBPFConstants
EditEBPFConstants - Edit the runtime eBPF constants
pkg/fsprobe/fsprobe.go:315
↓ 1 callers
Function
ErrValueToString
ErrValueToString - Returns an err as its string representation
pkg/model/const.go:200
↓ 1 callers
Method
GetBootTime
()
pkg/model/fsprobe.go:28
↓ 1 callers
Method
GetCollection
()
pkg/model/fsprobe.go:27
↓ 1 callers
Function
GetEventType
GetEventType - Returns the event type
pkg/model/events.go:54
↓ 1 callers
Method
GetOptions
()
pkg/model/fsprobe.go:26
↓ 1 callers
Function
GetPidnsFromPid
GetPidnsFromPid - Returns the pid namespace of a process
pkg/utils/utils.go:69
↓ 1 callers
Method
GetRandomFile
()
tests/paths_generator.go:94
↓ 1 callers
Method
GetWaitGroup
()
pkg/model/fsprobe.go:25
↓ 1 callers
Method
GetWatchedPaths
()
tests/paths_generator.go:49
↓ 1 callers
Method
HasEmptyInode
()
pkg/model/resolver.go:74
↓ 1 callers
Method
Init
Init - Initializes the probe
pkg/model/probe.go:36
↓ 1 callers
Method
IsRoot
IsRoot - Returns true if the current fragment is the root of a mount point
pkg/model/resolver.go:93
↓ 1 callers
Method
Mode
()
pkg/assets/probe.go:65
↓ 1 callers
Method
Name
()
pkg/assets/probe.go:59
↓ 1 callers
Function
NewDentryResolutionModeValue
(mode *model.DentryResolutionMode)
cmd/fsprobe/cmd/args.go:70
↓ 1 callers
Function
NewDentryResolver
NewDentryResolver - Returns a new resolver configured for the selected resolution method
pkg/model/resolver.go:401
↓ 1 callers
Function
NewEventsValue
(events *[]model.EventName)
cmd/fsprobe/cmd/args.go:28
↓ 1 callers
Function
NewOutput
NewOutput - Returns an output instance configured with the requested format & output
cmd/fsprobe/cmd/output.go:40
↓ 1 callers
Function
NewPathFragmentsResolver
NewPathFragmentsResolver - Returns a new PathFragmentsResolver instance
pkg/model/resolver.go:113
↓ 1 callers
Function
NewPerfBufferResolver
NewPerfBufferResolver - Returns a new PerfBufferResolver instance
pkg/model/resolver.go:326
↓ 1 callers
Function
NewRWatcher
NewRWatcher establishes a new watcher with the underlying OS and begins waiting for events.
pkg/inotify/recursive_inotify.go:36
↓ 1 callers
Function
NewSingleFragmentResolver
NewSingleFragmentResolver - Returns a new SingleFragmentResolver instance
pkg/model/resolver.go:248
↓ 1 callers
Function
NewTableOutput
(writer io.Writer)
cmd/fsprobe/cmd/output.go:155
↓ 1 callers
Function
NewWatcher
NewWatcher establishes a new watcher with the underlying OS and begins waiting for events.
pkg/inotify/inotify.go:36
↓ 1 callers
Function
OpenFlagsToStrings
OpenFlagsToStrings - Returns the string list version of flags
pkg/model/const.go:631
↓ 1 callers
Function
ParseFSEvent
ParseFSEvent - Parses a new FSEvent using the data provided by the kernel
pkg/model/events.go:78
↓ 1 callers
Method
PrintFilenames
PrintFilenames - Returns a string representation of the filenames of the event
pkg/model/events.go:273
↓ 1 callers
Method
PrintFlags
PrintFlags - Returns a string representation of the flags of the event
pkg/model/events.go:291
↓ 1 callers
Method
PrintHeader
PrintHeader - Prints table header
cmd/fsprobe/cmd/output.go:187
↓ 1 callers
Method
PrintMode
PrintMode - Returns a string representation of the mode of the event
pkg/model/events.go:281
↓ 1 callers
Function
RandomStringWithCharset
(length int, charset string)
tests/paths_generator.go:14
↓ 1 callers
Function
RegisterMonitors
RegisterMonitors - Register monitors
pkg/fsprobe/monitor/register.go:24
↓ 1 callers
Function
RestoreAsset
RestoreAsset restores an asset under the given directory
pkg/assets/probe.go:236
↓ 1 callers
Function
SetAttrFlagsToString
SetAttrFlagsToString - Returns the string list representation of SetAttr flags
pkg/model/const.go:549
↓ 1 callers
Method
Start
Start - Starts the probe
pkg/model/probe.go:45
↓ 1 callers
Method
Start
()
cmd/fsprobe/cmd/output.go:94
↓ 1 callers
Method
String
()
pkg/inotify/model.go:35
↓ 1 callers
Method
UnmarshalBinary
(data []byte, bootTime time.Time)
pkg/model/events.go:245
↓ 1 callers
Method
Write
(buffer []byte)
pkg/model/resolver.go:52
↓ 1 callers
Method
Write
(buffer []byte)
pkg/model/resolver.go:206
↓ 1 callers
Method
addRecursiveWatch
addRecursiveWatch - Adds watches by walking through all the provided paths recursively
pkg/fsprobe/fsprobe.go:277
next →
1–100 of 251, ranked by callers