Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1761559pxj; Wed, 19 May 2021 13:19:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHCoQtUx4Z2Xk0MczeG1KU/x4sbsxQC1r/6LTQpye2Jzmwn7VWg2AkWAWYddmaD8ICukU5 X-Received: by 2002:a05:6e02:dcf:: with SMTP id l15mr899337ilj.227.1621455540749; Wed, 19 May 2021 13:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621455540; cv=none; d=google.com; s=arc-20160816; b=HDX6G3Eb1ehS/LQph8aLOOJM0opxZFRgJ8enYAK4hhUN9OWWZHtsduVg57/xZpslv5 Lmw/wXLFlYKJfxgezaWcM227DTQo2MOWN12toQLZWtc+Uz4XcXsQnCUfOvIPEMwp2Vzg 7p4v9JuD3jAhRBzTXD68XhxIyWMg4qxoXmqLfJ9i+/fZc7iK3uwl0St75U6GTlQQ5VWD jnAXgd0tSyLKwu9barVeRe+dbner0Yz7zZfGDNi+sm+NoLfWNJVwCVRfPAgks+d2qqKr QqcnAAsrh4lQu//3wpB0uvj3yq68ljm/kqmk5WtSl+XqvD0WXvt3l1RiKjRTSY4xWOhI sEbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZF+ogBr+ZoCho+MfyFNrLvpNXGoVZjnSZVtBK1HfLnM=; b=dN7vZ6RUJ2keHL/GnzM5RbYKdH9IHZvBij61PS/rqUNFkehiTB3K8t2b4Kmpu45FnY JILAnXSgxxBdYn706IexcDzphCjQTmwjFgXUwReVZIE5+mwtqJs1ovNkEFYYC5BYbDcn EouyPl3FQdkpBQbH77Itc37fq1ocl9/0IP/kUsMeGfcCProd4iBxqQxitt0TDxflU81+ JY1MegXiuHZRZWm0QwpG5hFRIsl50sIb1dR23Pfz4sQkGdfKhEBofv1lCSGRWUqH0C0/ 7s11znAMRHp3XQuyivwgBMANGUawombf/U9pSux4rY9zFItbB51oRZPQFMVBDsGU9oKz nqiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Jnl84FYP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id o13si608742ilt.118.2021.05.19.13.18.48; Wed, 19 May 2021 13:19:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Jnl84FYP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229967AbhESRjo (ORCPT + 99 others); Wed, 19 May 2021 13:39:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbhESRjl (ORCPT ); Wed, 19 May 2021 13:39:41 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CD80C06175F; Wed, 19 May 2021 10:38:21 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id e15so3428125ybc.10; Wed, 19 May 2021 10:38:21 -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=ZF+ogBr+ZoCho+MfyFNrLvpNXGoVZjnSZVtBK1HfLnM=; b=Jnl84FYP+jD+w4a1tDV6jB4ZB1sMq+d68AU+urNjDaofLORd3JfBPndb3H92oSxbwQ bMyfZck42SW0NmelcxtD8I3FqCfLYOiOQX05uLyfMQ45qrjvI4qY0qdTJOC0n2PKnULW qz22nhb+dPtZfZNUVjSegnHk533W0MK4yY45P90uj7JXAJ8bOr/yfHw0ymfn2Hu3ui1s hMPCZn3VvyCRBi5EoK1tDiLIDSHiuW3vVvqdJ1QFVvbamuuJEhjYoXeOeKc3m1yz/RoW MoGUQtbmU5yR9LLrXcnwG6ytJ1IUHNWO+a8HJex9Trpwa3jJl4ziDDorIAPIfW2GHssW 9lxQ== 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=ZF+ogBr+ZoCho+MfyFNrLvpNXGoVZjnSZVtBK1HfLnM=; b=hWnjodh//AqBzhEPFpYxbLFY6loTlWIIaqMT3X2Co8vAO7Yfxw94iGNxKxqkwAPgrh IDJm3ezR8iuQh978dD++1h7BK8r3bVWV1ecVFah7nQ4oOY/0NKrTOFjspbCaxukjF5q/ vEvaGbuJtk91XVtp1/RJNo+Jb9Z8chE18iF4UyqiPXJCNEKVavlQSN7OyBvve/6omydn d00ecRYKv39IbLsROgew+51Da4aV8LTBKMRnQWxoAnYqIGPQCgs6SWDnu+VE74MEGEph zkN5NCqMfp1Vk6jtzSc+mFspPNzU6+qvoPckeLNODGIud/Fe6ph35WyrwOx5cZle+7R9 /hJg== X-Gm-Message-State: AOAM530LN1334Jv2x4eXK6JI7l8dBFTXevpaHKnyg4lcar6YRpBL96HO mfTvNsUhvLsvWlHfpYrzk/XKFqIUwf9p/oo8O5g= X-Received: by 2002:a25:3357:: with SMTP id z84mr999463ybz.260.1621445900407; Wed, 19 May 2021 10:38:20 -0700 (PDT) MIME-Version: 1.0 References: <94134844a6f4be2e0da2c518cb0e2e9ebb1d71b0.1621424513.git.asml.silence@gmail.com> In-Reply-To: <94134844a6f4be2e0da2c518cb0e2e9ebb1d71b0.1621424513.git.asml.silence@gmail.com> From: Andrii Nakryiko Date: Wed, 19 May 2021 10:38:09 -0700 Message-ID: Subject: Re: [PATCH 18/23] libbpf: support io_uring To: Pavel Begunkov Cc: io-uring@vger.kernel.org, Networking , bpf , open list , Jens Axboe , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Horst Schirmeier , "Franz-B . Tuneke" , Christian Dietrich Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 19, 2021 at 7:14 AM Pavel Begunkov wrote: > > Signed-off-by: Pavel Begunkov > --- > tools/lib/bpf/libbpf.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c > index 4181d178ee7b..de5d1508f58e 100644 > --- a/tools/lib/bpf/libbpf.c > +++ b/tools/lib/bpf/libbpf.c > @@ -13,6 +13,10 @@ > #ifndef _GNU_SOURCE > #define _GNU_SOURCE > #endif > + > +/* hack, use local headers instead of system-wide */ > +#include "../../../include/uapi/linux/bpf.h" > + libbpf is already using the latest UAPI headers, so you don't need this hack. You just haven't synced include/uapi/linux/bpf.h into tools/include/uapi/linux/bpf.h > #include > #include > #include > @@ -8630,6 +8634,9 @@ static const struct bpf_sec_def section_defs[] = { > BPF_PROG_SEC("struct_ops", BPF_PROG_TYPE_STRUCT_OPS), > BPF_EAPROG_SEC("sk_lookup/", BPF_PROG_TYPE_SK_LOOKUP, > BPF_SK_LOOKUP), > + SEC_DEF("iouring/", IOURING), > + SEC_DEF("iouring.s/", IOURING, > + .is_sleepable = true), > }; > > #undef BPF_PROG_SEC_IMPL > -- > 2.31.1 >