Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753863AbbGWRDn (ORCPT ); Thu, 23 Jul 2015 13:03:43 -0400 Received: from mail-oi0-f54.google.com ([209.85.218.54]:36223 "EHLO mail-oi0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753448AbbGWRDl (ORCPT ); Thu, 23 Jul 2015 13:03:41 -0400 From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Thu, 23 Jul 2015 13:10:21 -0400 (EDT) To: "Michael Kerrisk (man-pages)" cc: linux-man@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Stephane Eranian , Alexei Starovoitov , Steven Rostedt , Masami Hiramatsu , Andrew Morton , Daniel Borkmann , "David S. Miller" , Jiri Olsa , Linus Torvalds , Namhyung Kim , Vince Weaver Subject: [patch 03/11] perf_event_open.2: 4.1 PERF_EVENT_IOC_SET_BPF support Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2119 Lines: 57 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 Link: http://lkml.kernel.org/r/1427312966-8434-4-git-send-email-ast@plumgrid.com 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 a6b90ec..09eda9a 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/