Documentation
¶
Index ¶
- func EnsureRunning(bpffsRoot string) error
- type ExitStatus
- type PidnsInfo
- type Store
- func (store *Store) Close() error
- func (store *Store) DeleteExitedEvent(traceEventID uint64) error
- func (store *Store) DeleteTracingTask(pid uint32) error
- func (store *Store) ExitedEventFromWaitStatus(traceEventID uint64, pid uint32, status uint32) error
- func (store *Store) GetExitedEvent(traceEventID uint64) (*ExitStatus, error)
- func (store *Store) GetTracingTask(pid uint32) (*TaskInfo, error)
- func (store *Store) Trace(pid uint32, taskInfo *TaskInfo) error
- type TaskInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureRunning ¶
EnsureRunning makes sure that the exitsnoop has been pinned in BPF filesystem.
Types ¶
type ExitStatus ¶
ExitStatus is used to record the exit event when the target task exits.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is used to trace target task and receive the exited event by trace ID.
func NewStoreFromAttach ¶
NewStoreFromAttach loads exitsnoop and attaches to sched_process_exit and returns the Store as interface.
TODO(fuweid):
NewStoreFromAttach only opens but not pinned in bpffs, which has common functionality with EnsureRunning. I think we should use options to merge two function in the future.
func (*Store) DeleteExitedEvent ¶
func (*Store) DeleteTracingTask ¶
func (*Store) ExitedEventFromWaitStatus ¶
func (*Store) GetExitedEvent ¶
func (store *Store) GetExitedEvent(traceEventID uint64) (*ExitStatus, error)
Click to show internal directories.
Click to hide internal directories.