MCPcopy Create free account

hub / github.com/boratanrikulu/gobee / types & classes

Types & classes106 in github.com/boratanrikulu/gobee

StructArrayMap
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
StructBloomFilter
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
TypeAliasCgroupSkbReturn
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
StructCounter
bpf:license GPL
testdata/examples/21_task_storage.go:13
StructCpuMap
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
StructDevMap
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
StructDiagnostic
Diagnostic is a validator finding at a specific source position.
internal/transpile/validate.go:14
TypeAliasDiagnostics
Diagnostics is a slice of diagnostics with a combined Error rendering.
internal/transpile/validate.go:23
StructEvent
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
StructExecEvent
bpf:license GPL
testdata/examples/16_ringbuf_exec.go:13
StructExecveEnterCtx
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
StructFileStats
bpf:license GPL
testdata/examples/28_inode_storage.go:13
StructHashMap
HashMap is a BPF_MAP_TYPE_HASH.
bpf/maps.go:28
StructHelperFunc
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
StructInodeStorage
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
TypeAliasKpReturn
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
StructLpmTrie
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
StructLruHashMap
LruHashMap is a BPF_MAP_TYPE_LRU_HASH. Behaves like HashMap but evicts the least-recently-used entry when full.
bpf/maps.go:38
StructLruPerCPUHash
LruPerCPUHash is a BPF_MAP_TYPE_LRU_PERCPU_HASH.
bpf/maps.go:67
StructLsmCtx
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
TypeAliasLsmReturn
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
StructMapDecl
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
StructOpenatEnterCtx
OpenatEnterCtx is the syscall-specific context for `tracepoint/syscalls/sys_enter_openat`.
bpf/syscall.go:38
StructPerCPUArray
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
StructPerCPUHash
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
StructPerfEventArray
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
StructProgArray
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
StructProgram
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
StructProgramFunc
ProgramFunc is a top-level function annotated with `//bpf:section`.
internal/transpile/program.go:81
StructPtRegs
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
StructQueue
Queue is a BPF_MAP_TYPE_QUEUE — FIFO of T values.
bpf/maps.go:104
StructResult
Result describes one emitted artifact.
internal/transpile/pipeline.go:35
StructRingBuf
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
StructRunOptions
RunOptions configures a single `gobee translate` invocation.
internal/transpile/pipeline.go:12
StructSampleEvent
bpf:license GPL
testdata/examples/20_perf_event_array.go:17
StructSkBuff
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
StructSkStorage
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
StructSockOpsMd
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
TypeAliasSockOpsReturn
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
StructSockStats
bpf:license GPL
testdata/examples/27_sk_storage.go:14
TypeAliasSourceMap
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
StructSourceMapping
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
StructStack
Stack is a BPF_MAP_TYPE_STACK — LIFO of T values.
bpf/maps.go:113
StructSyscallEnterCtx
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
StructSyscallExitCtx
SyscallExitCtx is the typed context for syscall-exit tracepoints (`tracepoint/syscalls/sys_exit_*`). Ret is the syscall return value.
bpf/syscall.go:18
StructTaskStorage
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
TypeAliasTcAction
TcAction is the return type of a TC classifier/action program.
bpf/skb.go:35
TypeAliasTpReturn
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
StructTracepointCtx
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
StructUserConstDecl
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
StructUserTypeDecl
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
StructV4Key
bpf:license GPL
testdata/examples/23_lpm_trie.go:13
TypeAliasXdpAction
XdpAction is the return type of an XDP program; values map 1:1 to the kernel XDP_* constants.
bpf/xdp.go:23
StructXdpMd
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
StructXskMap
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
StructattachHelper
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
StructbindingField
internal/transpile/bindings.go:289
StructbpfTypeInfo
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
Classbpf_dynptr
tools/genhelpers/data/bpf_helper_defs.h:43
Classbpf_fib_lookup
Forward declarations of BPF structs */
tools/genhelpers/data/bpf_helper_defs.h:4
Classbpf_perf_event_data
tools/genhelpers/data/bpf_helper_defs.h:6
Classbpf_perf_event_value
tools/genhelpers/data/bpf_helper_defs.h:7
Classbpf_pidns_info
tools/genhelpers/data/bpf_helper_defs.h:8
Classbpf_redir_neigh
tools/genhelpers/data/bpf_helper_defs.h:9
Classbpf_sk_lookup
tools/genhelpers/data/bpf_helper_defs.h:5
Classbpf_sock
tools/genhelpers/data/bpf_helper_defs.h:10
Classbpf_sock_addr
tools/genhelpers/data/bpf_helper_defs.h:11
Classbpf_sock_ops
tools/genhelpers/data/bpf_helper_defs.h:12
Classbpf_sock_tuple
tools/genhelpers/data/bpf_helper_defs.h:13
Classbpf_spin_lock
tools/genhelpers/data/bpf_helper_defs.h:14
Classbpf_sysctl
tools/genhelpers/data/bpf_helper_defs.h:15
Classbpf_tcp_sock
tools/genhelpers/data/bpf_helper_defs.h:16
Classbpf_timer
tools/genhelpers/data/bpf_helper_defs.h:41
Classbpf_tunnel_key
tools/genhelpers/data/bpf_helper_defs.h:17
Classbpf_xfrm_state
tools/genhelpers/data/bpf_helper_defs.h:18
Classbtf_ptr
tools/genhelpers/data/bpf_helper_defs.h:37
Classcgroup
tools/genhelpers/data/bpf_helper_defs.h:32
Structdirective
directive is a parsed `//bpf:<name> [args...] [k=v ...]` comment.
internal/transpile/directives.go:12
Structemitter
internal/transpile/emit.go:57
Classfile
tools/genhelpers/data/bpf_helper_defs.h:40
Structhelper
helper is one parsed entry from bpf_helper_defs.h.
tools/genhelpers/main.go:60
Classinode
tools/genhelpers/data/bpf_helper_defs.h:38
Classiphdr
tools/genhelpers/data/bpf_helper_defs.h:44
Classipv6hdr
tools/genhelpers/data/bpf_helper_defs.h:45
Classlinux_binprm
tools/genhelpers/data/bpf_helper_defs.h:19
Classmptcp_sock
tools/genhelpers/data/bpf_helper_defs.h:42
Structparam
tools/genhelpers/main.go:69
Classpath
tools/genhelpers/data/bpf_helper_defs.h:36
Classpt_regs
tools/genhelpers/data/bpf_helper_defs.h:20
Classseq_file
tools/genhelpers/data/bpf_helper_defs.h:24
Classsk_msg_md
tools/genhelpers/data/bpf_helper_defs.h:34
Classsk_reuseport_md
tools/genhelpers/data/bpf_helper_defs.h:21
Classsockaddr
tools/genhelpers/data/bpf_helper_defs.h:22
Classsocket
tools/genhelpers/data/bpf_helper_defs.h:39
Classtask_struct
tools/genhelpers/data/bpf_helper_defs.h:31
Classtcp6_sock
tools/genhelpers/data/bpf_helper_defs.h:25
Classtcp_request_sock
tools/genhelpers/data/bpf_helper_defs.h:28
Classtcp_sock
tools/genhelpers/data/bpf_helper_defs.h:26
Classtcp_timewait_sock
tools/genhelpers/data/bpf_helper_defs.h:27
next →1–100 of 106, ranked by callers