MCPcopy Create free account

hub / github.com/Gui774ume/fsprobe / functions

Functions251 in github.com/Gui774ume/fsprobe

↓ 14 callersFunctionget_dentry_ino
get_dentry_ino - Returns the inode number of the inode designated by the provided dentry
ebpf/dentry.h:113
↓ 10 callersFunctionfilter
ebpf/filter.h:52
↓ 10 callersFunctionresolve_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 callersMethodClose
Close removes all watches and closes the events channel.
pkg/inotify/inotify.go:73
↓ 9 callersFunctionget_inode_mount_id
get_inode_mount_id - Returns the mount id of an inode structure
ebpf/dentry.h:48
↓ 8 callersFunctionfill_process_data
fill_process_data - Fills the provided process_ctx_t with the process context available from eBPF
ebpf/process.h:35
↓ 7 callersMethodRead
(buffer []byte)
pkg/model/resolver.go:64
↓ 5 callersMethodString
()
pkg/model/resolver.go:78
↓ 5 callersMethodWrite
(event *model.FSEvent)
cmd/fsprobe/cmd/output.go:107
↓ 5 callersFunctiongetNamespaceID
getNamespaceID - Returns the namespace id in brackets
pkg/utils/utils.go:56
↓ 4 callersMethodAdd
Add starts watching the named file or directory (non-recursively).
pkg/inotify/inotify.go:91
↓ 4 callersMethodClose
Close - Delete all generated files and folders
tests/paths_generator.go:99
↓ 4 callersMethodGetKeyBytes
()
pkg/model/resolver.go:58
↓ 4 callersMethodGetMap
GetMap - Returns the map at the provided section
pkg/model/monitor.go:75
↓ 4 callersMethodIsDir
()
pkg/assets/probe.go:74
↓ 4 callersMethodIsNull
()
pkg/model/resolver.go:70
↓ 4 callersMethodRemoveEntry
(key uint32)
pkg/model/resolver.go:37
↓ 4 callersMethodResolveKey
(key uint32, length uint32)
pkg/model/resolver.go:36
↓ 4 callersMethodSet
(mountID uint32, inode uint64)
pkg/model/resolver.go:47
↓ 4 callersFunctionbenchmarkFSProbe
(b *testing.B, options model.FSProbeOptions, pg *PathsGenerator)
tests/open_test.go:56
↓ 4 callersFunctionbuild_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 callersFunctiondecodePath
decodePath - Decode the raw path provided by the kernel
pkg/model/events.go:186
↓ 4 callersFunctionget_dentry_inode
get_dentry_inode - Returns the inode structure designated by the provided dentry
ebpf/dentry.h:65
↓ 4 callersMethodisClosed
()
pkg/inotify/inotify.go:63
↓ 3 callersMethodAddCacheEntry
(key uint32, value interface{})
pkg/model/resolver.go:38
↓ 3 callersFunctionAsset
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 callersMethodGetName
GetName - Returns the name of the monitor
pkg/model/monitor.go:70
↓ 3 callersMethodRemoveInode
(mountID uint32, inode uint64)
pkg/model/resolver.go:35
↓ 3 callersMethodSys
()
pkg/assets/probe.go:77
↓ 3 callersFunction_filePath
(dir, name string)
pkg/assets/probe.go:273
↓ 3 callersMethodwatchInode
watchInode - Adds an inode the in the resolver cache
pkg/fsprobe/fsprobe.go:304
↓ 3 callersMethodwatchRecursive
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 callersMethodGetString
GetString - Returns the path as a string
pkg/model/resolver.go:101
↓ 2 callersMethodInit
()
tests/paths_generator.go:39
↓ 2 callersMethodModTime
()
pkg/assets/probe.go:68
↓ 2 callersFunctionNewFSProbeWithOptions
NewFSProbeWithOptions - Creates a new FSProbe instance with the provided options
pkg/fsprobe/fsprobe.go:58
↓ 2 callersFunctionRandomString
(length int)
tests/paths_generator.go:22
↓ 2 callersMethodRemove
Remove stops watching the the named file or directory (non-recursively).
pkg/inotify/recursive_inotify.go:73
↓ 2 callersMethodResolveInode
(mountID uint32, inode uint64)
pkg/model/resolver.go:34
↓ 2 callersMethodStop
Stop - Stops the probe
pkg/model/probe.go:69
↓ 2 callersMethodWatch
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 callersMethodaddTopLevelWatch
addTopLevelWatch - Adds watches by walking only the top level depth of directories
pkg/fsprobe/fsprobe.go:242
↓ 2 callersFunctionbenchmarkOpen
benchmarkOpen - Opens a file from the paths generator and benchmark the overhead
tests/open_test.go:38
↓ 2 callersMethodclose
Close all poller file descriptors, but not the one passed to it.
pkg/inotify/inotify_poller.go:177
↓ 2 callersFunctionload_dentry_resolution_mode
load_dentry_resolution_mode - Loads the dentry resolution mode
ebpf/const.h:22
↓ 2 callersFunctionresolve_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 callersFunctionwrite_dentry_inode
write_dentry_inode - Writes the inode structure designated by the provided dentry
ebpf/dentry.h:73
↓ 1 callersMethodAdd
Add starts watching the named file or directory (non-recursively).
pkg/inotify/recursive_inotify.go:54
↓ 1 callersMethodAddInodeFilter
(inode uint32, path string)
pkg/model/monitor.go:142
↓ 1 callersMethodAddRecursive
AddRecursive starts watching the named directory and all sub-directories.
pkg/inotify/recursive_inotify.go:62
↓ 1 callersFunctionAssetDir
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 callersFunctionAssetInfo
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 callersMethodCallback
()
cmd/fsprobe/cmd/output.go:58
↓ 1 callersMethodClose
Close removes all watches and closes the events channel.
pkg/inotify/recursive_inotify.go:86
↓ 1 callersMethodClose
()
cmd/fsprobe/cmd/output.go:98
↓ 1 callersMethodConfigure
Configure - Configures the probes using the provided options
pkg/model/monitor.go:42
↓ 1 callersMethodCreateFiles
()
tests/paths_generator.go:77
↓ 1 callersMethodCreateFolders
()
tests/paths_generator.go:61
↓ 1 callersMethodEditEBPFConstants
EditEBPFConstants - Edit the runtime eBPF constants
pkg/fsprobe/fsprobe.go:315
↓ 1 callersFunctionErrValueToString
ErrValueToString - Returns an err as its string representation
pkg/model/const.go:200
↓ 1 callersMethodGetBootTime
()
pkg/model/fsprobe.go:28
↓ 1 callersMethodGetCollection
()
pkg/model/fsprobe.go:27
↓ 1 callersFunctionGetEventType
GetEventType - Returns the event type
pkg/model/events.go:54
↓ 1 callersMethodGetOptions
()
pkg/model/fsprobe.go:26
↓ 1 callersFunctionGetPidnsFromPid
GetPidnsFromPid - Returns the pid namespace of a process
pkg/utils/utils.go:69
↓ 1 callersMethodGetRandomFile
()
tests/paths_generator.go:94
↓ 1 callersMethodGetWaitGroup
()
pkg/model/fsprobe.go:25
↓ 1 callersMethodGetWatchedPaths
()
tests/paths_generator.go:49
↓ 1 callersMethodHasEmptyInode
()
pkg/model/resolver.go:74
↓ 1 callersMethodInit
Init - Initializes the probe
pkg/model/probe.go:36
↓ 1 callersMethodIsRoot
IsRoot - Returns true if the current fragment is the root of a mount point
pkg/model/resolver.go:93
↓ 1 callersMethodMode
()
pkg/assets/probe.go:65
↓ 1 callersMethodName
()
pkg/assets/probe.go:59
↓ 1 callersFunctionNewDentryResolutionModeValue
(mode *model.DentryResolutionMode)
cmd/fsprobe/cmd/args.go:70
↓ 1 callersFunctionNewDentryResolver
NewDentryResolver - Returns a new resolver configured for the selected resolution method
pkg/model/resolver.go:401
↓ 1 callersFunctionNewEventsValue
(events *[]model.EventName)
cmd/fsprobe/cmd/args.go:28
↓ 1 callersFunctionNewOutput
NewOutput - Returns an output instance configured with the requested format & output
cmd/fsprobe/cmd/output.go:40
↓ 1 callersFunctionNewPathFragmentsResolver
NewPathFragmentsResolver - Returns a new PathFragmentsResolver instance
pkg/model/resolver.go:113
↓ 1 callersFunctionNewPerfBufferResolver
NewPerfBufferResolver - Returns a new PerfBufferResolver instance
pkg/model/resolver.go:326
↓ 1 callersFunctionNewRWatcher
NewRWatcher establishes a new watcher with the underlying OS and begins waiting for events.
pkg/inotify/recursive_inotify.go:36
↓ 1 callersFunctionNewSingleFragmentResolver
NewSingleFragmentResolver - Returns a new SingleFragmentResolver instance
pkg/model/resolver.go:248
↓ 1 callersFunctionNewTableOutput
(writer io.Writer)
cmd/fsprobe/cmd/output.go:155
↓ 1 callersFunctionNewWatcher
NewWatcher establishes a new watcher with the underlying OS and begins waiting for events.
pkg/inotify/inotify.go:36
↓ 1 callersFunctionOpenFlagsToStrings
OpenFlagsToStrings - Returns the string list version of flags
pkg/model/const.go:631
↓ 1 callersFunctionParseFSEvent
ParseFSEvent - Parses a new FSEvent using the data provided by the kernel
pkg/model/events.go:78
↓ 1 callersMethodPrintFilenames
PrintFilenames - Returns a string representation of the filenames of the event
pkg/model/events.go:273
↓ 1 callersMethodPrintFlags
PrintFlags - Returns a string representation of the flags of the event
pkg/model/events.go:291
↓ 1 callersMethodPrintHeader
PrintHeader - Prints table header
cmd/fsprobe/cmd/output.go:187
↓ 1 callersMethodPrintMode
PrintMode - Returns a string representation of the mode of the event
pkg/model/events.go:281
↓ 1 callersFunctionRandomStringWithCharset
(length int, charset string)
tests/paths_generator.go:14
↓ 1 callersFunctionRegisterMonitors
RegisterMonitors - Register monitors
pkg/fsprobe/monitor/register.go:24
↓ 1 callersFunctionRestoreAsset
RestoreAsset restores an asset under the given directory
pkg/assets/probe.go:236
↓ 1 callersFunctionSetAttrFlagsToString
SetAttrFlagsToString - Returns the string list representation of SetAttr flags
pkg/model/const.go:549
↓ 1 callersMethodStart
Start - Starts the probe
pkg/model/probe.go:45
↓ 1 callersMethodStart
()
cmd/fsprobe/cmd/output.go:94
↓ 1 callersMethodString
()
pkg/inotify/model.go:35
↓ 1 callersMethodUnmarshalBinary
(data []byte, bootTime time.Time)
pkg/model/events.go:245
↓ 1 callersMethodWrite
(buffer []byte)
pkg/model/resolver.go:52
↓ 1 callersMethodWrite
(buffer []byte)
pkg/model/resolver.go:206
↓ 1 callersMethodaddRecursiveWatch
addRecursiveWatch - Adds watches by walking through all the provided paths recursively
pkg/fsprobe/fsprobe.go:277
next →1–100 of 251, ranked by callers