From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3F23C10F14 for ; Wed, 10 Apr 2019 15:39:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 856BE20830 for ; Wed, 10 Apr 2019 15:39:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=netronome-com.20150623.gappssmtp.com header.i=@netronome-com.20150623.gappssmtp.com header.b="UeKnzdmv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733295AbfDJPjK (ORCPT ); Wed, 10 Apr 2019 11:39:10 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:38343 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731503AbfDJPjK (ORCPT ); Wed, 10 Apr 2019 11:39:10 -0400 Received: by mail-qk1-f193.google.com with SMTP id g1so1495763qki.5 for ; Wed, 10 Apr 2019 08:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=ybBieaFei4lPNtCqEHZlOrP9nBi4GGDM2osCOMWnYFg=; b=UeKnzdmvAp/K7tj4FHasa+UQtZAR2Q/nbFrhYhSkJPxT4bGGR5yxgeZZ1mtfCJHaQ0 cAu5ecs1dCLDEVB5LF5tXJ6ZcEcCksAJbo2t2BY9U6C4ZDIznxJmGvJkK5cfH5JDoOwQ FpmkDq+MpxxwCjTcWSeBTH3xLDh92e9WfMUwnrCIu4oDRxKhhKA/M8w8g+v/esJMlbQZ lRsUPBU6YYINFGiQQAqp682I6YeOMVVlgeb15Z1MtM6eVl4d9n6nEJyxiM8Mn3ufaz1P MgwFInhGvRFH0eMP/DmNPvw1O70dreqzJ/6VYfl9x0FqmFHiWN3762xid4HUMToolrPv dyIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=ybBieaFei4lPNtCqEHZlOrP9nBi4GGDM2osCOMWnYFg=; b=ZMP8pfvQnsa5CRuOyB8r84gV1SeAa87e98j1u+2GTurhLCwbGPWw8tJAqAooGWxHIS /pxfbyY9PVS0VelA2GUKxC3i6A3UxdsKZ0i/b9TRlB//oSfmP9Dqq1zXn837Jjw9fVFY 9+UjWAwdf27VvyWaD6y0Pxvqw3ujxf9DFJbhhS4r3Nx98mOAXiaBh+oKg2C9UXjTmBmd jEml1U8K1gk6PjHljX+xUx+9uIj7xSEeb21hoBjl0JRIWpIQnHNsmQ00OLaKP6uyK9wU YytCkZrThbbmo0GS4J5z8SBvJi6b7R/NMnCotyebImV2PnTSgLAj1Hg44iS5aIznVxN7 NzJg== X-Gm-Message-State: APjAAAXfLH3nzFfbJr+3CPUjap+fId7c3grw7Q7cM9BZjlB4eyYCBmKF z2Isj5pWbEBoAAIDrOEU1nVqVg== X-Google-Smtp-Source: APXvYqwSG+V2tL9Nd+qflxtGVe5hVQF3um3HnAvMAj862VbNF2Gsz+WilbLrouXfTgU6gXO1O5MIEg== X-Received: by 2002:a05:620a:130f:: with SMTP id o15mr34840450qkj.252.1554910749243; Wed, 10 Apr 2019 08:39:09 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id m46sm24982090qtk.95.2019.04.10.08.39.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Apr 2019 08:39:09 -0700 (PDT) Date: Wed, 10 Apr 2019 08:39:05 -0700 From: Jakub Kicinski To: Prashant Bhole Cc: Alexei Starovoitov , Daniel Borkmann , Quentin Monnet , Martin KaFai Lau , Song Liu , Yonghong Song , netdev@vger.kernel.org Subject: Re: [PATCH bpf-next] tools/bpftool: show btf id in program information Message-ID: <20190410083905.328e05fd@cakuba.netronome.com> In-Reply-To: <20190410045642.6584-1-bhole_prashant_q7@lab.ntt.co.jp> References: <20190410045642.6584-1-bhole_prashant_q7@lab.ntt.co.jp> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 10 Apr 2019 13:56:42 +0900, Prashant Bhole wrote: > Let's add a way to know whether a program has btf context. > Patch adds 'btf_id' in the output of program listing. > When btf_id is present, it means program has btf context. > > Sample output: > user@test# bpftool prog list > 25: xdp name xdp_prog1 tag 539ec6ce11b52f98 gpl > loaded_at 2019-04-10T11:44:20+0900 uid 0 > xlated 488B not jited memlock 4096B map_ids 23 > btf_id 1 > > Signed-off-by: Prashant Bhole Acked-by: Jakub Kicinski