Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp2084373imm; Fri, 6 Jul 2018 11:33:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcW1t7+SlNLmhXAMFBw6z5WB1x3X++KOdZbbW1vwveLV8fGfshBCMX/Hf7En3qCnngyP5F1 X-Received: by 2002:a17:902:9b82:: with SMTP id y2-v6mr11362078plp.69.1530902001212; Fri, 06 Jul 2018 11:33:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530902001; cv=none; d=google.com; s=arc-20160816; b=uzCxFAWQ4SBo844j2pdBJA/8laB1ilz1tVeY9P+HQzfPUiWV5vpYAx1isXGYHZnVxj 8Xr/w5tbnhNQ2+eCSz98ckhs/FQoze6MigDGupoUj9DgM1WbUfRfDAU2gcNww1tkHC++ 5YhWJBCgbFqYzisb5lmci/viMIPibDtvph69DeM4sJyXjxxoR9kSiAiAp0nM+OzOdJSk dHuiqi+KtZ6iLlG8hus8LP6n63jW8MJ5XZ7BIUZ8LnDxQynH+FWm2Bxtdp6VXr1Rane2 O2mv1Nre/u+972RekIKb9HBT1cI4fF3O4IUTEgHFE1x3cppE5nahEX/eyQTB3deEI6LP 0OrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-signature :arc-authentication-results; bh=b3r7SK8rLT6wbUHOCZixTk21LJsJUXAbyjkDeQkGge4=; b=KYsLosMu0DjDrKaK2xvW2kG+DoOjRtG+HF6oTwS0WA6X4fBXE3w3k6deYCNSbTaqaA 8gEEQAF0kfCrrI0Yq634ydLPG5LWqfqG7a27y1FzHdh1wefDU0OoD5BcoAEQ7au4N1Pf log7IVpCgpaA91Qfd0rrfjvMqZxyQ3NAFjWkF6uSAKB34Pxg1b0rh3jMt2OFqyHHXfry A6LLXVPCv5kMrPOas98yaBktgCixl1zbTgmc0ih+75DGkch6sadRJytGO+FBB5B+jLAo Zqg56W8Cf3UYO6JeUggGxQP9pFmR/fl0LdKrkitnL2uxtQ4BzIitLtPFtrEjpVDssxuC kE+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=SWA5j+Hi; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=NWaFg4ce; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24-v6si64529pgx.314.2018.07.06.11.33.06; Fri, 06 Jul 2018 11:33:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=SWA5j+Hi; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=NWaFg4ce; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934495AbeGFSbp (ORCPT + 99 others); Fri, 6 Jul 2018 14:31:45 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:44246 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934312AbeGFSa6 (ORCPT ); Fri, 6 Jul 2018 14:30:58 -0400 Received: from pps.filterd (m0109332.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w66ISmvB018333; Fri, 6 Jul 2018 11:30:37 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=facebook; bh=b3r7SK8rLT6wbUHOCZixTk21LJsJUXAbyjkDeQkGge4=; b=SWA5j+Hiy4ncy0i+bY04w8g82TyiL9RsfkJi6TX8vg71kpsenUFkTeWbmZtjwPmOus/8 SCGgtrKto/MGGUQSTEMXV5tDopE3+kSa7HdxI++IxkcZodL4j/+47UG7EpD/17GmW/vz 4EhNSA3jahBcsg77XTlWWFGCBhQamvSC5R4= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2k2b8w8j3b-2 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 06 Jul 2018 11:30:37 -0700 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.24) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 6 Jul 2018 14:30:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b3r7SK8rLT6wbUHOCZixTk21LJsJUXAbyjkDeQkGge4=; b=NWaFg4ceeFaUqtrC9E+KZ9COKrvpUWB4UuB5Z0/9LAA8VTn4J66frhl7Ug2MJ84WCLKPDvoEiLTik3/gRgbun4lpHY4k1KwF18NdMLrZzWy1AFpeye067+KGa7JHlfryqWfEdNyWSnBcP4toSgNo/mdF4Va2XoQq/jdtDxfqd6A= Received: from castle.thefacebook.com (2620:10d:c090:200::6:17d7) by SN1PR15MB0176.namprd15.prod.outlook.com (2a01:111:e400:58cf::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.19; Fri, 6 Jul 2018 18:30:32 +0000 From: Roman Gushchin To: CC: , , Jakub Kicinski , Roman Gushchin , Quentin Monnet , Daniel Borkmann , Alexei Starovoitov Subject: [PATCH v2 bpf-next 3/3] bpftool: add bash completion for cgroup tree command Date: Fri, 6 Jul 2018 11:30:12 -0700 Message-ID: <20180706183012.6475-3-guro@fb.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180706183012.6475-1-guro@fb.com> References: <20180706183012.6475-1-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2620:10d:c090:200::6:17d7] X-ClientProxiedBy: MWHPR21CA0067.namprd21.prod.outlook.com (2603:10b6:300:db::29) To SN1PR15MB0176.namprd15.prod.outlook.com (2a01:111:e400:58cf::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: edacdf60-7b12-4d1a-8f7e-08d5e36e8f5d X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:SN1PR15MB0176; X-Microsoft-Exchange-Diagnostics: 1;SN1PR15MB0176;3:a/OrEfPWoJG12bw0W+Vn850d7tm/+9jmO9SzwEaEhWTVS/XU5Qez9rWtP6VBYwbFA1C7UjbE3XSCXdhdzMRjs8Kn6LZqaRrWdOqyT3rU9+4dXAqE+KT00o9VCxq8ah3/MQtwODvITKAYTQ2sEgfBWd9icaRr+RNth3HYwkS45YillCgnATJylLzSfjyQenwLEIHBQ0h+fp25gKwJquqEPgVuADr6rbDljXhBHyuumClQNpRdBRBUZcZob7NgoWxW;25:vd5qN6QFYf1fyaMjxu/+RTRAEWH0MBtwt1OJZAPKYCqSrIeM0rblPfN7fmjUACn2RikC57wjmA4cJP2fPzwdY/bQoxqJA11eEJkz2O2VOGxnk+/dqSqOi/pJ7rRcaOSDKPPRcrQWbOsWxGzT1YdyJZGkOtWH13+emCdeqpKQEOK+YwbrdKVch5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HjOtNIiDNNwHKx2nnDL+JJ/WlJICKnhoAGzMfFmzc5/IkNou2T3Glgd1OuLEiSAIkds5K9L6UKDZLmM/Jhw2bOT35zVaqYmCEMzOUi0Dwz+i/pKJ5EVidGj0Ym3qjUca+chue+L0PAKql23IykxqpbZE0bMHTevxFm5ATtEUmN6j0DG41Am6KYqQNdfQB99dcFWz/06P/ZYTF7b0dYXAs7yoD4TA7p X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(3231254)(11241501184)(944501410)(52105095)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:SN1PR15MB0176;BCL:0;PCL:0;RULEID:;SRVR:SN1PR15MB0176; X-Forefront-PRVS: 0725D9E8D0 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(136003)(396003)(39860400002)(346002)(366004)(376002)(189003)(199004)(476003)(53416004)(316002)(186003)(2361001)(2616005)(46003)(386003)(6506007)(8936002)(11346002)(5660300001)(16526019)(68736007)(1076002)(7736002)(81156014)(48376002)(69596002)(97736004)(8676002)(478600001)(50466002)(51416003)(486006)(52396003)(52116002)(446003)(81166006)(6916009)(2906002)(6116002)(106356001)(105586002)(6486002)(50226002)(47776003)(86362001)(76176011)(6666003)(2351001)(36756003)(54906003)(6512007)(16586007)(25786009)(4326008)(53936002)(5024004)(39060400002)(305945005)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:SN1PR15MB0176;H:castle.thefacebook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us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Kr5gJ/YNPGM?= =?us-ascii?Q?uI0ZQXHM1/WaQlcF8B81kk/I/3zrez+OlF1GuduC/lqHHZcw2ffgGNabmotb?= =?us-ascii?Q?YJJrCHczV60P5+QWO5P23EHbl8j73NBd+1Qk2ZBvRjf5ajwM6T0rbXOH+T6j?= =?us-ascii?Q?LQyEKL9Iz75zQiNohzTzennfYO94Qcr3zSZrCYCy43D6WmZtb3sdiAVOwHaK?= =?us-ascii?Q?hwDAsg66o4p2JyrMp9XGZGHt/QiCQMxDfzS9ugwQbT9nQR4G+5CoXKGUknn7?= =?us-ascii?Q?XDvzkjFHERJvPDyw4/1KoZJuSVYSPi+QQ0n8WyXk7jZTZe+twzidPHrayugC?= =?us-ascii?Q?t5V7qOjLLdLtyic4PyKgXuSy/awe/zvkmG+dLCAelfabBKrYGR44PfusgFZh?= =?us-ascii?Q?EiRFBC5D1WYyhDWyIdSlrphDlQTe1MRS1y0mj4KBNmJEHLS+o19AIcFcH7wO?= =?us-ascii?Q?dLNjhfNN7dRvXAeK6T19dE=3D?= X-Microsoft-Antispam-Message-Info: NkDVZBdN1nc0pgKkLM7ePmCnAzZc9IsrKBRgzPDRNU6PQXzJiqTOoID/pnvn+C6r3Oi6tS1QYeRdJZihsZW+x9GIuOqmbqPOy0T43nE0v6OiOE9IFbMGVcXrTVRdSDneIgCx40Y3uKTdB8hYdEW83rrMDhmH0NcK4poPvJUzCr+tXv4AnDxWoeV3FEHO/C9dT/S8F7908pX0MCRaOMLN0qqCvfAM3WhYr2l0G8om5j3iPjso1Im2uWJaqnWkolXzF0meEg8gEDFZFc923JE0e1XuVrJPibjqQefycVQ4UGEnuR4AepSTcsTSfY57JbLzTHCYl696cfuzCBbzL+QpWYlOGTcq+FalfsGhsLe8c2k= X-Microsoft-Exchange-Diagnostics: 1;SN1PR15MB0176;6:dmAY5XcbV0MCnCEVacDSPwVy7lrLl+FZoBhaYFSNRTnDL6e5CU1B7BLpipAHhUnzTVMLIJzI+2mzQIha2O32CUNn3Q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jxAYlDTnoNMLdocWduLzD/pOVjMu9agSMihMuWTQdvYodAxrWcioGP5LAHquBRmRYisbZl8vXQE2iXhftZodkTD0JUxmQ0APLOY= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2018 18:30:32.3795 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: edacdf60-7b12-4d1a-8f7e-08d5e36e8f5d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR15MB0176 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-06_05:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds a bash completion to the bpftool cgroup tree command. Signed-off-by: Roman Gushchin Cc: Jakub Kicinski Cc: Quentin Monnet Cc: Daniel Borkmann Cc: Alexei Starovoitov --- tools/bpf/bpftool/bash-completion/bpftool | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/bpf/bpftool/bash-completion/bpftool b/tools/bpf/bpftool/bash-completion/bpftool index fffd76f4998b..82681eb9c02a 100644 --- a/tools/bpf/bpftool/bash-completion/bpftool +++ b/tools/bpf/bpftool/bash-completion/bpftool @@ -414,6 +414,9 @@ _bpftool() _filedir return 0 ;; + tree) + _filedir + return 0 attach|detach) local ATTACH_TYPES='ingress egress sock_create sock_ops \ device bind4 bind6 post_bind4 post_bind6 connect4 \ -- 2.14.4