Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp95439ybl; Tue, 13 Aug 2019 16:39:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqVZEXPyWs11vBSi8KvyCdABkROtsJozja4YNHMUdWLSKqqMufqM5cZurEZU910UdIUCGZ X-Received: by 2002:a17:90a:c70e:: with SMTP id o14mr4536432pjt.56.1565739554595; Tue, 13 Aug 2019 16:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565739554; cv=none; d=google.com; s=arc-20160816; b=FJhOp0qCrI/6qqCXxs829D0hH6N80uKhu4Ry616qn89U9IIKPAAOyQlkzA14SguoxI tknYNFNVcdVxIATBpv/IQiLuucC9FaTKoF9jl64rsoWGZWqjEBw8xrX0/k1DrrBg3aTB Rli/VzfE/etL3iW9gxCBkbBfMGENtso1lDi2Fn95ioj5qJGbp8JOy63X8GFVKQ1ZzkTT dvX1V0TSVUmPg8wDUtkmjiv5Sc/uiB16FMaFyv9ACc8vV/TdY3z/6F4x1r0vK3HbZwsU RVQRLcHqDTw0M9HixWR4UMkx9D3x1C0uMKhyc4hepi+4OxEfm33lxDrlFo7NzPtVynV/ WYCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5VALDoEQf5ycz8FvNAJ3LejkjVDYOhmuS9Gj/GkPw3o=; b=T9Fplae/iozIrdNghIseEoZKOqqZ7FXZpZOLyNUcOHm121LYyqaYarCNkwffPAtFVm 9wVeClsv0qkNJTdKJcuFzgnS9+UCDj2o3JMSjtJi4XpHSNTYtbVXeNuXMaRuYXQ2a69u 9FpWLJYvC9pW710hWoUflHLUffUQafow1t7mm3fkHRFv3WvvKHoKYpXC9NP8qP2t6QhB MZmJqmcaj9oEsT6fnqMWQ+TjWDs54Al1Lqz7o1LL7hdQA3b7ZSfMRBkYFuwfEyjdR70i uVGifXFUJ0p1gGKZZgZIsUqnTvuDyblmvXgRNR188ByoX4DUVgbMLTUqIXQhL1oURbrQ UMUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L8NaXcnZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si30672598pgr.237.2019.08.13.16.38.58; Tue, 13 Aug 2019 16:39:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L8NaXcnZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726640AbfHMXiZ (ORCPT + 99 others); Tue, 13 Aug 2019 19:38:25 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:32994 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726102AbfHMXiZ (ORCPT ); Tue, 13 Aug 2019 19:38:25 -0400 Received: by mail-qt1-f196.google.com with SMTP id v38so15881221qtb.0; Tue, 13 Aug 2019 16:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5VALDoEQf5ycz8FvNAJ3LejkjVDYOhmuS9Gj/GkPw3o=; b=L8NaXcnZszHCR5swq/jeZgG9+LgXkXjr5vp5FI6+CmzaiGkc9mEYgSUN2+girqWBfS N9fRsXuBX1Bj4TmlnESNCBdrMZjNC+2y57OhTMwG29lPxPBiV+u4IoPNd58aAZmv46M2 nClDdbRRGV9oSSZFRZOd7HjJ6P9mWv3U9xUJaN/6J2RiToYSoN38TJ3kK6qZBIZbSvMu dXCo6a32kuxP7LoIFdynydFUkM5fl9fX/OYm8ZKcH9Gc6Z5b0m2pgANrAUBM8xTjGYAH 7lVK006xQbSMnmgLLk/zTUsLLwipeQzzAygqgMPC4hFtf+gaZWuw2SGlF8EPx4Kyuld2 iG+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5VALDoEQf5ycz8FvNAJ3LejkjVDYOhmuS9Gj/GkPw3o=; b=mo+JmOrx9rYcuZ1FEpbUB+l0TA6LsCuaqKGpE/WeaRrqgIhO63UO0NJ9j19zaJbEMU C2M5vGRk218a5PdRVOjbq0Q47RYPEM7R/fL5wpb74FVJF8evJRJx25lgOYWSDKDzE27s HgEVz56T1CWL/UESrIwMKNYc0191DklhMuXs81LwTzXfrtSGgzgJOhAk313iNQSFt/J4 sNCk/1ujjasbwZXSydR0W8RaaKc64ltfoHPRojA8M96SdVdtI/+Y/Hu3cw5eldyTG3g9 Xq5wf6ynPvG8HN2i0aiR6G1PtIypIFHZP5CkTHf0tW57WPEXGEddAt7KOzRBpvgVaeUV AYsw== X-Gm-Message-State: APjAAAWXVOkQn+AWTBkBzZbcj7nnFKiOwdqf6GLVt12MNRozrxoYpXg6 rlZpQ8BECXHBjnxpLEfoMvOGH9tPvQL8+qIRjaU= X-Received: by 2002:ad4:56a2:: with SMTP id bd2mr559803qvb.162.1565739504161; Tue, 13 Aug 2019 16:38:24 -0700 (PDT) MIME-Version: 1.0 References: <20190813102318.5521-1-ivan.khoronzhuk@linaro.org> <20190813102318.5521-2-ivan.khoronzhuk@linaro.org> In-Reply-To: <20190813102318.5521-2-ivan.khoronzhuk@linaro.org> From: Andrii Nakryiko Date: Tue, 13 Aug 2019 16:38:13 -0700 Message-ID: Subject: Re: [PATCH bpf-next 1/3] libbpf: add asm/unistd.h to xsk to get __NR_mmap2 To: Ivan Khoronzhuk Cc: Magnus Karlsson , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , "David S. Miller" , Jesper Dangaard Brouer , john fastabend , Jakub Kicinski , Daniel Borkmann , Networking , bpf , xdp-newbies@vger.kernel.org, open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 13, 2019 at 3:24 AM Ivan Khoronzhuk wrote: > > That's needed to get __NR_mmap2 when mmap2 syscall is used. > > Signed-off-by: Ivan Khoronzhuk > --- > tools/lib/bpf/xsk.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/lib/bpf/xsk.c b/tools/lib/bpf/xsk.c > index 5007b5d4fd2c..f2fc40f9804c 100644 > --- a/tools/lib/bpf/xsk.c > +++ b/tools/lib/bpf/xsk.c > @@ -12,6 +12,7 @@ > #include > #include > #include > +#include asm/unistd.h is not present in Github libbpf projection. Is there any way to avoid including this header? Generally, libbpf can't easily use all of kernel headers, we need to re-implemented all the extra used stuff for Github version of libbpf, so we try to minimize usage of new headers that are not just plain uapi headers from include/uapi. > #include > #include > #include > -- > 2.17.1 >