Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1432800pxb; Wed, 4 Nov 2020 08:46:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXQxSckwe08PULBOHMozjSpwhkvYlga6w1J4nVLT3ZYDd+FC1E01jd4Yx0o6H+8VxGVyol X-Received: by 2002:aa7:c4c2:: with SMTP id p2mr28576368edr.371.1604508417022; Wed, 04 Nov 2020 08:46:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604508417; cv=none; d=google.com; s=arc-20160816; b=fKa+VuSC92Abpf6NfptBle2kHPiWMS/zu7xvz2cy98Jhuc0x3ce3kHMKhhmNnHgCRW hACi3/rdHYRr/Yc59DKmZsybQtx6oXXwRGVf+AfykIDOQQdYlJK56MP4Njbiffz+b1vC 6lrbz3LlrEatPZQpc2jnLFHk8dG9qh9yM1SK7D3KhR8+YLVaWAcfoWC+J6+fVpCEzAhP whJgd46aK69ydQUQmvjyIBXswJpZ+SGID6r6yZxNCuHzJ4BCXdEmuUHcypcAPLSaG4CO CJCgIiiqVGiQzgwnhIKY2Y8H13uGr/tUrCzCez2mMsasgnnM4vbfDNjbnwdF/36/ySUl yElw== 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=6GqRxMuRSCk3pA8cj/SIZ2TBkRpOcHYXrUjExpfJnAs=; b=IxdaNu32n2YoifPMUrzM8hgL5e4gbPOAiLke3BESvFL0kv3C7j793TGDBYYSBpTg/h JL3xNhDar1CWyBvEVcK0b0axlnkbNoBSfI4DmymRj3qr0wTcTj9ka0HHsGwO2A4/2HEk FKdGvkihF/rlRXN1L+1B9rqTtA7Yyv7StmPAI5QpqPg7TWSZMvUGimij/4/EPACcG6pt +n9fkQ6aAEkinFChXreav9tP+uX4eGxXTocey+WIbrhU0lmORZVDUfa/1te/ZqALEYVE WscfK8Py3o1a/S8zqHUELatKhd6Gac6uiBWR7LGGr+76VoaT449O4DSPTVMibbRSk7hO SeCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nG1z420y; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si1964699ejc.23.2020.11.04.08.46.33; Wed, 04 Nov 2020 08:46: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=@chromium.org header.s=google header.b=nG1z420y; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731262AbgKDQpE (ORCPT + 99 others); Wed, 4 Nov 2020 11:45:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731043AbgKDQpB (ORCPT ); Wed, 4 Nov 2020 11:45:01 -0500 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22AB1C061A4C for ; Wed, 4 Nov 2020 08:45:01 -0800 (PST) Received: by mail-ed1-x544.google.com with SMTP id e18so11979919edy.6 for ; Wed, 04 Nov 2020 08:45:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6GqRxMuRSCk3pA8cj/SIZ2TBkRpOcHYXrUjExpfJnAs=; b=nG1z420yGZvqqFXpI+0coJ/yx6cAUdwWP9rssOjDBDfg7ETelQLL5qoOl8j5Zzi/RD 9t9QgKcNslkMhmtZ8L9be69BMYxvMJZZGYEAmEMvhjfKjOs/RN10vXAcbZvEjKOKGSci ZMVAHRFKud6bI2/8sYvx72iKWI0YpW6y8fnZo= 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=6GqRxMuRSCk3pA8cj/SIZ2TBkRpOcHYXrUjExpfJnAs=; b=PqhrzXz2QhWQuzFb+JVEhmnmo0nZAJAcJ57gVE07gA1q/m++LQTJyn1s+3tTHbUgjU on03EXnsx8X+s9POVewagVNefwxVFa9xr3a3w7+xIXRBbSfwAILtNz/JvJhgLEWHjwht Rz3WAmwfZQwglQ4G/UvFzvL9NBbf2PIxoq8b9Xx4C/VOPqmW2RtK+ZiAzdqHDmoLiJzg W39wvAdpslXz7J8bf6x8qugRqqu53Du+jypxBjP1/9n3MRYYLnY339uogPo1u1aKkKeW auj1CDZwaG5mLx/i+G/1zj+OI9RMTpxTy7alWtjiKYf5dRxujOidrFqaTV8FaLBTr9ol nFHA== X-Gm-Message-State: AOAM5328n43rL+6vM39WE9GOgmNPayAsBeY/XLu8ChVlcxS7QboNurPZ f3NF41GJ/2GTo5lThnhHmzHuOMOzOOxQdvlB X-Received: by 2002:a05:6402:142c:: with SMTP id c12mr28897416edx.41.1604508299644; Wed, 04 Nov 2020 08:44:59 -0800 (PST) Received: from kpsingh.zrh.corp.google.com ([81.6.44.51]) by smtp.gmail.com with ESMTPSA id g20sm1283551ejz.88.2020.11.04.08.44.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 08:44:58 -0800 (PST) From: KP Singh To: linux-kernel@vger.kernel.org, bpf@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Paul Turner , Jann Horn , Hao Luo Subject: [PATCH bpf-next v3 2/9] libbpf: Add support for task local storage Date: Wed, 4 Nov 2020 17:44:46 +0100 Message-Id: <20201104164453.74390-3-kpsingh@chromium.org> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog In-Reply-To: <20201104164453.74390-1-kpsingh@chromium.org> References: <20201104164453.74390-1-kpsingh@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: KP Singh Updates the bpf_probe_map_type API to also support BPF_MAP_TYPE_TASK_STORAGE similar to other local storage maps. Signed-off-by: KP Singh --- tools/lib/bpf/libbpf_probes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/bpf/libbpf_probes.c b/tools/lib/bpf/libbpf_probes.c index 5482a9b7ae2d..ecaae2927ab8 100644 --- a/tools/lib/bpf/libbpf_probes.c +++ b/tools/lib/bpf/libbpf_probes.c @@ -230,6 +230,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