From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 109D7C43381 for ; Fri, 1 Mar 2019 18:07:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D728E20842 for ; Fri, 1 Mar 2019 18:07:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=fb.com header.i=@fb.com header.b="KMjA9ZTP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387550AbfCASH2 (ORCPT ); Fri, 1 Mar 2019 13:07:28 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:38896 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728171AbfCASH2 (ORCPT ); Fri, 1 Mar 2019 13:07:28 -0500 Received: from pps.filterd (m0089730.ppops.net [127.0.0.1]) by m0089730.ppops.net (8.16.0.27/8.16.0.27) with SMTP id x21I0UhS028551 for ; Fri, 1 Mar 2019 10:07:27 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=facebook; bh=3sEcJfn85/V3+bx00xFgFIlRuHw9VfVmv1XY4gCSaho=; b=KMjA9ZTPqYpAmYvTYEwWZfp7CFiT8w62hi1oSaGB0SuIUU57HiYC50XE8V75x/4CIhOl ETzqEUk9O58PXLsbZGjvH7HjEDw7EPirFOlGBSVpTvFAxyRIzt4fXqfhugHEpp3aWtQD 6qIgPsvPHQe32vvPxJCXSLlGvH14YyDT24c= Received: from maileast.thefacebook.com ([199.201.65.23]) by m0089730.ppops.net with ESMTP id 2qy75cghjs-7 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 01 Mar 2019 10:07:26 -0800 Received: from mx-out.facebook.com (2620:10d:c0a1:3::13) by mail.thefacebook.com (2620:10d:c021:18::174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5; Fri, 1 Mar 2019 10:06:16 -0800 Received: by devvm424.lla2.facebook.com (Postfix, from userid 134475) id 58B21D406F9D; Fri, 1 Mar 2019 10:06:14 -0800 (PST) Smtp-Origin-Hostprefix: devvm From: Javier Honduvilla Coto Smtp-Origin-Hostname: devvm424.lla2.facebook.com To: CC: , , Javier Honduvilla Coto Smtp-Origin-Cluster: lla2c09 Subject: [PATCH v2 bpf-next 2/3] bpf: sync kernel uapi headers Date: Fri, 1 Mar 2019 10:06:13 -0800 Message-ID: <20190301180614.4134278-3-javierhonduco@fb.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190301180614.4134278-1-javierhonduco@fb.com> References: <20190226223651.3166820-2-javierhonduco@fb.com> <20190301180614.4134278-1-javierhonduco@fb.com> X-FB-Internal: Safe MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-01_12:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Javier Honduvilla Coto Sync kernel uapi headers. Signed-off-by: Javier Honduvilla Coto --- tools/include/uapi/linux/bpf.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index bcdd2474eee7..354ec295864c 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -2359,6 +2359,14 @@ union bpf_attr { * Return * A **struct bpf_tcp_sock** pointer on success, or NULL in * case of failure. + * + * int bpf_progenyof(int pid) + * Description + * This helper is useful in programs that want to filter events + * happening to a pid of any of its descendants. + * Return + * 1 if the currently executing process' pid is in the process + * hierarchy of the passed pid. 0 Otherwise. */ #define __BPF_FUNC_MAPPER(FN) \ FN(unspec), \ @@ -2457,7 +2465,8 @@ union bpf_attr { FN(spin_lock), \ FN(spin_unlock), \ FN(sk_fullsock), \ - FN(tcp_sock), + FN(tcp_sock), \ + FN(progenyof), /* integer value in 'imm' field of BPF_CALL instruction selects which helper * function eBPF program intends to call -- 2.17.1