From patchwork Thu Sep 22 23:07:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrii Nakryiko X-Patchwork-Id: 12985923 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EE5FC6FA86 for ; Thu, 22 Sep 2022 23:07:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230308AbiIVXHx convert rfc822-to-8bit (ORCPT ); Thu, 22 Sep 2022 19:07:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230468AbiIVXHv (ORCPT ); Thu, 22 Sep 2022 19:07:51 -0400 Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 746021138FF for ; Thu, 22 Sep 2022 16:07:48 -0700 (PDT) Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28MKiMai015075 for ; Thu, 22 Sep 2022 16:07:48 -0700 Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3jrayp8xdt-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 22 Sep 2022 16:07:48 -0700 Received: from twshared22593.02.prn5.facebook.com (2620:10d:c0a8:1b::d) by mail.thefacebook.com (2620:10d:c0a8:82::c) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 16:07:45 -0700 Received: by devbig019.vll3.facebook.com (Postfix, from userid 137359) id CDEB11F384455; Thu, 22 Sep 2022 16:07:40 -0700 (PDT) From: Andrii Nakryiko To: , , CC: , Subject: [PATCH bpf-next 0/5] veristat: further usability improvements Date: Thu, 22 Sep 2022 16:07:34 -0700 Message-ID: <20220922230739.1288536-1-andrii@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-FB-Internal: Safe X-Proofpoint-GUID: lbxWBRHWmBjKTP0VPl46bBCZhcfzIr4e X-Proofpoint-ORIG-GUID: lbxWBRHWmBjKTP0VPl46bBCZhcfzIr4e X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-22_15,2022-09-22_02,2022-06-22_01 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net A small patch set adding few usability improvements and features making veristat a more convenient tool to be used for work on BPF verifier: - patch #2 speeds up and makes stats parsing from BPF verifier log more robust; - patch #3 makes veristat less strict about input object files; veristat will ignore non-BPF ELF files; - patch #4 adds progress log, by default, so that user doing mass-verification is aware that veristat is not stuck; - patch #5 allows to tune requested BPF verifier log level, which makes veristat a simplest way to get BPF verifier log, especially successfully verified ones. Andrii Nakryiko (5): selftests/bpf: add sign-file to .gitignore selftests/bpf: make veristat's verifier log parsing faster and more robust selftests/bpf: make veristat skip non-BPF and failing-to-open BPF objects selftests/bpf: emit processing progress and add quiet mode to veristat selftests/bpf: allow to adjust BPF verifier log level in veristat tools/testing/selftests/bpf/.gitignore | 1 + tools/testing/selftests/bpf/veristat.c | 136 +++++++++++++++++++++---- 2 files changed, 118 insertions(+), 19 deletions(-)