Class Bpf


  • public class Bpf
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Bpf()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static int mapCreate​(int type, int keySize, int valueSize, int maxEntries, java.lang.String name, int flags, int innerMapFd)  
      (package private) static int mapGetFdById​(int id)  
      (package private) static java.lang.String mapGetInfo​(int fd, int[] result)  
      (package private) static boolean mapGetNextKey​(int fd, byte[] key, byte[] nextKey)  
      (package private) static boolean mapLookup​(int fd, byte[] key, byte[] result, int flags)  
      (package private) static boolean mapRemove​(int fd, byte[] key)  
      (package private) static boolean mapUpdate​(int fd, byte[] key, byte[] value, int flags)  
      (package private) static int objectGet​(java.lang.String pathName)  
      (package private) static void objectPin​(int fd, java.lang.String pathName)  
      (package private) static int objGetNextId​(int type, int startId)  
      (package private) static int progGetFdById​(int id)  
      (package private) static java.lang.String progGetInfo​(int fd, int[] result)  
      (package private) static int[] progGetMapIds​(int fd)  
      (package private) static int progLoad​(java.lang.String path, int type)  
      (package private) static void progTestRun​(int fd, byte[] dataIn, int lenDataIn, byte[] dataOut, byte[] ctxIn, int lenCtxIn, byte[] ctxOut, int[] retvals)  
      (package private) static int rawTracepointOpen​(int progFd, java.lang.String name)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Bpf

        public Bpf()
    • 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)