Package one.nio.os.bpf
Class BpfProg
- java.lang.Object
-
- one.nio.os.bpf.Handle
-
- one.nio.os.bpf.BpfObj
-
- one.nio.os.bpf.BpfProg
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class BpfProg extends BpfObj
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattach(PerfCounter counter)HandleattachRawTracepoint(String name)static Iterable<Integer>getAllIds()static BpfProggetByFd(int fd)static BpfProggetById(int id)int[]getMapIds()static BpfProggetPinned(String path)static BpfProgload(String path, ProgType type)
-
-
-
Field Detail
-
type
public final ProgType type
-
-
Method Detail
-
load
public static BpfProg load(String path, ProgType type) throws IOException
- Throws:
IOException
-
getPinned
public static BpfProg getPinned(String path) throws IOException
- Throws:
IOException
-
getById
public static BpfProg getById(int id) throws IOException
- Throws:
IOException
-
getByFd
public static BpfProg getByFd(int fd) throws IOException
- Throws:
IOException
-
attach
public void attach(PerfCounter counter) throws IOException
- Throws:
IOException
-
attachRawTracepoint
public Handle attachRawTracepoint(String name) throws IOException
- Throws:
IOException
-
getMapIds
public int[] getMapIds() throws IOException- Throws:
IOException
-
-