Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boratanrikulu/gobee
/ types & classes
Types & classes
106 in github.com/boratanrikulu/gobee
⨍
Functions
474
◇
Types & classes
106
Struct
ArrayMap
keep the import live across edits Maps are declared at package scope as a struct literal of one of the types in this file. The kind of map (array / ha
bpf/maps.go:19
Struct
BloomFilter
BloomFilter is a BPF_MAP_TYPE_BLOOM_FILTER. Bloom filters answer "have I seen X?" with no false negatives but possible false positives. They have no p
bpf/maps.go:78
TypeAlias
CgroupSkbReturn
CgroupSkbReturn is the return type of a cgroup_skb program. The kernel treats 0 as "drop" and 1 as "allow"; everything else is reserved.
bpf/skb.go:53
Struct
Counter
bpf:license GPL
testdata/examples/21_task_storage.go:13
Struct
CpuMap
CpuMap is a BPF_MAP_TYPE_CPUMAP: per-CPU dispatch for XDP redirect. Userspace pins each slot to a CPU plus an optional follow-up BPF program. Redirect
bpf/maps.go:178
Struct
DevMap
XDP redirect-target maps. These don't store user state; they tell the verifier that XDP_REDIRECT is allowed to point at the entries userspace populate
bpf/maps.go:159
Struct
Diagnostic
Diagnostic is a validator finding at a specific source position.
internal/transpile/validate.go:14
TypeAlias
Diagnostics
Diagnostics is a slice of diagnostics with a combined Error rendering.
internal/transpile/validate.go:23
Struct
Event
bpf:license GPL Event is the tagged payload all event-driven programs publish to the ringbuf. Field layout uses only 4-byte-aligned types so Go's bina
example/sysmon/bpf/src/sysmon.go:13
Struct
ExecEvent
bpf:license GPL
testdata/examples/16_ringbuf_exec.go:13
Struct
ExecveEnterCtx
ExecveEnterCtx is the syscall-specific context for `tracepoint/syscalls/sys_enter_execve`. Each field is a userspace pointer (uint64) named after the
bpf/syscall.go:30
Struct
FileStats
bpf:license GPL
testdata/examples/28_inode_storage.go:13
Struct
HashMap
HashMap is a BPF_MAP_TYPE_HASH.
bpf/maps.go:28
Struct
HelperFunc
HelperFunc is a top-level function without a //bpf:section directive. The emitter renders these as `static __always_inline` functions in C so callers
internal/transpile/program.go:41
Struct
InodeStorage
InodeStorage is a BPF_MAP_TYPE_INODE_STORAGE. Stores one V per `struct inode *`. Common in LSM hooks and file-related tracing.
bpf/maps.go:229
TypeAlias
KpReturn
KpReturn is the return type of kprobe / kretprobe / uprobe / uretprobe programs. The kernel ignores the value; convention is to return 0.
bpf/kprobe.go:14
Struct
LpmTrie
LpmTrie is a BPF_MAP_TYPE_LPM_TRIE. Longest-prefix-match lookups, useful for IP routing-style tables. The key type K must start with a `__u32 prefixl
bpf/maps.go:95
Struct
LruHashMap
LruHashMap is a BPF_MAP_TYPE_LRU_HASH. Behaves like HashMap but evicts the least-recently-used entry when full.
bpf/maps.go:38
Struct
LruPerCPUHash
LruPerCPUHash is a BPF_MAP_TYPE_LRU_PERCPU_HASH.
bpf/maps.go:67
Struct
LsmCtx
LsmCtx is the context pointer passed to an LSM (Linux Security Module) BPF program. Renders as `void *` in the emitted C. LSM has ~200 hooks (file_op
bpf/lsm.go:11
TypeAlias
LsmReturn
LsmReturn is the return type of an LSM program. The kernel treats 0 as "allow" and any negative value as a denial (typically `-EPERM`, `-EACCES`, etc.
bpf/lsm.go:16
Struct
MapDecl
MapDecl is a BPF map declared at package scope. The map kind comes from the Go type (ArrayMap, HashMap, RingBuf, …); K and V from the generic type arg
internal/transpile/program.go:69
Struct
OpenatEnterCtx
OpenatEnterCtx is the syscall-specific context for `tracepoint/syscalls/sys_enter_openat`.
bpf/syscall.go:38
Struct
PerCPUArray
PerCPUArray is a BPF_MAP_TYPE_PERCPU_ARRAY. Each CPU has its own copy of every slot; kernel-side Lookup returns the current CPU's slot.
bpf/maps.go:48
Struct
PerCPUHash
PerCPUHash is a BPF_MAP_TYPE_PERCPU_HASH. Like PerCPUArray but keyed by a hashable type instead of a 32-bit index.
bpf/maps.go:58
Struct
PerfEventArray
PerfEventArray is a BPF_MAP_TYPE_PERF_EVENT_ARRAY: per-CPU perf event buffers used to deliver events to userspace. For new code prefer RingBuf — perf_
bpf/maps.go:141
Struct
ProgArray
ProgArray is a BPF_MAP_TYPE_PROG_ARRAY: a uint32-indexed table of BPF program references, used for tail calls. Userspace populates entries with progr
bpf/maps.go:127
Struct
Program
Program is the intermediate representation produced by parsing a single gobee input file. The C emitter consumes this and writes BPF C.
internal/transpile/program.go:21
Struct
ProgramFunc
ProgramFunc is a top-level function annotated with `//bpf:section`.
internal/transpile/program.go:81
Struct
PtRegs
PtRegs is the context pointer for kprobe, kretprobe, uprobe, and uretprobe BPF programs. Renders as `struct pt_regs *` in the emitted C. pt_regs has
bpf/kprobe.go:10
Struct
Queue
Queue is a BPF_MAP_TYPE_QUEUE — FIFO of T values.
bpf/maps.go:104
Struct
Result
Result describes one emitted artifact.
internal/transpile/pipeline.go:35
Struct
RingBuf
RingBuf is a BPF_MAP_TYPE_RINGBUF for delivering events from kernel to userspace. MaxEntries is the byte size of the ring (must be a power of 2, at le
bpf/ringbuf.go:26
Struct
RunOptions
RunOptions configures a single `gobee translate` invocation.
internal/transpile/pipeline.go:12
Struct
SampleEvent
bpf:license GPL
testdata/examples/20_perf_event_array.go:17
Struct
SkBuff
SkBuff is the context pointer for TC (classifier/action) and cgroup_skb programs. Renders as `struct __sk_buff *` in the emitted C. Field access (e.g.
bpf/skb.go:7
Struct
SkStorage
SkStorage is a BPF_MAP_TYPE_SK_STORAGE. Stores one V per `struct sock *`. Available in sock_ops, cgroup_skb, and tracing programs that get a sock poin
bpf/maps.go:221
Struct
SockOpsMd
SockOpsMd is the context pointer for sock_ops BPF programs. Renders as `struct bpf_sock_ops *` in emitted C. `bpf_sock_ops` is a UAPI BPF program cont
bpf/sockops.go:7
TypeAlias
SockOpsReturn
SockOpsReturn is the return type of a sock_ops program. The kernel uses non-zero to mean "drop / abort" for some op variants and ignores it for others
bpf/sockops.go:32
Struct
SockStats
bpf:license GPL
testdata/examples/27_sk_storage.go:14
TypeAlias
SourceMap
SourceMap is the in-memory shape of a `.bpf.c.map` file. Keys are emitted-C line numbers; values are Go positions formatted as `file:line:col`.
diagnose/diagnose.go:30
Struct
SourceMapping
SourceMapping ties one line in the emitted C back to its originating Go source position. Used by `gobee diagnose` to rewrite verifier errors.
internal/transpile/sourcemap.go:13
Struct
Stack
Stack is a BPF_MAP_TYPE_STACK — LIFO of T values.
bpf/maps.go:113
Struct
SyscallEnterCtx
SyscallEnterCtx is the typed context for syscall-entry tracepoints (`tracepoint/syscalls/sys_enter_*`). Renders as `struct trace_event_raw_sys_enter *
bpf/syscall.go:11
Struct
SyscallExitCtx
SyscallExitCtx is the typed context for syscall-exit tracepoints (`tracepoint/syscalls/sys_exit_*`). Ret is the syscall return value.
bpf/syscall.go:18
Struct
TaskStorage
Per-object storage maps below. These keep one V per kernel object — task / socket / inode — and don't need MaxEntries (the kernel sizes the map dynami
bpf/maps.go:206
TypeAlias
TcAction
TcAction is the return type of a TC classifier/action program.
bpf/skb.go:35
TypeAlias
TpReturn
TpReturn is the return type of a tracepoint program. Legacy tracepoints always return 0; non-zero values are reserved for future kernel use and are cu
bpf/tracepoint.go:13
Struct
TracepointCtx
TracepointCtx is the context pointer passed to a tracepoint BPF program. Renders as `void *` in emitted C because each tracepoint hook has its own aut
bpf/tracepoint.go:8
Struct
UserConstDecl
UserConstDecl is a package-level const declaration. The bindings emitter re-publishes these (capitalized) so userspace can reference the same values t
internal/transpile/program.go:50
Struct
UserTypeDecl
UserTypeDecl is a user-defined struct (e.g. a ringbuf event payload). The emitter renders these as `struct <Name> { ... };` in C.
internal/transpile/program.go:59
Struct
V4Key
bpf:license GPL
testdata/examples/23_lpm_trie.go:13
TypeAlias
XdpAction
XdpAction is the return type of an XDP program; values map 1:1 to the kernel XDP_* constants.
bpf/xdp.go:23
Struct
XdpMd
XdpMd mirrors `struct xdp_md` from the Linux kernel. In transpiled C it becomes `struct xdp_md *`; field access (e.g. `ctx.IngressIfIndex`) is emitted
bpf/xdp.go:12
Struct
XskMap
XskMap is a BPF_MAP_TYPE_XSKMAP: AF_XDP socket table for zero-copy userspace networking. Userspace pins each slot to an AF_XDP socket fd. Redirect(ctx
bpf/maps.go:190
Class
__sk_buff
tools/genhelpers/data/bpf_helper_defs.h:33
Struct
attachHelper
attachHelper describes one generated Attach<Name> method. Body uses the literal placeholder $PROG which is replaced with `o.<Field>` at emit time so t
internal/transpile/bindings.go:298
Struct
bindingField
internal/transpile/bindings.go:289
Struct
bpfTypeInfo
bpfTypeInfo describes how a Go type from the bpf package maps to C. One entry per type. Adding a new bpf-package type = one row, no other places to up
internal/transpile/types.go:58
Class
bpf_dynptr
tools/genhelpers/data/bpf_helper_defs.h:43
Class
bpf_fib_lookup
Forward declarations of BPF structs */
tools/genhelpers/data/bpf_helper_defs.h:4
Class
bpf_perf_event_data
tools/genhelpers/data/bpf_helper_defs.h:6
Class
bpf_perf_event_value
tools/genhelpers/data/bpf_helper_defs.h:7
Class
bpf_pidns_info
tools/genhelpers/data/bpf_helper_defs.h:8
Class
bpf_redir_neigh
tools/genhelpers/data/bpf_helper_defs.h:9
Class
bpf_sk_lookup
tools/genhelpers/data/bpf_helper_defs.h:5
Class
bpf_sock
tools/genhelpers/data/bpf_helper_defs.h:10
Class
bpf_sock_addr
tools/genhelpers/data/bpf_helper_defs.h:11
Class
bpf_sock_ops
tools/genhelpers/data/bpf_helper_defs.h:12
Class
bpf_sock_tuple
tools/genhelpers/data/bpf_helper_defs.h:13
Class
bpf_spin_lock
tools/genhelpers/data/bpf_helper_defs.h:14
Class
bpf_sysctl
tools/genhelpers/data/bpf_helper_defs.h:15
Class
bpf_tcp_sock
tools/genhelpers/data/bpf_helper_defs.h:16
Class
bpf_timer
tools/genhelpers/data/bpf_helper_defs.h:41
Class
bpf_tunnel_key
tools/genhelpers/data/bpf_helper_defs.h:17
Class
bpf_xfrm_state
tools/genhelpers/data/bpf_helper_defs.h:18
Class
btf_ptr
tools/genhelpers/data/bpf_helper_defs.h:37
Class
cgroup
tools/genhelpers/data/bpf_helper_defs.h:32
Struct
directive
directive is a parsed `//bpf:<name> [args...] [k=v ...]` comment.
internal/transpile/directives.go:12
Struct
emitter
internal/transpile/emit.go:57
Class
file
tools/genhelpers/data/bpf_helper_defs.h:40
Struct
helper
helper is one parsed entry from bpf_helper_defs.h.
tools/genhelpers/main.go:60
Class
inode
tools/genhelpers/data/bpf_helper_defs.h:38
Class
iphdr
tools/genhelpers/data/bpf_helper_defs.h:44
Class
ipv6hdr
tools/genhelpers/data/bpf_helper_defs.h:45
Class
linux_binprm
tools/genhelpers/data/bpf_helper_defs.h:19
Class
mptcp_sock
tools/genhelpers/data/bpf_helper_defs.h:42
Struct
param
tools/genhelpers/main.go:69
Class
path
tools/genhelpers/data/bpf_helper_defs.h:36
Class
pt_regs
tools/genhelpers/data/bpf_helper_defs.h:20
Class
seq_file
tools/genhelpers/data/bpf_helper_defs.h:24
Class
sk_msg_md
tools/genhelpers/data/bpf_helper_defs.h:34
Class
sk_reuseport_md
tools/genhelpers/data/bpf_helper_defs.h:21
Class
sockaddr
tools/genhelpers/data/bpf_helper_defs.h:22
Class
socket
tools/genhelpers/data/bpf_helper_defs.h:39
Class
task_struct
tools/genhelpers/data/bpf_helper_defs.h:31
Class
tcp6_sock
tools/genhelpers/data/bpf_helper_defs.h:25
Class
tcp_request_sock
tools/genhelpers/data/bpf_helper_defs.h:28
Class
tcp_sock
tools/genhelpers/data/bpf_helper_defs.h:26
Class
tcp_timewait_sock
tools/genhelpers/data/bpf_helper_defs.h:27
next →
1–100 of 106, ranked by callers