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=-17.4 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT, USER_IN_DEF_DKIM_WL 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 8B652ECE58E for ; Fri, 11 Oct 2019 16:21:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5BA3D206A1 for ; Fri, 11 Oct 2019 16:21:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="DRaWA1Es" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728220AbfJKQV3 (ORCPT ); Fri, 11 Oct 2019 12:21:29 -0400 Received: from mail-pf1-f201.google.com ([209.85.210.201]:53772 "EHLO mail-pf1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726728AbfJKQV3 (ORCPT ); Fri, 11 Oct 2019 12:21:29 -0400 Received: by mail-pf1-f201.google.com with SMTP id x10so7836925pfr.20 for ; Fri, 11 Oct 2019 09:21:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=KDZVxGGvtoUTk1RqaetpoYQq+Ui+ut5COCWag7pw9rs=; b=DRaWA1Es/TQ8MVC3DtaBGIaen9YrP/2hLr9y9MZxWp8SXEdVYr5u4cdb6TJ3Hix2zS bkfcW2q4LSTdI+uT+AAGvBNP0JndC/SqeVQ06d9DwH16mIJGMFUFwdm5RdrF50Glhdm+ a3wkCKWdFktlB7XTIpCAu87NNT0qivmeXhH46m69IXRNmfJCRjVg+/ReQ7t4JgZhZu9E Fe9B68y/+3fKC54rEgj68JFPjR+Q1YALQTfmGuUBopPBBXGTvUnr4a8Zkyte8lZNJxpf U7hY8rYRGi3MlTs2t/lKe+WWt9yQe4goE706HRX8NZgMZgZDsOpXiEKumLwhCWdQgABf 0qFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=KDZVxGGvtoUTk1RqaetpoYQq+Ui+ut5COCWag7pw9rs=; b=Ln2tBpWyOFF+pYiiEPHuq1hqpLHcUB9YbadFn5JjGRvL1x6SlhSli8yZis30TvrSRc hcNrTWZisJsiRLe7oLc4nyFuwYxKdWmwa4/8bLdBRvYYSJab97CS8Euy/Lw1akxKIccV I6LOF4Ebw3Bum1W4VVaetJoVB7tI8zdZvOa4ggEOBlRtqgzeqV7RbRpSR92usaa8zrjl CWscKK5EAjxy8931skI80+PThdT+nJ71qYiSmvxK3p9MY1jVnFswF96CHvLLgOl+Uf2p EXI7eI8+L9Xhzyp0Cuf8LoQwvdyYg2En3vzqGOD3t6JqmFZWUQ1KJJXI8ofm8zKUnIPW +mVg== X-Gm-Message-State: APjAAAXGXAuId/X70zEnqCbSUJAN4xIV/Uywyq7Oh33J1JGMN3KkVWZV O8+Hi7NDCUDIymUe2vmwc/pA6cE= X-Google-Smtp-Source: APXvYqxjQ1ZelYEyr7jRyX7StJ5karSIgWLxQNUdmm4yZKlp0cBxP1qTlJcBEuygrfv3aTUR+9WvFyo= X-Received: by 2002:a63:d450:: with SMTP id i16mr17496713pgj.126.1570810888835; Fri, 11 Oct 2019 09:21:28 -0700 (PDT) Date: Fri, 11 Oct 2019 09:21:23 -0700 In-Reply-To: <20191011162124.52982-1-sdf@google.com> Message-Id: <20191011162124.52982-2-sdf@google.com> Mime-Version: 1.0 References: <20191011162124.52982-1-sdf@google.com> X-Mailer: git-send-email 2.23.0.700.g56cf767bdb-goog Subject: [PATCH bpf-next 2/3] tools/bpf: sync bpf.h From: Stanislav Fomichev To: netdev@vger.kernel.org, bpf@vger.kernel.org Cc: davem@davemloft.net, ast@kernel.org, daniel@iogearbox.net, Stanislav Fomichev Content-Type: text/plain; charset="UTF-8" Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Add created_by_comm. Signed-off-by: Stanislav Fomichev --- tools/include/uapi/linux/bpf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index a65c3b0c6935..4e883ecbba1e 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -326,6 +326,7 @@ enum bpf_attach_type { #define BPF_F_NUMA_NODE (1U << 2) #define BPF_OBJ_NAME_LEN 16U +#define BPF_CREATED_COMM_LEN 16U /* Flags for accessing BPF object from syscall side. */ #define BPF_F_RDONLY (1U << 3) @@ -3252,6 +3253,7 @@ struct bpf_prog_info { __aligned_u64 prog_tags; __u64 run_time_ns; __u64 run_cnt; + char created_by_comm[BPF_CREATED_COMM_LEN]; } __attribute__((aligned(8))); struct bpf_map_info { -- 2.23.0.700.g56cf767bdb-goog