From patchwork Sat Nov 28 19:25:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Lehner X-Patchwork-Id: 11937991 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=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT 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 F061BC8302A for ; Sat, 28 Nov 2020 22:08:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BCEB62224C for ; Sat, 28 Nov 2020 22:08:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389841AbgK1VuJ (ORCPT ); Sat, 28 Nov 2020 16:50:09 -0500 Received: from mx.der-flo.net ([193.160.39.236]:34924 "EHLO mx.der-flo.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387525AbgK1T2L (ORCPT ); Sat, 28 Nov 2020 14:28:11 -0500 Received: by mx.der-flo.net (Postfix, from userid 110) id 34E24444F9; Sat, 28 Nov 2020 20:26:58 +0100 (CET) Received: from localhost (unknown [IPv6:2a02:1203:ecb0:3930:1751:4157:4d75:a5e2]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.der-flo.net (Postfix) with ESMTPSA id BD9C04435E; Sat, 28 Nov 2020 20:25:47 +0100 (CET) From: Florian Lehner To: bpf@vger.kernel.org Cc: netdev@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, john.fastabend@gmail.com, Florian Lehner , Krzesimir Nowak Subject: [PATCH 0/2] Improve error handling of verifier tests Date: Sat, 28 Nov 2020 20:25:00 +0100 Message-Id: <20201128192502.88195-1-dev@der-flo.net> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org These patches improve the error handling for verifier tests. With "Test the 32bit narrow read" Krzesimir Nowak provided these patches first, but they were never merged. The improved error handling helps to implement and test BPF program types that are not supported yet. Florian Lehner (2): selftests/bpf: Avoid errno clobbering selftests/bpf: Print reason when a tester could not run a program tools/testing/selftests/bpf/test_verifier.c | 28 ++++++++++++++++----- 1 file changed, 22 insertions(+), 6 deletions(-)