Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp1174970lko; Tue, 13 Jul 2021 18:48:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQphrDHGbf2NZizPQ/aPoXueAikJps2scMTSmHpPegABkLrg62fIjTyLnAbD4PE8X+XlIA X-Received: by 2002:a17:906:2dc4:: with SMTP id h4mr8950782eji.528.1626227328418; Tue, 13 Jul 2021 18:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626227328; cv=none; d=google.com; s=arc-20160816; b=ui7LhDSTHne5X4lt14l5NPs6Nr23Ie9c9Sw0G22Csr53xOuSrT98ic+jd93J7+5SrA 4p2rEFH6EfIoUXGk5UOCrfiMwiW3G/DYGNLfuFNA+UCKloMT/aTktmJPbfS8MLCfaimC 9Zou2CU2eTm6bpyedY15FDRJiSyanvE5bn+5lCwoCvCMS/FPIxKFUk4JwsQw+3JLamRl WR8wzgacIxw/4tgncId9giMwHJLioDjHNABUFwXFF+4jmSxsFixZqQlHlMdk+aPIKlSK xP/O0DStDVQ4ZH/ibdGYfpOw/VAqMAneJXkBsF7D23V/OX7zRkww2p3ZpnGpvNfVcmUF zqOg== 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 :message-id:date:subject:cc:to:from; bh=shbLl0PbTZYMdhteMbZtqiR14UeEi8vBmGdyfjc6Ciw=; b=H5A6f4l2ZZl2FTk4qG7w79DSxThMjy1TNc27l0MkNo76zbtklGHFIDpba18v2UL0qS 3IUYpUgNU3vRqBwl1NHWu02E8Zn9lWe3njoXbSgW/EucqSysOfT9k8IZS1/TnPnBadKh oGOSC7GRHrfVqZ+uOzYOW0TjvNPfA8S4+H/vlHAlcpz7ibcIWs9ndISClwFIdiNwAcrf w6Ff58oBpX7CbI92QYdBNYR+sB4JM1y8ZxCBpTnFgR1Cxrant3OSxvinE1I3a3YK5vLI cMVUZyEhmxgi9pHd6OKgTRoBaB7wcmBH4OVn9cQp1OKE28EbqT89Elg1wPKzUHOWMAZq ivTw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 6si674834ejl.599.2021.07.13.18.48.25; Tue, 13 Jul 2021 18:48:48 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237335AbhGNBuT (ORCPT + 99 others); Tue, 13 Jul 2021 21:50:19 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:11297 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbhGNBuS (ORCPT ); Tue, 13 Jul 2021 21:50:18 -0400 Received: from dggeme754-chm.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4GPgHh6H3Zz8scx; Wed, 14 Jul 2021 09:42:56 +0800 (CST) Received: from localhost.localdomain (10.175.103.91) by dggeme754-chm.china.huawei.com (10.3.19.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 14 Jul 2021 09:47:24 +0800 From: Wei Li To: Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh CC: , , , Subject: [PATCH] perf trace: Update cmd string table to decode sys_bpf first arg Date: Wed, 14 Jul 2021 09:50:00 +0800 Message-ID: <20210714015000.2844867-1-liwei391@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggeme754-chm.china.huawei.com (10.3.19.100) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As 'enum bpf_cmd' has been extended a lot, update the cmd string table to decode sys_bpf first arg clearly in perf-trace. Signed-off-by: Wei Li --- tools/perf/builtin-trace.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 7ec18ff57fc4..17bc6284a93e 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -707,7 +707,15 @@ static size_t syscall_arg__scnprintf_char_array(char *bf, size_t size, struct sy static const char *bpf_cmd[] = { "MAP_CREATE", "MAP_LOOKUP_ELEM", "MAP_UPDATE_ELEM", "MAP_DELETE_ELEM", - "MAP_GET_NEXT_KEY", "PROG_LOAD", + "MAP_GET_NEXT_KEY", "PROG_LOAD", "OBJ_PIN", "OBJ_GET", "PROG_ATTACH", + "PROG_DETACH", "PROG_TEST_RUN", "PROG_GET_NEXT_ID", "MAP_GET_NEXT_ID", + "PROG_GET_FD_BY_ID", "MAP_GET_FD_BY_ID", "OBJ_GET_INFO_BY_FD", + "PROG_QUERY", "RAW_TRACEPOINT_OPEN", "BTF_LOAD", "BTF_GET_FD_BY_ID", + "TASK_FD_QUERY", "MAP_LOOKUP_AND_DELETE_ELEM", "MAP_FREEZE", + "BTF_GET_NEXT_ID", "MAP_LOOKUP_BATCH", "MAP_LOOKUP_AND_DELETE_BATCH", + "MAP_UPDATE_BATCH", "MAP_DELETE_BATCH", "LINK_CREATE", "LINK_UPDATE", + "LINK_GET_FD_BY_ID", "LINK_GET_NEXT_ID", "ENABLE_STATS", "ITER_CREATE", + "LINK_DETACH", "PROG_BIND_MAP", }; static DEFINE_STRARRAY(bpf_cmd, "BPF_"); -- 2.25.1