MCPcopy Create free account

hub / github.com/boratanrikulu/gobee / functions

Functions474 in github.com/boratanrikulu/gobee

FunctionReserveHdrOpt
ReserveHdrOpt wraps the BPF helper `bpf_reserve_hdr_opt`. Reserve *len* bytes for the bpf header option. The space will be used by **bpf_store_hdr
bpf/helpers_generated.go:2346
FunctionRingbufDiscard
RingbufDiscard wraps the BPF helper `bpf_ringbuf_discard`. Discard reserved ring buffer sample, pointed to by *data*. If **BPF_RB_NO_WAKEUP** is sp
bpf/helpers_generated.go:2363
FunctionRingbufDiscardDynptr
RingbufDiscardDynptr wraps the BPF helper `bpf_ringbuf_discard_dynptr`. Discard reserved ring buffer sample through the dynptr interface. This is a
bpf/helpers_generated.go:2376
FunctionRingbufOutput
RingbufOutput wraps the BPF helper `bpf_ringbuf_output`. Copy *size* bytes from *data* into a ring buffer *ringbuf*. If **BPF_RB_NO_WAKEUP** is spe
bpf/helpers_generated.go:2396
FunctionRingbufQuery
RingbufQuery wraps the BPF helper `bpf_ringbuf_query`. Query various characteristics of provided ring buffer. What exactly is queries is determined
bpf/helpers_generated.go:2418
FunctionRingbufReserve
RingbufReserve wraps the BPF helper `bpf_ringbuf_reserve`. Reserve *size* bytes of payload in a ring buffer *ringbuf*. *flags* must be 0. Returns
bpf/helpers_generated.go:2429
FunctionRingbufReserveDynptr
RingbufReserveDynptr wraps the BPF helper `bpf_ringbuf_reserve_dynptr`. Reserve *size* bytes of payload in a ring buffer *ringbuf* through the dynp
bpf/helpers_generated.go:2443
FunctionRingbufSubmit
RingbufSubmit wraps the BPF helper `bpf_ringbuf_submit`. Submit reserved ring buffer sample, pointed to by *data*. If **BPF_RB_NO_WAKEUP** is speci
bpf/helpers_generated.go:2462
FunctionRingbufSubmitDynptr
RingbufSubmitDynptr wraps the BPF helper `bpf_ringbuf_submit_dynptr`. Submit reserved ring buffer sample, pointed to by *data*, through the dynptr
bpf/helpers_generated.go:2476
FunctionSample
bpf:section xdp
testdata/examples/20_perf_event_array.go:25
FunctionSampleDrop
bpf:license GPL bpf:section xdp
testdata/examples/03_sample_drop.go:14
FunctionSendSignal
SendSignal wraps the BPF helper `bpf_send_signal`. Send signal *sig* to the process of the current task. The signal may be delivered to any of this
bpf/helpers_generated.go:2494
FunctionSendSignalThread
SendSignalThread wraps the BPF helper `bpf_send_signal_thread`. Send signal *sig* to the thread corresponding to the current task. Returns 0 on s
bpf/helpers_generated.go:2511
FunctionSeqPrintfBtf
SeqPrintf wraps the BPF helper `bpf_seq_printf`. **bpf_seq_printf**\ () uses seq_file **seq_printf**\ () to print out the format string. The *m*
bpf/helpers_generated.go:2555
FunctionSeqWrite
SeqWrite wraps the BPF helper `bpf_seq_write`. **bpf_seq_write**\ () uses seq_file **seq_write**\ () to write the data. The *m* represents the seq_
bpf/helpers_generated.go:2570
FunctionSetHash
SetHash wraps the BPF helper `bpf_set_hash`. Set the full hash for *skb* (set the field *skb*\ **->hash**) to value *hash*. Returns 0
bpf/helpers_generated.go:2580
FunctionSetHashInvalid
SetHashInvalid wraps the BPF helper `bpf_set_hash_invalid`. Invalidate the current *skb*\ **->hash**. It can be used after mangling on headers thro
bpf/helpers_generated.go:2593
FunctionSetRetval
SetRetval wraps the BPF helper `bpf_set_retval`. Set the BPF program's return value that will be returned to the upper layers. This helper is curr
bpf/helpers_generated.go:2614
FunctionSetsockopt
Setsockopt wraps the BPF helper `bpf_setsockopt`. Emulate a call to **setsockopt()** on the socket associated to *bpf_socket*, which must be a full
bpf/helpers_generated.go:2653
FunctionSkAncestorCgroupId
SkAncestorCgroupId wraps the BPF helper `bpf_sk_ancestor_cgroup_id`. Return id of cgroup v2 that is ancestor of cgroup associated with the *sk* at
bpf/helpers_generated.go:2676
FunctionSkAssign
SkAssign wraps the BPF helper `bpf_sk_assign`. Helper is overloaded depending on BPF program type. This description applies to **BPF_PROG_TYPE_SCHE
bpf/helpers_generated.go:2707
FunctionSkCgroupId
SkCgroupId wraps the BPF helper `bpf_sk_cgroup_id`. Return the cgroup v2 id of the socket *sk*. *sk* must be a non-**NULL** pointer to a socket, e
bpf/helpers_generated.go:2724
FunctionSkFullsock
SkFullsock wraps the BPF helper `bpf_sk_fullsock`. This helper gets a **struct bpf_sock** pointer such that all the fields in this **bpf_sock** can
bpf/helpers_generated.go:2735
FunctionSkLookupTcp
SkLookupTcp wraps the BPF helper `bpf_sk_lookup_tcp`. Look for TCP socket matching *tuple*, optionally in a child network namespace *netns*. The re
bpf/helpers_generated.go:2775
FunctionSkLookupUdp
SkLookupUdp wraps the BPF helper `bpf_sk_lookup_udp`. Look for UDP socket matching *tuple*, optionally in a child network namespace *netns*. The re
bpf/helpers_generated.go:2817
FunctionSkRedirectHash
SkRedirectHash wraps the BPF helper `bpf_sk_redirect_hash`. This helper is used in programs implementing policies at the skb socket level. If the s
bpf/helpers_generated.go:2836
FunctionSkRedirectMap
SkRedirectMap wraps the BPF helper `bpf_sk_redirect_map`. Redirect the packet to the socket referenced by *map* (of type **BPF_MAP_TYPE_SOCKMAP**)
bpf/helpers_generated.go:2852
FunctionSkRelease
SkRelease wraps the BPF helper `bpf_sk_release`. Release the reference held by *sock*. *sock* must be a non-**NULL** pointer that was returned from
bpf/helpers_generated.go:2865
FunctionSkSelectReuseport
SkSelectReuseport wraps the BPF helper `bpf_sk_select_reuseport`. Select a **SO_REUSEPORT** socket from a **BPF_MAP_TYPE_REUSEPORT_SOCKARRAY** *map
bpf/helpers_generated.go:2877
FunctionSkStorageDelete
SkStorageDelete wraps the BPF helper `bpf_sk_storage_delete`. Delete a bpf-local-storage from a *sk*. Returns 0 on success. **-ENOENT** if the
bpf/helpers_generated.go:2891
FunctionSkStorageGet
SkStorageGet wraps the BPF helper `bpf_sk_storage_get`. Get a bpf-local-storage from a *sk*. Logically, it could be thought of getting the value f
bpf/helpers_generated.go:2925
FunctionSkbAdjustRoom
SkbAdjustRoom wraps the BPF helper `bpf_skb_adjust_room`. Grow or shrink the room for data in the packet associated to *skb* by *len_diff*, and acc
bpf/helpers_generated.go:2987
FunctionSkbAncestorCgroupId
SkbAncestorCgroupId wraps the BPF helper `bpf_skb_ancestor_cgroup_id`. Return id of cgroup v2 that is ancestor of cgroup associated with the *skb*
bpf/helpers_generated.go:3010
FunctionSkbCgroupClassid
SkbCgroupClassid wraps the BPF helper `bpf_skb_cgroup_classid`. See **bpf_get_cgroup_classid**\ () for the main description. This helper differs fr
bpf/helpers_generated.go:3022
FunctionSkbCgroupId
SkbCgroupId wraps the BPF helper `bpf_skb_cgroup_id`. Return the cgroup v2 id of the socket associated with the *skb*. This is roughly similar to t
bpf/helpers_generated.go:3041
FunctionSkbChangeHead
SkbChangeHead wraps the BPF helper `bpf_skb_change_head`. Grows headroom of packet associated to *skb* and adjusts the offset of the MAC header acc
bpf/helpers_generated.go:3065
FunctionSkbChangeProto
SkbChangeProto wraps the BPF helper `bpf_skb_change_proto`. Change the protocol of the *skb* to *proto*. Currently supported are transition from IP
bpf/helpers_generated.go:3095
FunctionSkbChangeTail
SkbChangeTail wraps the BPF helper `bpf_skb_change_tail`. Resize (trim or grow) the packet associated to *skb* to the new *len*. The *flags* are re
bpf/helpers_generated.go:3122
FunctionSkbChangeType
SkbChangeType wraps the BPF helper `bpf_skb_change_type`. Change the packet type for the packet associated to *skb*. This comes down to setting *sk
bpf/helpers_generated.go:3152
FunctionSkbEcnSetCe
SkbEcnSetCe wraps the BPF helper `bpf_skb_ecn_set_ce`. Set ECN (Explicit Congestion Notification) field of IP header to **CE** (Congestion Encounte
bpf/helpers_generated.go:3165
FunctionSkbGetTunnelKey
SkbGetTunnelKey wraps the BPF helper `bpf_skb_get_tunnel_key`. Get tunnel metadata. This helper takes a pointer *key* to an empty **struct bpf_tunn
bpf/helpers_generated.go:3219
FunctionSkbGetTunnelOpt
SkbGetTunnelOpt wraps the BPF helper `bpf_skb_get_tunnel_opt`. Retrieve tunnel options metadata for the packet associated to *skb*, and store the r
bpf/helpers_generated.go:3242
FunctionSkbGetXfrmState
SkbGetXfrmState wraps the BPF helper `bpf_skb_get_xfrm_state`. Retrieve the XFRM state (IP transform framework, see also **ip-xfrm(8)**) at *index*
bpf/helpers_generated.go:3261
FunctionSkbLoadBytes
SkbLoadBytes wraps the BPF helper `bpf_skb_load_bytes`. This helper was provided as an easy way to load data from a packet. It can be used to load
bpf/helpers_generated.go:3283
FunctionSkbLoadBytesRelative
SkbLoadBytesRelative wraps the BPF helper `bpf_skb_load_bytes_relative`. This helper is similar to **bpf_skb_load_bytes**\ () in that it provides a
bpf/helpers_generated.go:3310
FunctionSkbOutput
SkbOutput wraps the BPF helper `bpf_skb_output`. Write raw *data* blob into a special BPF perf event held by *map* of type **BPF_MAP_TYPE_PERF_EVEN
bpf/helpers_generated.go:3339
FunctionSkbPullData
SkbPullData wraps the BPF helper `bpf_skb_pull_data`. Pull in non-linear data in case the *skb* is non-linear and not all of *len* are part of the
bpf/helpers_generated.go:3381
FunctionSkbSetTstamp
SkbSetTstamp wraps the BPF helper `bpf_skb_set_tstamp`. Change the __sk_buff->tstamp_type to *tstamp_type* and set *tstamp* to the __sk_buff->tstam
bpf/helpers_generated.go:3414
FunctionSkbSetTunnelKey
SkbSetTunnelKey wraps the BPF helper `bpf_skb_set_tunnel_key`. Populate tunnel metadata for packet associated to *skb.* The tunnel metadata is set
bpf/helpers_generated.go:3457
FunctionSkbSetTunnelOpt
SkbSetTunnelOpt wraps the BPF helper `bpf_skb_set_tunnel_opt`. Set tunnel options metadata for the packet associated to *skb* to the option data co
bpf/helpers_generated.go:3472
FunctionSkbStoreBytes
SkbStoreBytes wraps the BPF helper `bpf_skb_store_bytes`. Store *len* bytes from address *from* into the packet associated to *skb*, at *offset*. *
bpf/helpers_generated.go:3492
FunctionSkbUnderCgroup
SkbUnderCgroup wraps the BPF helper `bpf_skb_under_cgroup`. Check whether *skb* is a descendant of the cgroup2 held by *map* of type **BPF_MAP_TYPE
bpf/helpers_generated.go:3508
FunctionSkbVlanPop
SkbVlanPop wraps the BPF helper `bpf_skb_vlan_pop`. Pop a VLAN header from the packet associated to *skb*. A call to this helper is susceptible to
bpf/helpers_generated.go:3523
FunctionSkbVlanPush
SkbVlanPush wraps the BPF helper `bpf_skb_vlan_push`. Push a *vlan_tci* (VLAN tag control information) of protocol *vlan_proto* to the packet assoc
bpf/helpers_generated.go:3542
FunctionSkcLookupTcp
SkcLookupTcp wraps the BPF helper `bpf_skc_lookup_tcp`. Look for TCP socket matching *tuple*, optionally in a child network namespace *netns*. The
bpf/helpers_generated.go:3564
FunctionSkcToMptcpSock
SkcToMptcpSock wraps the BPF helper `bpf_skc_to_mptcp_sock`. Dynamically cast a *sk* pointer to a *mptcp_sock* pointer. Returns *sk* if casting i
bpf/helpers_generated.go:3575
FunctionSkcToTcp6Sock
SkcToTcp6Sock wraps the BPF helper `bpf_skc_to_tcp6_sock`. Dynamically cast a *sk* pointer to a *tcp6_sock* pointer. Returns *sk* if casting is v
bpf/helpers_generated.go:3584
FunctionSkcToTcpRequestSock
SkcToTcpRequestSock wraps the BPF helper `bpf_skc_to_tcp_request_sock`. Dynamically cast a *sk* pointer to a *tcp_request_sock* pointer. Returns
bpf/helpers_generated.go:3593
FunctionSkcToTcpSock
SkcToTcpSock wraps the BPF helper `bpf_skc_to_tcp_sock`. Dynamically cast a *sk* pointer to a *tcp_sock* pointer. Returns *sk* if casting is vali
bpf/helpers_generated.go:3602
FunctionSkcToTcpTimewaitSock
SkcToTcpTimewaitSock wraps the BPF helper `bpf_skc_to_tcp_timewait_sock`. Dynamically cast a *sk* pointer to a *tcp_timewait_sock* pointer. Returns
bpf/helpers_generated.go:3611
FunctionSkcToUdp6Sock
SkcToUdp6Sock wraps the BPF helper `bpf_skc_to_udp6_sock`. Dynamically cast a *sk* pointer to a *udp6_sock* pointer. Returns *sk* if casting is v
bpf/helpers_generated.go:3620
FunctionSkcToUnixSock
SkcToUnixSock wraps the BPF helper `bpf_skc_to_unix_sock`. Dynamically cast a *sk* pointer to a *unix_sock* pointer. Returns *sk* if casting is v
bpf/helpers_generated.go:3629
FunctionSockFromFile
Snprintf wraps the BPF helper `bpf_snprintf`. Outputs a string into the **str** buffer of size **str_size** based on a format string stored in a r
bpf/helpers_generated.go:3712
FunctionSockHashUpdate
SockHashUpdate wraps the BPF helper `bpf_sock_hash_update`. Add an entry to, or update a sockhash *map* referencing sockets. The *skops* is used as
bpf/helpers_generated.go:3734
FunctionSockMapUpdate
SockMapUpdate wraps the BPF helper `bpf_sock_map_update`. Add an entry to, or update a *map* referencing sockets. The *skops* is used as a new valu
bpf/helpers_generated.go:3758
FunctionSpinLock
SpinLock wraps the BPF helper `bpf_spin_lock`. Acquire a spinlock represented by the pointer *lock*, which is stored as part of a value of a map. T
bpf/helpers_generated.go:3858
FunctionSpinUnlock
SpinUnlock wraps the BPF helper `bpf_spin_unlock`. Release the *lock* previously locked by a call to **bpf_spin_lock**\ (\ *lock*\ ). Returns 0
bpf/helpers_generated.go:3868
FunctionStampPackets
bpf:section xdp
testdata/examples/01_timestamps.go:16
FunctionStoreHdrOpt
StoreHdrOpt wraps the BPF helper `bpf_store_hdr_opt`. Store header option. The data will be copied from buffer *from* with length *len* to the TCP
bpf/helpers_generated.go:3903
FunctionSysBpf
Strncmp wraps the BPF helper `bpf_strncmp`. Do strncmp() between **s1** and **s2**. **s1** doesn't need to be null-terminated and **s1_sz** is the
bpf/helpers_generated.go:3983
FunctionSysClose
SysClose wraps the BPF helper `bpf_sys_close`. Execute close syscall for given FD. Returns A syscall result.
bpf/helpers_generated.go:3992
FunctionTailCall
SysctlGetCurrentValue wraps the BPF helper `bpf_sysctl_get_current_value`. Get current value of sysctl as it is presented in /proc/sys (incl. newl
bpf/helpers_generated.go:4111
FunctionTaskPtRegs
TaskPtRegs wraps the BPF helper `bpf_task_pt_regs`. Get the struct pt_regs associated with **task**. Returns A pointer to struct pt_regs.
bpf/helpers_generated.go:4120
FunctionTaskStorageDelete
TaskStorageDelete wraps the BPF helper `bpf_task_storage_delete`. Delete a bpf_local_storage from a *task*. Returns 0 on success. **-ENOENT** i
bpf/helpers_generated.go:4131
FunctionTaskStorageGet
TaskStorageGet wraps the BPF helper `bpf_task_storage_get`. Get a bpf_local_storage from the *task*. Logically, it could be thought of as getting
bpf/helpers_generated.go:4162
FunctionTcpCheckSyncookie
TcpCheckSyncookie wraps the BPF helper `bpf_tcp_check_syncookie`. Check whether *iph* and *th* contain a valid SYN cookie ACK for the listening soc
bpf/helpers_generated.go:4183
FunctionTcpConnectEntry
bpf:section kprobe/tcp_connect
testdata/examples/07_kprobe_tcp_connect.go:16
FunctionTcpGenSyncookie
TcpGenSyncookie wraps the BPF helper `bpf_tcp_gen_syncookie`. Try to issue a SYN cookie for the packet with corresponding IP/TCP headers, *iph* and
bpf/helpers_generated.go:4215
FunctionTcpRawCheckSyncookieIpv4
TcpRawCheckSyncookieIpv4 wraps the BPF helper `bpf_tcp_raw_check_syncookie_ipv4`. Check whether *iph* and *th* contain a valid SYN cookie ACK witho
bpf/helpers_generated.go:4235
FunctionTcpRawCheckSyncookieIpv6
TcpRawCheckSyncookieIpv6 wraps the BPF helper `bpf_tcp_raw_check_syncookie_ipv6`. Check whether *iph* and *th* contain a valid SYN cookie ACK witho
bpf/helpers_generated.go:4255
FunctionTcpRawGenSyncookieIpv4
TcpRawGenSyncookieIpv4 wraps the BPF helper `bpf_tcp_raw_gen_syncookie_ipv4`. Try to issue a SYN cookie for the packet with corresponding IPv4/TCP
bpf/helpers_generated.go:4278
FunctionTcpRawGenSyncookieIpv6
TcpRawGenSyncookieIpv6 wraps the BPF helper `bpf_tcp_raw_gen_syncookie_ipv6`. Try to issue a SYN cookie for the packet with corresponding IPv6/TCP
bpf/helpers_generated.go:4305
FunctionTcpSendAck
TcpSendAck wraps the BPF helper `bpf_tcp_send_ack`. Send out a tcp-ack. *tp* is the in-kernel struct **tcp_sock**. *rcv_nxt* is the ack_seq to be s
bpf/helpers_generated.go:4317
FunctionTcpSock
TcpSock wraps the BPF helper `bpf_tcp_sock`. This helper gets a **struct bpf_tcp_sock** pointer from a **struct bpf_sock** pointer. Returns A **
bpf/helpers_generated.go:4328
FunctionTestAnnotateLines
(t *testing.T)
diagnose/diagnose_test.go:83
FunctionTestEmit_AutoTranslatesHelpers
(t *testing.T)
internal/transpile/emit_test.go:52
FunctionTestEmit_Helloworld
(t *testing.T)
internal/transpile/emit_test.go:13
FunctionTestEmit_SourceMap_Helloworld
(t *testing.T)
internal/transpile/sourcemap_test.go:8
FunctionTestExampleMapCoverage
TestExampleMapCoverage fails if any registered map type has no example under testdata/examples/. Keeps the example matrix and the supported surface in
internal/transpile/coverage_test.go:14
FunctionTestExampleSectionCoverage
TestExampleSectionCoverage fails if any //bpf:section kind we claim to support has no example. The list mirrors docs/status.md.
internal/transpile/coverage_test.go:33
FunctionTestExamples
TestExamples discovers every kernel-side .go fixture under testdata/examples/ and asserts that gobee parses, validates, and emits each one without err
internal/transpile/examples_test.go:15
FunctionTestFormatSourceMap_SortsAndHeaders
(t *testing.T)
internal/transpile/sourcemap_test.go:52
FunctionTestGoNameToBpfHelper
(t *testing.T)
internal/transpile/emit_test.go:96
FunctionTestLoadCuratedExamples
TestLoadCuratedExamples picks up every .bpf.o produced under example/*/bpf/bin/<arch>/ and asks the kernel to load it. This exercises: - clang's BPF
e2e/loader_test.go:41
FunctionTestParseDirective
(t *testing.T)
internal/transpile/directives_test.go:5
FunctionTestParseDirectiveErrors
(t *testing.T)
internal/transpile/directives_test.go:27
FunctionTestParseFile_Helloworld
(t *testing.T)
internal/transpile/parse_test.go:9
FunctionTestParseSourceMap
(t *testing.T)
diagnose/diagnose_test.go:10
FunctionTestParseSourceMapBytes
(t *testing.T)
diagnose/diagnose_test.go:113
FunctionTestRewrite_HelloworldHash
(t *testing.T)
diagnose/diagnose_test.go:31
← previousnext →301–400 of 474, ranked by callers