Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751455AbeAOTmI (ORCPT + 1 other); Mon, 15 Jan 2018 14:42:08 -0500 Received: from mail-qt0-f194.google.com ([209.85.216.194]:35792 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750805AbeAOTmG (ORCPT ); Mon, 15 Jan 2018 14:42:06 -0500 X-Google-Smtp-Source: ACJfBov0ZKtNxzfWyl8T90iyApTx4pPiUpA8qKzlFJTAIWJiB7OXVX4WobaT0s3lA5BmyFAiXrFfyg== Date: Mon, 15 Jan 2018 11:42:01 -0800 From: Jakub Kicinski To: Roman Gushchin Cc: , , , Quentin Monnet , Daniel Borkmann , Alexei Starovoitov Subject: Re: [PATCH bpf-next] bpftool: recognize BPF_PROG_TYPE_CGROUP_DEVICE programs Message-ID: <20180115114201.1cb7fe70@cakuba.netronome.com> In-Reply-To: <20180115191615.13911-1-guro@fb.com> References: <20180115191615.13911-1-guro@fb.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, 15 Jan 2018 19:16:15 +0000, Roman Gushchin wrote: > Bpftool doesn't recognize BPF_PROG_TYPE_CGROUP_DEVICE programs, > so the prog show command prints the numeric type value: > > $ bpftool prog show > 1: type 15 name bpf_prog1 tag ac9f93dbfd6d9b74 > loaded_at Jan 15/07:58 uid 0 > xlated 96B jited 105B memlock 4096B > > This patch defines the corresponding textual representation: > > $ bpftool prog show > 1: cgroup_device name bpf_prog1 tag ac9f93dbfd6d9b74 > loaded_at Jan 15/07:58 uid 0 > xlated 96B jited 105B memlock 4096B > > Signed-off-by: Roman Gushchin > Cc: Jakub Kicinski > Cc: Quentin Monnet > Cc: Daniel Borkmann > Cc: Alexei Starovoitov Acked-by: Jakub Kicinski Thanks!