Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1751679pxj; Wed, 19 May 2021 13:05:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzV02u2mTHEsSDrwc7wviLMmoE47FRBVAt7WXeeKjmed13I+tiCq+xqUxs+8N01yu3T0kny X-Received: by 2002:aa7:c3d6:: with SMTP id l22mr804609edr.21.1621454710901; Wed, 19 May 2021 13:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621454710; cv=none; d=google.com; s=arc-20160816; b=pYlYL/puYctR+GtiQ9e1nATDEHyVo7B/PQgdSc+zEOYYIRgM9hwcfpU6vx2Rvq92IT AIOl7q1NEmMi2zb/gCGMQbtyWolOljrdOx5y/M7jAVS/MC2XNfMrkxg8NfJMeWBWQMTd Jp1ZEtXQVhx5DfuXYy57ptTnsHLOSgWqcXxX8gyorV6XTyd4q5LyU9IZONAFj+J81tZf fV/mnKXAyaEPFwOBZ6QVrIJ09MpioeeajXerZwdSUpRTiERc4hHUf9sQ2T+dGg8Dtydn 7MDhRcPfmypnq9a3DVehMhnfpJr/TQ29rZ7yw6o6tw8g+A1YkLfZp3DE4v45HCXNcRGD knDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=B1YRk/MN/N6oLVTe294bueKKNcMA5klQT+cH/wkOgww=; b=0CKEsGhI6kgVWyld4YT95CeXpGzqmTMiE4NS8zuBHTgXRg2rE5xDjQcWJ/DLnKDrXb 4Eli/w8QPs+ln2Fj4o7ymoDU/O398540Dwd7cyL+X5CXTBFomglPGKXZMC0Ov81oHgC5 vShcuRoG7eBETl2anwjqVPLu/adBh1Etb+aTZtl3BXek/qUKI3VbVLbhYFAUDoudqK3D 2nZ+htu1U60mqlbHyQZk6gJeiSkxrYGgq0Fxl3wp1X2quYAgZJ8pElZDUcB28J/EZnuP +yKP2XgxsVkqDqfYgEZgpDoeYsuHyNs3+93A4Vn8sGEyeGWA4lP99iJ3XlWDFNrXY5Vr a/kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FZljZuNT; 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 m11si17393edc.201.2021.05.19.13.04.45; Wed, 19 May 2021 13:05:10 -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=FZljZuNT; 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 S1354333AbhESORL (ORCPT + 99 others); Wed, 19 May 2021 10:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353955AbhESOPx (ORCPT ); Wed, 19 May 2021 10:15:53 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D28C5C061350; Wed, 19 May 2021 07:14:13 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id j14so12459671wrq.5; Wed, 19 May 2021 07:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=B1YRk/MN/N6oLVTe294bueKKNcMA5klQT+cH/wkOgww=; b=FZljZuNTvTkGGeqGsgnBYac0iEIJXuo3oF86e9uVrqPP1pheEtHjr04bmJlwwddajN q4ymq3KmjuYIcy/H/BIoybv6jSPehHp6uRrgHHc5BjFfuLiU9WukTDc8fNEYvW4OedpY vgEti+c821R2gzt70s8E+EKZPwEww0zkCGShwWVWJHR/rCsHlNdGJCvVediJoKeuhcgn y5d3PRV6jmGKZgqjn/MJARQxZNX9Zv6NV+r/egMRKPMJpFAxygiYHJIrC1NDDSM/a7s8 VZTrU1pSnAxN+frx/Nrvaolw1e9RT/f2+iTv3vRJpy/rJLsFpGm0VOPsljf4SzAYGs9f uTGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=B1YRk/MN/N6oLVTe294bueKKNcMA5klQT+cH/wkOgww=; b=PdK4CeeQ/l+7oi912f1qKd3ol/UMHYCSYYoc30NqqgWzgFIQRP4ypTczc2qBoEHxmF nUwFDvOgCx65OBhk3i8MyWPIwZVHuYv2L/ci29niA4H3Y3UxK+/YknW1IABSyvRvojjx 3XZDXRr362/UUSCx4Z6Xg+v2rPyxC21Ok4GNbH5C3MI5U6SqyChXmkzH+DKHDFWo56jk LLro8d5mlKE2Tu3PCLtRGbNpN6j59dWE4FHcWWLe3hcZHv78bofYgcpqtLpEBxRcM/si VY1BTdAEjCMNAFOKMOZ9i8G8w+NorUjHKIYXHq9+BXmIKlnSwkwIrWAwnHcCOVcdLQkt 7Nig== X-Gm-Message-State: AOAM532E5xUEgFvrpAfGDYHE6aQVSN9ElRAIS6oiq2Lp7qt25gWmKG8V C5eEKv7Uu/PReSLLh4AyMIJ2piyenDZ6c9h1 X-Received: by 2002:adf:e38c:: with SMTP id e12mr14705083wrm.128.1621433652284; Wed, 19 May 2021 07:14:12 -0700 (PDT) Received: from localhost.localdomain ([85.255.235.154]) by smtp.gmail.com with ESMTPSA id z3sm6233569wrq.42.2021.05.19.07.14.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 07:14:12 -0700 (PDT) From: Pavel Begunkov To: io-uring@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Cc: 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 Subject: [PATCH 18/23] libbpf: support io_uring Date: Wed, 19 May 2021 15:13:29 +0100 Message-Id: <94134844a6f4be2e0da2c518cb0e2e9ebb1d71b0.1621424513.git.asml.silence@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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" + #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