mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Rename RingBuf map to RingBuffer
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
from .maps import HashMap, PerfEventArray, RingBuf
|
from .maps import HashMap, PerfEventArray, RingBuffer
|
||||||
from .maps_pass import maps_proc
|
from .maps_pass import maps_proc
|
||||||
|
|
||||||
__all__ = ["HashMap", "PerfEventArray", "maps_proc", "RingBuf"]
|
__all__ = ["HashMap", "PerfEventArray", "maps_proc", "RingBuffer"]
|
||||||
|
|||||||
@ -36,7 +36,7 @@ class PerfEventArray:
|
|||||||
pass # Placeholder for output method
|
pass # Placeholder for output method
|
||||||
|
|
||||||
|
|
||||||
class RingBuf:
|
class RingBuffer:
|
||||||
def __init__(self, max_entries):
|
def __init__(self, max_entries):
|
||||||
self.max_entries = max_entries
|
self.max_entries = max_entries
|
||||||
|
|
||||||
|
|||||||
@ -79,7 +79,7 @@ def _parse_map_params(rval, expected_args=None):
|
|||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
||||||
@MapProcessorRegistry.register("RingBuf")
|
@MapProcessorRegistry.register("RingBuffer")
|
||||||
def process_ringbuf_map(map_name, rval, module):
|
def process_ringbuf_map(map_name, rval, module):
|
||||||
"""Process a BPF_RINGBUF map declaration"""
|
"""Process a BPF_RINGBUF map declaration"""
|
||||||
logger.info(f"Processing Ringbuf: {map_name}")
|
logger.info(f"Processing Ringbuf: {map_name}")
|
||||||
|
|||||||
Reference in New Issue
Block a user