[lkml]   [2015]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[patch 03/10] perf_event_open.2: 4.1 PERF_EVENT_IOC_SET_BPF support

This manpage patch relates to the addition of the
PERF_EVENT_IOC_SET_BPF ioctl in the following commit:

commit 2541517c32be2531e0da59dfd7efc1ce844644f5
Author: Alexei Starovoitov <>

tracing, perf: Implement BPF programs attached to kprobes

Signed-off-by: Alexei Starovoitov <>
Reviewed-by: Steven Rostedt <>
Reviewed-by: Masami Hiramatsu <>
Cc: Andrew Morton <>
Cc: Arnaldo Carvalho de Melo <>
Cc: Arnaldo Carvalho de Melo <>
Cc: Daniel Borkmann <>
Cc: David S. Miller <>
Cc: Jiri Olsa <>
Cc: Linus Torvalds <>
Cc: Namhyung Kim <>
Cc: Peter Zijlstra <>
Cc: Peter Zijlstra <>
Signed-off-by: Ingo Molnar <>

Signed-off-by: Vince Weaver <>

diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2
index 01ee579..e08288e 100644
--- a/man2/perf_event_open.2
+++ b/man2/perf_event_open.2
@@ -2480,6 +2480,16 @@ 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.
+.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.
+The argument is a BPF program id 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

 \ /
  Last update: 2015-04-16 20:21    [W:0.042 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site