Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp753183pxb; Tue, 3 Nov 2020 11:31:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyi+t/EDv1I5AJKeepU3upnEuMsWO3Go8WD0B6ACwbTCi5Fctdlm+qCXcbTLlhsK2fG+035 X-Received: by 2002:a17:906:7c4a:: with SMTP id g10mr17361500ejp.545.1604431917375; Tue, 03 Nov 2020 11:31:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604431917; cv=none; d=google.com; s=arc-20160816; b=bLUF2pJYTuZpZM9bUr6das/C+yH4Nin0Y2++IaW3hGiBZQe/uguFA76k3lcjkIgxJW Gqb2b8K7qm0p1GrpD1ImL58wCWr2FbO8RA8UYjF7dfnN2HczMLa+O3rm4xfNj2u18xX3 cA0nmFzCug84lvD1PsisttY7O7eV5x1X6gznMDFgbQYKMD6b/IXzfr6YGFUL7Y6QzBj2 saMp4flTSPJ1O0ukpmab4z18/1qOnBgyQlKAogm6pFpLp89rgSMg90Yy2RSMmfvgo03S +fjoBbPso8pBvPLPVgptozCsVcwgMjiJ8bhOkQminBINYjkEhbNQL14HqU+0FdrY3SQP Wg7A== 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=086QXPQOFmQa0/qNNMQMF6FnV1pJVActXTh078XtSYc=; b=q1bbA3s9/DlBT0y+QNBOv9qIxMTPROse5/a4K90IrkenK4sc5rSjXz5IRAqKx/18ij UoLaIFJiYYxI2OXo5BzV4WfWsSqvgoXSfr5T9EjGEdlVSPOSTvE5vSBkSQCFKamgGBhD WKMRLWq1O1ShqwIoIhOW8IgnAGTGRA3S8s8R48YbfTveHoiXg6ZrXAJTFlcEIHz83tzZ Qyc3mroccgz69KKTrSwse1Q1jFyUktlz6Uyzls0L0mFbY/3/bPQxCUiYqI8JOGugj8xa eQLHY9rI/TyZH14fLXyvFMGK+nGOeX/TtNmtZqxEj08GSRlZLIOleOAeQ1aGXwMR1ASy r7zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p3LFK3c3; 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 i14si13902709edl.282.2020.11.03.11.31.34; Tue, 03 Nov 2020 11:31:57 -0800 (PST) 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=p3LFK3c3; 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 S1729686AbgKCT2N (ORCPT + 99 others); Tue, 3 Nov 2020 14:28:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725957AbgKCT2N (ORCPT ); Tue, 3 Nov 2020 14:28:13 -0500 Received: from mail-yb1-xb43.google.com (mail-yb1-xb43.google.com [IPv6:2607:f8b0:4864:20::b43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 700DBC0613D1; Tue, 3 Nov 2020 11:28:13 -0800 (PST) Received: by mail-yb1-xb43.google.com with SMTP id h196so15862193ybg.4; Tue, 03 Nov 2020 11:28:13 -0800 (PST) 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=086QXPQOFmQa0/qNNMQMF6FnV1pJVActXTh078XtSYc=; b=p3LFK3c3EHixzrX4mi7n6oPv+ZpesKIo7xuKoHcCiotv7JoEIM41cEMwWam6g2FeWF xadndj/3JZ/H+GK+iIrOtl/gtUyESLr2lQkgJOGt3vYg0wR/aL/peh49K6O8RbDcC3Zl EoaTjVEbZF7GGVeeRQm5ALl1b1caWaKBQM8EfDXi04E2zLGzy16/Cx7ROIm4RhE1+Tv7 p9M1YSIPkoMH8Yn5r5H2I9KOfaYoljvaatBGOHEJARaYb9Hw3zfOFmnvF+WJ/z2/kBLZ g2PylIY5JUB8SD6YxZuC0hadhgLf/cRZwZcyDRoiUbeQP3qA3w7YjlpjtDwHihh5GzmT VXHQ== 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=086QXPQOFmQa0/qNNMQMF6FnV1pJVActXTh078XtSYc=; b=s5WgEef3Cp6LFPKEO66OrjGoQyCTTOJTfaTEMwkIkozL+nJFNYoy9vf4mz/y1XF+cc QTHwPS/zq+ZRTMNpTydprgZV45iLrkvRizU7u5gsRvBtEKgBeQRyzAbreSoUKBqMKbiR pjZJw3U5wJvj2JYZrGHj60kwVw4B++btlUxfR/LwlDFlTwbzW8Efe+cwXQ2MDuE+4C2p +WV2q7WHS4zbCCXRaeke1L9TRLqj8hii5SvDQNZ1lxq5ZSZw5EWahApuGFjAC53Osum9 g8sTNLGd30IlmIm5xZG8zXVye0q/PvSR+NBoLq3ZeJwssvVRbvQ8vV1YQ6XxidXYAyDa E5sw== X-Gm-Message-State: AOAM530HB/c0rRZJoeGO3BIEPPQdkMo43pKMtLbVBbskd4xtabg5qQ6n NNZvJPHbe8ogkSUUANcNbqTT4wouvuGxpS00BexZ4dvw+Vk= X-Received: by 2002:a25:b0d:: with SMTP id 13mr31418948ybl.347.1604431692776; Tue, 03 Nov 2020 11:28:12 -0800 (PST) MIME-Version: 1.0 References: <20201103153132.2717326-1-kpsingh@chromium.org> <20201103153132.2717326-3-kpsingh@chromium.org> In-Reply-To: <20201103153132.2717326-3-kpsingh@chromium.org> From: Andrii Nakryiko Date: Tue, 3 Nov 2020 11:28:01 -0800 Message-ID: Subject: Re: [PATCH bpf-next v2 2/8] libbpf: Add support for task local storage To: KP Singh Cc: open list , bpf , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Paul Turner , Jann Horn , Hao Luo Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 3, 2020 at 7:34 AM KP Singh wrote: > > From: KP Singh > > Signed-off-by: KP Singh > --- > tools/lib/bpf/libbpf_probes.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/lib/bpf/libbpf_probes.c b/tools/lib/bpf/libbpf_probes.c > index 5482a9b7ae2d..bed00ca194f0 100644 > --- a/tools/lib/bpf/libbpf_probes.c > +++ b/tools/lib/bpf/libbpf_probes.c > @@ -1,6 +1,7 @@ > // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) > /* Copyright (c) 2019 Netronome Systems, Inc. */ > > +#include "linux/bpf.h" why "", not <>? > #include > #include > #include > @@ -230,6 +231,7 @@ bool bpf_probe_map_type(enum bpf_map_type map_type, __u32 ifindex) > break; > case BPF_MAP_TYPE_SK_STORAGE: > case BPF_MAP_TYPE_INODE_STORAGE: > + case BPF_MAP_TYPE_TASK_STORAGE: > btf_key_type_id = 1; > btf_value_type_id = 3; > value_size = 8; > -- > 2.29.1.341.ge80a0c044ae-goog >