Class PerfCounterGlobal

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class PerfCounterGlobal
    extends PerfCounter
    • Field Detail

      • fds

        final int[] fds
    • Constructor Detail

      • PerfCounterGlobal

        PerfCounterGlobal​(PerfEvent event,
                          long readFormat,
                          int[] fds)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class PerfCounter
      • get

        public long get()
                 throws java.io.IOException
        Overrides:
        get in class PerfCounter
        Throws:
        java.io.IOException
      • getForCpu

        public long getForCpu​(int cpu)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getValueForCpu

        public LocalValue getValueForCpu​(int cpu)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getRawValue

        protected long[] getRawValue()
                              throws java.io.IOException
        Overrides:
        getRawValue in class PerfCounter
        Throws:
        java.io.IOException
      • ioctl

        void ioctl​(int cmd,
                   int arg)
            throws java.io.IOException
        Overrides:
        ioctl in class PerfCounter
        Throws:
        java.io.IOException
      • storeTo

        public void storeTo​(BpfMap map)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • storeTo

        public void storeTo​(BpfMap map,
                            int cpu)
                     throws java.io.IOException
        Throws:
        java.io.IOException