Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boratanrikulu/gobee
/ functions
Functions
474 in github.com/boratanrikulu/gobee
⨍
Functions
474
◇
Types & classes
106
Function
GetFuncArgCnt
GetFuncArgCnt wraps the BPF helper `bpf_get_func_arg_cnt`. Get number of registers of the traced function (for tracing programs) where function arg
bpf/helpers_generated.go:731
Function
GetFuncIp
GetFuncIp wraps the BPF helper `bpf_get_func_ip`. Get address of the traced function (for tracing and kprobe programs). When called for kprobe pro
bpf/helpers_generated.go:745
Function
GetFuncRet
GetFuncRet wraps the BPF helper `bpf_get_func_ret`. Get return value of the traced function (for tracing programs) in **value**. Returns 0 on su
bpf/helpers_generated.go:756
Function
GetHashRecalc
GetHashRecalc wraps the BPF helper `bpf_get_hash_recalc`. Retrieve the hash of the packet, *skb*\ **->hash**. If it is not set, in particular if th
bpf/helpers_generated.go:775
Function
GetListenerSock
GetListenerSock wraps the BPF helper `bpf_get_listener_sock`. Return a **struct bpf_sock** pointer in **TCP_LISTEN** state. **bpf_sk_release**\ ()
bpf/helpers_generated.go:786
Function
GetLocalStorage
GetLocalStorage wraps the BPF helper `bpf_get_local_storage`. Get the pointer to the local storage area. The type and the size of the local storage
bpf/helpers_generated.go:807
Function
GetNetnsCookie
GetNetnsCookie wraps the BPF helper `bpf_get_netns_cookie`. Retrieve the cookie (generated by the kernel) of the network namespace the input *ctx*
bpf/helpers_generated.go:823
Function
GetNsCurrentPidTgid
GetNsCurrentPidTgid wraps the BPF helper `bpf_get_ns_current_pid_tgid`. Returns 0 on success, values for *pid* and *tgid* as seen from the current
bpf/helpers_generated.go:838
Function
GetNumaNodeId
GetNumaNodeId wraps the BPF helper `bpf_get_numa_node_id`. Return the id of the current NUMA node. The primary use case for this helper is the sele
bpf/helpers_generated.go:854
Method
GetOrCreate
GetOrCreate returns the entry for task, creating it (initialised from value) if it doesn't exist.
bpf/maps.go:213
Method
GetOrCreate
(inode unsafe.Pointer, value *V)
bpf/maps.go:232
Function
GetRetval
GetRetval wraps the BPF helper `bpf_get_retval`. Get the BPF program's return value that will be returned to the upper layers. This helper is curr
bpf/helpers_generated.go:881
Function
GetRouteRealm
GetRouteRealm wraps the BPF helper `bpf_get_route_realm`. Retrieve the realm or the route, that is to say the **tclassid** field of the destination
bpf/helpers_generated.go:908
Function
GetSocketCookie
GetSocketCookie wraps the BPF helper `bpf_get_socket_cookie`. If the **struct sk_buff** pointed by *skb* has a known socket, retrieve the cookie (g
bpf/helpers_generated.go:936
Function
GetSocketUid
GetSocketUid wraps the BPF helper `bpf_get_socket_uid`. Get the owner UID of the socked associated to *skb*. Returns The owner UID of the socket
bpf/helpers_generated.go:949
Function
GetStack
GetStack wraps the BPF helper `bpf_get_stack`. Return a user or a kernel stack in bpf program provided buffer. To achieve this, the helper needs *c
bpf/helpers_generated.go:995
Function
GetStackid
GetStackid wraps the BPF helper `bpf_get_stackid`. Walk a user or a kernel stack and return its id. To achieve this, the helper needs *ctx*, which
bpf/helpers_generated.go:1042
Function
GetTaskStack
GetTaskStack wraps the BPF helper `bpf_get_task_stack`. Return a user or a kernel stack in bpf program provided buffer. Note: the user stack will o
bpf/helpers_generated.go:1080
Function
Getsockopt
Getsockopt wraps the BPF helper `bpf_getsockopt`. Emulate a call to **getsockopt()** on the socket associated to *bpf_socket*, which must be a full
bpf/helpers_generated.go:1108
Function
HandleOpenat
bpf:section tracepoint/syscalls/sys_enter_openat
testdata/examples/06_tracepoint_openat.go:16
Function
Htonl
Htonl converts a 32-bit value from host to network byte order.
bpf/endian.go:13
Function
Htons
Htons converts a 16-bit value from host to network byte order.
bpf/endian.go:19
Function
ImaFileHash
ImaFileHash wraps the BPF helper `bpf_ima_file_hash`. Returns a calculated IMA hash of the *file*. If the hash is larger than *size*, then only *si
bpf/helpers_generated.go:1123
Function
ImaInodeHash
ImaInodeHash wraps the BPF helper `bpf_ima_inode_hash`. Returns the stored IMA hash of the *inode* (if it's available). If the hash is larger than
bpf/helpers_generated.go:1136
Function
InodeStorageDelete
InodeStorageDelete wraps the BPF helper `bpf_inode_storage_delete`. Delete a bpf_local_storage from an *inode*. Returns 0 on success. **-ENOENT
bpf/helpers_generated.go:1147
Function
InodeStorageGet
InodeStorageGet wraps the BPF helper `bpf_inode_storage_get`. Get a bpf_local_storage from an *inode*. Logically, it could be thought of as gettin
bpf/helpers_generated.go:1178
Function
InstallWriteHdrCb
bpf:license GPL bpf:section sockops
testdata/examples/32_sockops_cb_flags.go:19
Function
InterArrival
bpf:section xdp
testdata/examples/05_combo.go:21
Function
Jiffies64
Jiffies64 wraps the BPF helper `bpf_jiffies64`. Obtain the 64bit jiffies Returns The 64 bit jiffies
bpf/helpers_generated.go:1189
Function
KptrXchg
KallsymsLookupName wraps the BPF helper `bpf_kallsyms_lookup_name`. Get the address of a kernel symbol, returned in *res*. *res* is set to 0 if th
bpf/helpers_generated.go:1223
Function
KtimeGetBootNs
KtimeGetBootNs wraps the BPF helper `bpf_ktime_get_boot_ns`. Return the time elapsed since system boot, in nanoseconds. Does include the time the s
bpf/helpers_generated.go:1234
Function
KtimeGetCoarseNs
KtimeGetCoarseNs wraps the BPF helper `bpf_ktime_get_coarse_ns`. Return a coarse-grained version of the time elapsed since system boot, in nanoseco
bpf/helpers_generated.go:1247
Function
KtimeGetTaiNs
KtimeGetTaiNs wraps the BPF helper `bpf_ktime_get_tai_ns`. A nonsettable system-wide clock derived from wall-clock time but ignoring leap seconds.
bpf/helpers_generated.go:1272
Function
L3CsumReplace
L3CsumReplace wraps the BPF helper `bpf_l3_csum_replace`. Recompute the layer 3 (e.g. IP) checksum for the packet associated to *skb*. Computation
bpf/helpers_generated.go:1300
Function
L4CsumReplace
L4CsumReplace wraps the BPF helper `bpf_l4_csum_replace`. Recompute the layer 4 (e.g. TCP, UDP or ICMP) checksum for the packet associated to *skb*
bpf/helpers_generated.go:1337
Function
LoadHdrOpt
LoadHdrOpt wraps the BPF helper `bpf_load_hdr_opt`. Load header option. Support reading a particular TCP header option for bpf program (**BPF_PROG
bpf/helpers_generated.go:1404
Function
Loop
Loop wraps the BPF helper `bpf_loop`. For **nr_loops**, call **callback_fn** function with **callback_ctx** as the context parameter. The **callba
bpf/helpers_generated.go:1432
Function
LwtPushEncap
LwtPushEncap wraps the BPF helper `bpf_lwt_push_encap`. Encapsulate the packet associated to *skb* within a Layer 3 protocol header. This header is
bpf/helpers_generated.go:1474
Function
LwtSeg6Action
LwtSeg6Action wraps the BPF helper `bpf_lwt_seg6_action`. Apply an IPv6 Segment Routing action of type *action* to the packet associated to *skb*.
bpf/helpers_generated.go:1508
Function
LwtSeg6AdjustSrh
LwtSeg6AdjustSrh wraps the BPF helper `bpf_lwt_seg6_adjust_srh`. Adjust the size allocated to TLVs in the outermost IPv6 Segment Routing Header con
bpf/helpers_generated.go:1529
Function
LwtSeg6StoreBytes
LwtSeg6StoreBytes wraps the BPF helper `bpf_lwt_seg6_store_bytes`. Store *len* bytes from address *from* into the packet associated to *skb*, at *o
bpf/helpers_generated.go:1547
Function
MallocEntry
bpf:section uprobe/libc.so.6:malloc
testdata/examples/08_uprobe_libc_malloc.go:17
Function
MapDeleteElem
MapDeleteElem wraps the BPF helper `bpf_map_delete_elem`. Delete entry with *key* from *map*. Returns 0 on success, or a negative error in case o
bpf/helpers_generated.go:1558
Function
MapLookupElem
MapLookupElem wraps the BPF helper `bpf_map_lookup_elem`. Perform a lookup in *map* for an entry associated to *key*. Returns Map value associate
bpf/helpers_generated.go:1568
Function
MapLookupPercpuElem
MapLookupPercpuElem wraps the BPF helper `bpf_map_lookup_percpu_elem`. Perform a lookup in *percpu map* for an entry associated to *key* on *cpu*.
bpf/helpers_generated.go:1579
Function
MapPeekElem
MapPeekElem wraps the BPF helper `bpf_map_peek_elem`. Get an element from *map* without removing it. Returns 0 on success, or a negative error in
bpf/helpers_generated.go:1590
Function
MapPopElem
MapPopElem wraps the BPF helper `bpf_map_pop_elem`. Pop an element from *map*. Returns 0 on success, or a negative error in case of failure.
bpf/helpers_generated.go:1599
Function
MapPushElem
MapPushElem wraps the BPF helper `bpf_map_push_elem`. Push an element *value* in *map*. *flags* is one of: **BPF_EXIST** If the queue/stack is f
bpf/helpers_generated.go:1612
Function
MapUpdateElem
MapUpdateElem wraps the BPF helper `bpf_map_update_elem`. Add or update the value of the entry associated to *key* in *map* with *value*. *flags* i
bpf/helpers_generated.go:1633
Function
MsgApplyBytes
MsgApplyBytes wraps the BPF helper `bpf_msg_apply_bytes`. For socket policies, apply the verdict of the eBPF program to the next *bytes* (number of
bpf/helpers_generated.go:1672
Function
MsgCorkBytes
MsgCorkBytes wraps the BPF helper `bpf_msg_cork_bytes`. For socket policies, prevent the execution of the verdict eBPF program for message *msg* un
bpf/helpers_generated.go:1693
Function
MsgPopData
MsgPopData wraps the BPF helper `bpf_msg_pop_data`. Will remove *len* bytes from a *msg* starting at byte *start*. This may result in **ENOMEM** er
bpf/helpers_generated.go:1708
Function
MsgPullData
MsgPullData wraps the BPF helper `bpf_msg_pull_data`. For socket policies, pull in non-linear data from user space for *msg* and set pointers *msg*
bpf/helpers_generated.go:1742
Function
MsgPushData
MsgPushData wraps the BPF helper `bpf_msg_push_data`. For socket policies, insert *len* bytes into *msg* at offset *start*. If a program of type
bpf/helpers_generated.go:1761
Function
MsgRedirectHash
MsgRedirectHash wraps the BPF helper `bpf_msg_redirect_hash`. This helper is used in programs implementing policies at the socket level. If the mes
bpf/helpers_generated.go:1778
Function
MsgRedirectMap
MsgRedirectMap wraps the BPF helper `bpf_msg_redirect_map`. This helper is used in programs implementing policies at the socket level. If the messa
bpf/helpers_generated.go:1797
Function
Ntohs
Ntohs converts a 16-bit value from network to host byte order.
bpf/endian.go:16
Function
OnExec
bpf:section tracepoint/syscalls/sys_enter_execve
example/sysmon/bpf/src/sysmon.go:67
Function
OnExec
bpf:section tracepoint/syscalls/sys_enter_execve
testdata/examples/16_ringbuf_exec.go:21
Function
OnExecExit
OnExecExit fires when execve returns. Successful exec replaces the process so this only meaningfully fires when execve FAILED — the return value is th
example/sysmon/bpf/src/sysmon.go:122
Function
OnOpen
bpf:section tracepoint/syscalls/sys_enter_openat
example/sysmon/bpf/src/sysmon.go:80
Function
OnPacket
bpf:section xdp
example/sysmon/bpf/src/sysmon.go:54
Function
OnProcExit
OnProcExit fires when a process calls exit_group(N). Args[0] is the exit status (curl=6 if it can't resolve a host, etc.). Doesn't catch signal-based
example/sysmon/bpf/src/sysmon.go:107
Function
OnTcpConnect
bpf:section kprobe/tcp_connect
example/sysmon/bpf/src/sysmon.go:92
Function
OnTcpConnectReturn
bpf:section kretprobe/tcp_connect
testdata/examples/26_kretprobe.go:15
Method
Output
Output emits one event into the per-CPU perf buffer. ctx is the BPF program's context pointer.
bpf/maps.go:147
Function
OverrideReturn
OverrideReturn wraps the BPF helper `bpf_override_return`. Used for error injection, this helper uses kprobes to override the return value of the p
bpf/helpers_generated.go:1823
Function
PassThrough
bpf:license GPL bpf:section classifier/ingress
testdata/examples/10_tc_classifier.go:15
Method
Peek
(value *T)
bpf/maps.go:110
Method
Peek
(value *T)
bpf/maps.go:119
Function
PerCpuPtr
PerCpuPtr wraps the BPF helper `bpf_per_cpu_ptr`. Take a pointer to a percpu ksym, *percpu_ptr*, and return a pointer to the percpu kernel variable
bpf/helpers_generated.go:1843
Function
PerfEventOutput
PerfEventOutput wraps the BPF helper `bpf_perf_event_output`. Write raw *data* blob into a special BPF perf event held by *map* of type **BPF_MAP_T
bpf/helpers_generated.go:1891
Function
PerfEventRead
PerfEventRead wraps the BPF helper `bpf_perf_event_read`. Read the value of a perf event counter. This helper relies on a *map* of type **BPF_MAP_T
bpf/helpers_generated.go:1925
Function
PerfEventReadValue
PerfEventReadValue wraps the BPF helper `bpf_perf_event_read_value`. Read the value of a perf event counter, and store it into *buf* of size *buf_s
bpf/helpers_generated.go:1978
Function
PerfProgReadValue
PerfProgReadValue wraps the BPF helper `bpf_perf_prog_read_value`. For an eBPF program attached to a perf event, retrieve the value of the event co
bpf/helpers_generated.go:1994
Method
Pop
(value *T)
bpf/maps.go:109
Method
Pop
(value *T)
bpf/maps.go:118
Function
ProbeRead
ProbeRead wraps the BPF helper `bpf_probe_read`. For tracing programs, safely attempt to read *size* bytes from kernel space address *unsafe_ptr* a
bpf/helpers_generated.go:2007
Function
ProbeReadKernel
ProbeReadKernel wraps the BPF helper `bpf_probe_read_kernel`. Safely attempt to read *size* bytes from kernel space address *unsafe_ptr* and store
bpf/helpers_generated.go:2017
Function
ProbeReadKernelStr
ProbeReadKernelStr wraps the BPF helper `bpf_probe_read_kernel_str`. Copy a NUL terminated string from an unsafe kernel address *unsafe_ptr* to *ds
bpf/helpers_generated.go:2030
Function
ProbeReadStr
ProbeReadStr wraps the BPF helper `bpf_probe_read_str`. Copy a NUL terminated string from an unsafe kernel address *unsafe_ptr* to *dst*. See **bpf
bpf/helpers_generated.go:2048
Function
ProbeReadUser
ProbeReadUser wraps the BPF helper `bpf_probe_read_user`. Safely attempt to read *size* bytes from user space address *unsafe_ptr* and store the da
bpf/helpers_generated.go:2058
Function
ProbeReadUserStr
ProbeReadUserStr wraps the BPF helper `bpf_probe_read_user_str`. Copy a NUL terminated string from an unsafe user address *unsafe_ptr* to *dst*. Th
bpf/helpers_generated.go:2105
Function
ProbeWriteUser
ProbeWriteUser wraps the BPF helper `bpf_probe_write_user`. Attempt in a safe way to write *len* bytes from the buffer *src* to *dst* in memory. It
bpf/helpers_generated.go:2129
Method
Push
(value *T)
bpf/maps.go:117
Function
PushIface
bpf:section xdp
testdata/examples/18_stack.go:15
Function
PushIface
bpf:section xdp
testdata/examples/17_queue.go:15
Function
RcKeydown
RcKeydown wraps the BPF helper `bpf_rc_keydown`. This helper is used in programs implementing IR decoding, to report a successfully decoded key pre
bpf/helpers_generated.go:2158
Function
RcPointerRel
RcPointerRel wraps the BPF helper `bpf_rc_pointer_rel`. This helper is used in programs implementing IR decoding, to report a successfully decoded
bpf/helpers_generated.go:2177
Function
RcRepeat
RcRepeat wraps the BPF helper `bpf_rc_repeat`. This helper is used in programs implementing IR decoding, to report a successfully decoded repeat ke
bpf/helpers_generated.go:2199
Function
ReadBranchRecords
ReadBranchRecords wraps the BPF helper `bpf_read_branch_records`. For an eBPF program attached to a perf event, retrieve the branch records (**stru
bpf/helpers_generated.go:2221
Function
RecordPid
bpf:section kprobe/__x64_sys_openat
testdata/examples/25_lru_percpu_hash.go:16
Function
RecordRemotePort
bpf:license GPL bpf:section sockops
testdata/examples/33_endian.go:14
Function
Redirect
Redirect wraps the BPF helper `bpf_redirect`. Redirect the packet to another net device of index *ifindex*. This helper is somewhat similar to **bp
bpf/helpers_generated.go:2249
Method
Redirect
(ctx *XdpMd, key uint32, flags uint64)
bpf/maps.go:182
Method
Redirect
(ctx *XdpMd, key uint32, flags uint64)
bpf/maps.go:194
Function
RedirectMap
RedirectMap wraps the BPF helper `bpf_redirect_map`. Redirect the packet to the endpoint referenced by *map* at index *key*. Depending on its type,
bpf/helpers_generated.go:2277
Function
RedirectNeigh
RedirectNeigh wraps the BPF helper `bpf_redirect_neigh`. Redirect the packet to another net device of index *ifindex* and fill in L2 addresses from
bpf/helpers_generated.go:2301
Function
RedirectPeer
RedirectPeer wraps the BPF helper `bpf_redirect_peer`. Redirect the packet to another net device of index *ifindex*. This helper is somewhat simila
bpf/helpers_generated.go:2322
Function
RememberUid
bpf:section tracepoint/syscalls/sys_enter_execve
testdata/examples/22_bloom_filter.go:17
← previous
next →
201–300 of 474, ranked by callers