mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2026-03-27 15:41:27 +00:00
Add module-level docstrings and helper utility docstrings
Co-authored-by: varun-r-mallya <100590632+varun-r-mallya@users.noreply.github.com>
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
"""BPF map types and processing."""
|
||||
|
||||
from .maps import HashMap, PerfEventArray, RingBuf
|
||||
from .maps_pass import maps_proc
|
||||
|
||||
|
||||
@ -1,3 +1,11 @@
|
||||
"""
|
||||
BPF map type definitions for Python type hints.
|
||||
|
||||
This module provides Python classes that represent BPF map types.
|
||||
These are used for type checking and map definition; the actual BPF maps
|
||||
are generated as LLVM IR during compilation.
|
||||
"""
|
||||
|
||||
# This file provides type and function hints only and does not actually give any functionality.
|
||||
class HashMap:
|
||||
"""
|
||||
|
||||
@ -1,3 +1,10 @@
|
||||
"""
|
||||
BPF map processing and LLVM IR generation.
|
||||
|
||||
This module handles the processing of BPF map definitions decorated with @map,
|
||||
converting them to appropriate LLVM IR global variables with BTF debug info.
|
||||
"""
|
||||
|
||||
import ast
|
||||
from logging import Logger
|
||||
from llvmlite import ir
|
||||
|
||||
Reference in New Issue
Block a user