Package one.nio.os.bpf
Class Bpf
java.lang.Object
one.nio.os.bpf.Bpf
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int(package private) static final int(package private) static final intstatic final int(package private) static final intstatic final boolean(package private) static final int(package private) static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static intmapCreate(int type, int keySize, int valueSize, int maxEntries, String name, int flags, int innerMapFd) (package private) static intmapGetFdById(int id) (package private) static StringmapGetInfo(int fd, int[] result) (package private) static booleanmapGetNextKey(int fd, byte[] key, byte[] nextKey) (package private) static booleanmapLookup(int fd, byte[] key, byte[] result, int flags) (package private) static booleanmapRemove(int fd, byte[] key) (package private) static booleanmapUpdate(int fd, byte[] key, byte[] value, int flags) (package private) static int(package private) static void(package private) static intobjGetNextId(int type, int startId) (package private) static intprogGetFdById(int id) (package private) static StringprogGetInfo(int fd, int[] result) (package private) static int[]progGetMapIds(int fd) (package private) static int(package private) static voidprogTestRun(int fd, byte[] dataIn, int lenDataIn, byte[] dataOut, byte[] ctxIn, int lenCtxIn, byte[] ctxOut, int[] retvals) (package private) static intrawTracepointOpen(int progFd, String name)
-
Field Details
-
IS_SUPPORTED
public static final boolean IS_SUPPORTED -
OBJ_PROG
static final int OBJ_PROG- See Also:
-
OBJ_MAP
static final int OBJ_MAP- See Also:
-
BPF_ANY
- See Also:
-
BPF_NOEXIST
- See Also:
-
BPF_EXIST
- See Also:
-
BPF_F_LOCK
- See Also:
-
BPF_F_MMAPABLE
public static final int BPF_F_MMAPABLE- See Also:
-
-
Constructor Details
-
Bpf
public Bpf()
-
-
Method Details
-
objGetNextId
static int objGetNextId(int type, int startId) -
progLoad
- Throws:
IOException
-
objectGet
- Throws:
IOException
-
objectPin
- Throws:
IOException
-
progGetFdById
- Throws:
IOException
-
mapGetFdById
- Throws:
IOException
-
progGetInfo
- Throws:
IOException
-
progGetMapIds
- Throws:
IOException
-
progTestRun
static void progTestRun(int fd, byte[] dataIn, int lenDataIn, byte[] dataOut, byte[] ctxIn, int lenCtxIn, byte[] ctxOut, int[] retvals) throws IOException - Throws:
IOException
-
rawTracepointOpen
- Throws:
IOException
-
mapGetInfo
- Throws:
IOException
-
mapCreate
static int mapCreate(int type, int keySize, int valueSize, int maxEntries, String name, int flags, int innerMapFd) throws IOException - Throws:
IOException
-
mapLookup
- Throws:
IOException
-
mapUpdate
- Throws:
IOException
-
mapRemove
- Throws:
IOException
-
mapGetNextKey
static boolean mapGetNextKey(int fd, byte[] key, byte[] nextKey)
-