MCPcopy Create free account

hub / github.com/boratanrikulu/gobee / functions

Functions474 in github.com/boratanrikulu/gobee

FunctionGetFuncArgCnt
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
FunctionGetFuncIp
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
FunctionGetFuncRet
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
FunctionGetHashRecalc
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
FunctionGetListenerSock
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
FunctionGetLocalStorage
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
FunctionGetNetnsCookie
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
FunctionGetNsCurrentPidTgid
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
FunctionGetNumaNodeId
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
MethodGetOrCreate
GetOrCreate returns the entry for task, creating it (initialised from value) if it doesn't exist.
bpf/maps.go:213
MethodGetOrCreate
(inode unsafe.Pointer, value *V)
bpf/maps.go:232
FunctionGetRetval
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
FunctionGetRouteRealm
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
FunctionGetSocketCookie
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
FunctionGetSocketUid
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
FunctionGetStack
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
FunctionGetStackid
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
FunctionGetTaskStack
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
FunctionGetsockopt
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
FunctionHandleOpenat
bpf:section tracepoint/syscalls/sys_enter_openat
testdata/examples/06_tracepoint_openat.go:16
FunctionHtonl
Htonl converts a 32-bit value from host to network byte order.
bpf/endian.go:13
FunctionHtons
Htons converts a 16-bit value from host to network byte order.
bpf/endian.go:19
FunctionImaFileHash
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
FunctionImaInodeHash
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
FunctionInodeStorageDelete
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
FunctionInodeStorageGet
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
FunctionInstallWriteHdrCb
bpf:license GPL bpf:section sockops
testdata/examples/32_sockops_cb_flags.go:19
FunctionInterArrival
bpf:section xdp
testdata/examples/05_combo.go:21
FunctionJiffies64
Jiffies64 wraps the BPF helper `bpf_jiffies64`. Obtain the 64bit jiffies Returns The 64 bit jiffies
bpf/helpers_generated.go:1189
FunctionKptrXchg
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
FunctionKtimeGetBootNs
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
FunctionKtimeGetCoarseNs
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
FunctionKtimeGetTaiNs
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
FunctionL3CsumReplace
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
FunctionL4CsumReplace
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
FunctionLoadHdrOpt
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
FunctionLoop
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
FunctionLwtPushEncap
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
FunctionLwtSeg6Action
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
FunctionLwtSeg6AdjustSrh
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
FunctionLwtSeg6StoreBytes
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
FunctionMallocEntry
bpf:section uprobe/libc.so.6:malloc
testdata/examples/08_uprobe_libc_malloc.go:17
FunctionMapDeleteElem
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
FunctionMapLookupElem
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
FunctionMapLookupPercpuElem
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
FunctionMapPeekElem
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
FunctionMapPopElem
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
FunctionMapPushElem
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
FunctionMapUpdateElem
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
FunctionMsgApplyBytes
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
FunctionMsgCorkBytes
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
FunctionMsgPopData
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
FunctionMsgPullData
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
FunctionMsgPushData
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
FunctionMsgRedirectHash
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
FunctionMsgRedirectMap
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
FunctionNtohs
Ntohs converts a 16-bit value from network to host byte order.
bpf/endian.go:16
FunctionOnExec
bpf:section tracepoint/syscalls/sys_enter_execve
example/sysmon/bpf/src/sysmon.go:67
FunctionOnExec
bpf:section tracepoint/syscalls/sys_enter_execve
testdata/examples/16_ringbuf_exec.go:21
FunctionOnExecExit
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
FunctionOnOpen
bpf:section tracepoint/syscalls/sys_enter_openat
example/sysmon/bpf/src/sysmon.go:80
FunctionOnPacket
bpf:section xdp
example/sysmon/bpf/src/sysmon.go:54
FunctionOnProcExit
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
FunctionOnTcpConnect
bpf:section kprobe/tcp_connect
example/sysmon/bpf/src/sysmon.go:92
FunctionOnTcpConnectReturn
bpf:section kretprobe/tcp_connect
testdata/examples/26_kretprobe.go:15
MethodOutput
Output emits one event into the per-CPU perf buffer. ctx is the BPF program's context pointer.
bpf/maps.go:147
FunctionOverrideReturn
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
FunctionPassThrough
bpf:license GPL bpf:section classifier/ingress
testdata/examples/10_tc_classifier.go:15
MethodPeek
(value *T)
bpf/maps.go:110
MethodPeek
(value *T)
bpf/maps.go:119
FunctionPerCpuPtr
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
FunctionPerfEventOutput
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
FunctionPerfEventRead
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
FunctionPerfEventReadValue
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
FunctionPerfProgReadValue
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
MethodPop
(value *T)
bpf/maps.go:109
MethodPop
(value *T)
bpf/maps.go:118
FunctionProbeRead
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
FunctionProbeReadKernel
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
FunctionProbeReadKernelStr
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
FunctionProbeReadStr
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
FunctionProbeReadUser
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
FunctionProbeReadUserStr
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
FunctionProbeWriteUser
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
MethodPush
(value *T)
bpf/maps.go:117
FunctionPushIface
bpf:section xdp
testdata/examples/18_stack.go:15
FunctionPushIface
bpf:section xdp
testdata/examples/17_queue.go:15
FunctionRcKeydown
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
FunctionRcPointerRel
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
FunctionRcRepeat
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
FunctionReadBranchRecords
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
FunctionRecordPid
bpf:section kprobe/__x64_sys_openat
testdata/examples/25_lru_percpu_hash.go:16
FunctionRecordRemotePort
bpf:license GPL bpf:section sockops
testdata/examples/33_endian.go:14
FunctionRedirect
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
MethodRedirect
(ctx *XdpMd, key uint32, flags uint64)
bpf/maps.go:182
MethodRedirect
(ctx *XdpMd, key uint32, flags uint64)
bpf/maps.go:194
FunctionRedirectMap
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
FunctionRedirectNeigh
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
FunctionRedirectPeer
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
FunctionRememberUid
bpf:section tracepoint/syscalls/sys_enter_execve
testdata/examples/22_bloom_filter.go:17
← previousnext →201–300 of 474, ranked by callers