Package one.nio.os.bpf
Class Bpf
- java.lang.Object
-
- one.nio.os.bpf.Bpf
-
public class Bpf extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static intBPF_ANY(package private) static intBPF_EXIST(package private) static intBPF_F_LOCKstatic intBPF_F_MMAPABLE(package private) static intBPF_NOEXISTstatic booleanIS_SUPPORTED(package private) static intOBJ_MAP(package private) static intOBJ_PROG
-
Constructor Summary
Constructors Constructor Description Bpf()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static intmapCreate(int type, int keySize, int valueSize, int maxEntries, java.lang.String name, int flags, int innerMapFd)(package private) static intmapGetFdById(int id)(package private) static java.lang.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 intobjectGet(java.lang.String pathName)(package private) static voidobjectPin(int fd, java.lang.String pathName)(package private) static intobjGetNextId(int type, int startId)(package private) static intprogGetFdById(int id)(package private) static java.lang.StringprogGetInfo(int fd, int[] result)(package private) static int[]progGetMapIds(int fd)(package private) static intprogLoad(java.lang.String path, int type)(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, java.lang.String name)
-
-
-
Field Detail
-
IS_SUPPORTED
public static final boolean IS_SUPPORTED
-
OBJ_PROG
static final int OBJ_PROG
- See Also:
- Constant Field Values
-
OBJ_MAP
static final int OBJ_MAP
- See Also:
- Constant Field Values
-
BPF_ANY
@Native static final int BPF_ANY
- See Also:
- Constant Field Values
-
BPF_NOEXIST
@Native static final int BPF_NOEXIST
- See Also:
- Constant Field Values
-
BPF_EXIST
@Native static final int BPF_EXIST
- See Also:
- Constant Field Values
-
BPF_F_LOCK
@Native static final int BPF_F_LOCK
- See Also:
- Constant Field Values
-
BPF_F_MMAPABLE
public static final int BPF_F_MMAPABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
objGetNextId
static int objGetNextId(int type, int startId)
-
progLoad
static int progLoad(java.lang.String path, int type) throws java.io.IOException- Throws:
java.io.IOException
-
objectGet
static int objectGet(java.lang.String pathName) throws java.io.IOException- Throws:
java.io.IOException
-
objectPin
static void objectPin(int fd, java.lang.String pathName) throws java.io.IOException- Throws:
java.io.IOException
-
progGetFdById
static int progGetFdById(int id) throws java.io.IOException- Throws:
java.io.IOException
-
mapGetFdById
static int mapGetFdById(int id) throws java.io.IOException- Throws:
java.io.IOException
-
progGetInfo
static java.lang.String progGetInfo(int fd, int[] result) throws java.io.IOException- Throws:
java.io.IOException
-
progGetMapIds
static int[] progGetMapIds(int fd) throws java.io.IOException- Throws:
java.io.IOException
-
progTestRun
static void progTestRun(int fd, byte[] dataIn, int lenDataIn, byte[] dataOut, byte[] ctxIn, int lenCtxIn, byte[] ctxOut, int[] retvals) throws java.io.IOException- Throws:
java.io.IOException
-
rawTracepointOpen
static int rawTracepointOpen(int progFd, java.lang.String name) throws java.io.IOException- Throws:
java.io.IOException
-
mapGetInfo
static java.lang.String mapGetInfo(int fd, int[] result) throws java.io.IOException- Throws:
java.io.IOException
-
mapCreate
static int mapCreate(int type, int keySize, int valueSize, int maxEntries, java.lang.String name, int flags, int innerMapFd) throws java.io.IOException- Throws:
java.io.IOException
-
mapLookup
static boolean mapLookup(int fd, byte[] key, byte[] result, int flags) throws java.io.IOException- Throws:
java.io.IOException
-
mapUpdate
static boolean mapUpdate(int fd, byte[] key, byte[] value, int flags) throws java.io.IOException- Throws:
java.io.IOException
-
mapRemove
static boolean mapRemove(int fd, byte[] key) throws java.io.IOException- Throws:
java.io.IOException
-
mapGetNextKey
static boolean mapGetNextKey(int fd, byte[] key, byte[] nextKey)
-
-