diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2 index 257be7c06..3d170e7a4 100644 --- a/man2/perf_event_open.2 +++ b/man2/perf_event_open.2 @@ -2570,6 +2570,19 @@ This returns the event ID value for the given event file descriptor. The argument is a pointer to a 64-bit unsigned integer to hold the result. +.TP +.BR PERF_EVENT_IOC_SET_BPF " (since Linux 4.1)" +.\" commit 2541517c32be2531e0da59dfd7efc1ce844644f5 +This allows attaching a Berkeley Packet Filter (BPF) +program to an existing kprobe tracepoint event. +You need +.B CAP_SYS_ADMIN +privileges to use this ioctl. + +The argument is a BPF program file descriptor that was created by +a previous +.BR bpf (2) +system call. .SS Using prctl A process can enable or disable all the event groups that are attached to it using the