From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.0 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 506F2C31681 for ; Mon, 21 Jan 2019 18:43:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 081C521726 for ; Mon, 21 Jan 2019 18:43:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=netronome-com.20150623.gappssmtp.com header.i=@netronome-com.20150623.gappssmtp.com header.b="aF0o7x4S" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727835AbfAUSnt (ORCPT ); Mon, 21 Jan 2019 13:43:49 -0500 Received: from mail-pg1-f169.google.com ([209.85.215.169]:43262 "EHLO mail-pg1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727665AbfAUSnt (ORCPT ); Mon, 21 Jan 2019 13:43:49 -0500 Received: by mail-pg1-f169.google.com with SMTP id v28so9839517pgk.10 for ; Mon, 21 Jan 2019 10:43:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5LS+G5Fd9wLaTDNRKDcdFKsXIMBp6MnoFhsV8DAvpg8=; b=aF0o7x4SN+TqHhNGdpLnVSkEhjbO0vJafdChUY4+ico0KAMuCIv+MRcLxCtH7PaCqd 7+Wvm6NL0NOwmqPthrUyl19mPNXqUgPu8C3xqoakDhoWsfMk4+Rer/TSFjqIB3oeS01D dVxdSBSWDoTSAEJa+tPTsrqURGNj6HT4uGu44rXNtwTxFKOwtD38hGSmrj0WHpaHDzNm I/VJaM25s8dwvRjB+7CfkG1JyvG3XXCl0m6AfZOFXkxsxim737Bw3fzgUmciteRSlZ6I btv15pZMnFxVI5ByDOYRu+hJ05eMFpX6SaDjnU7cw22gpW2j8A4W6A7+MUTf/cQ686FO tjzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5LS+G5Fd9wLaTDNRKDcdFKsXIMBp6MnoFhsV8DAvpg8=; b=PvBWZPYU0cFm/dG6jaJNsMcM8QoFD/lFdUHd1jWHNpDz25BIw4RpOdVtcDhQJwGvhG xGz/bZgVTgTP8DYIXFMfGFVZ5Ey9/i4XNjLVGtihQNpFzNAetBzfjmEiBWMCGI4+MlLB f5cdJmbzPBqbtaN0BLY4iIi1MVWyT6jXI7JqgZjY+zfc7z+uoBAe28ovbGfTym+3Az9B 0zoK0SFwCwunpUQTbaVLseX0dTv98T2hiMVXRsABStUhdQVtS5KvbMxtbz155xkPt++m 6wlvOF4rl/5eGzwQxRl9TIPjzlQlU/ACDTQJjwJyhzxrro6NUeunE8ctaUdXp3yT2N0I TdmQ== X-Gm-Message-State: AJcUukdXXQ1WHCwPTlgROj2ns3BlJw2MdlpbzBlCwgIikdvVzmPlISM2 Uck6iZiUciCPTjxWXQePLGGMUg== X-Google-Smtp-Source: ALg8bN45LSq2Ki8cwsJRduKPtqE0YdYUBvNWRY60tuvvV0OTi2SmFRG3Q7v5UHtAiLLQiPW9/3MdYA== X-Received: by 2002:a62:140a:: with SMTP id 10mr30348764pfu.157.1548096228162; Mon, 21 Jan 2019 10:43:48 -0800 (PST) Received: from jkicinski-Precision-T1700.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id y71sm20032915pfi.123.2019.01.21.10.43.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Jan 2019 10:43:47 -0800 (PST) From: Jakub Kicinski To: alexei.starovoitov@gmail.com, daniel@iogearbox.net Cc: netdev@vger.kernel.org, oss-drivers@netronome.com, Jakub Kicinski Subject: [PATCH bpf-next 0/3] selftests: bpf: break up test_verifier Date: Mon, 21 Jan 2019 10:43:36 -0800 Message-Id: <20190121184339.29485-1-jakub.kicinski@netronome.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi! The tools/testing/selftests/bpf/test_verifier.c file is way too large, and since most people add their at the end of the list it's very prone to conflicts. Break it up in the simplest possible way - slice the array up into smaller C files and include them in the right spot. Tested: $ make -C tools/testing/selftests/bpf/ $ cd tools/testing/selftests/bpf/ ; make Jakub Kicinski (3): selftests: bpf: prepare for break up of verifier tests selftests: bpf: break up test_verifier selftests: bpf: break up the rest of test_verifier tools/testing/selftests/bpf/Makefile | 13 + tools/testing/selftests/bpf/test_verifier.c | 15390 +--------------- .../testing/selftests/bpf/verifier/.gitignore | 1 + tools/testing/selftests/bpf/verifier/and.c | 53 + .../selftests/bpf/verifier/array_access.c | 238 + tools/testing/selftests/bpf/verifier/basic.c | 23 + .../selftests/bpf/verifier/basic_call.c | 54 + .../selftests/bpf/verifier/basic_instr.c | 134 + .../selftests/bpf/verifier/basic_stack.c | 65 + .../selftests/bpf/verifier/basic_stx_ldx.c | 45 + tools/testing/selftests/bpf/verifier/bounds.c | 528 + .../selftests/bpf/verifier/bounds_deduction.c | 124 + .../bpf/verifier/bounds_mix_sign_unsign.c | 422 + .../selftests/bpf/verifier/bpf_get_stack.c | 45 + tools/testing/selftests/bpf/verifier/calls.c | 1960 ++ tools/testing/selftests/bpf/verifier/cfg.c | 70 + .../bpf/verifier/cgroup_inv_retcode.c | 72 + .../selftests/bpf/verifier/cgroup_skb.c | 198 + .../selftests/bpf/verifier/cgroup_storage.c | 234 + .../testing/selftests/bpf/verifier/const_or.c | 60 + tools/testing/selftests/bpf/verifier/ctx.c | 93 + .../selftests/bpf/verifier/ctx_sk_msg.c | 180 + .../testing/selftests/bpf/verifier/ctx_skb.c | 1000 + .../bpf/verifier/direct_packet_access.c | 633 + .../verifier/direct_stack_access_wraparound.c | 40 + tools/testing/selftests/bpf/verifier/div0.c | 184 + .../selftests/bpf/verifier/div_overflow.c | 104 + .../bpf/verifier/helper_access_val_len.c | 621 + .../bpf/verifier/helper_packet_access.c | 486 + .../bpf/verifier/helper_value_access.c | 978 + tools/testing/selftests/bpf/verifier/jit.c | 88 + tools/testing/selftests/bpf/verifier/jset.c | 191 + tools/testing/selftests/bpf/verifier/jump.c | 181 + .../selftests/bpf/verifier/junk_insn.c | 45 + tools/testing/selftests/bpf/verifier/ld_abs.c | 287 + tools/testing/selftests/bpf/verifier/ld_dw.c | 36 + .../testing/selftests/bpf/verifier/ld_imm64.c | 141 + tools/testing/selftests/bpf/verifier/ld_ind.c | 72 + .../testing/selftests/bpf/verifier/leak_ptr.c | 68 + tools/testing/selftests/bpf/verifier/lwt.c | 189 + .../selftests/bpf/verifier/map_in_map.c | 68 + .../selftests/bpf/verifier/map_ptr_mixing.c | 106 + .../selftests/bpf/verifier/map_ret_val.c | 69 + .../testing/selftests/bpf/verifier/masking.c | 322 + .../selftests/bpf/verifier/meta_access.c | 247 + .../bpf/verifier/perf_event_sample_period.c | 59 + .../bpf/verifier/prevent_map_lookup.c | 79 + .../selftests/bpf/verifier/raw_stack.c | 321 + .../selftests/bpf/verifier/ref_tracking.c | 611 + .../selftests/bpf/verifier/runtime_jit.c | 86 + .../selftests/bpf/verifier/search_pruning.c | 160 + .../selftests/bpf/verifier/spill_fill.c | 75 + .../selftests/bpf/verifier/stack_ptr.c | 317 + tools/testing/selftests/bpf/verifier/uninit.c | 39 + tools/testing/selftests/bpf/verifier/unpriv.c | 531 + tools/testing/selftests/bpf/verifier/value.c | 105 + .../selftests/bpf/verifier/value_adj_spill.c | 43 + .../bpf/verifier/value_illegal_alu.c | 94 + .../selftests/bpf/verifier/value_or_null.c | 160 + .../selftests/bpf/verifier/value_ptr_arith.c | 823 + .../testing/selftests/bpf/verifier/var_off.c | 67 + tools/testing/selftests/bpf/verifier/xadd.c | 99 + tools/testing/selftests/bpf/verifier/xdp.c | 14 + .../bpf/verifier/xdp_direct_packet_access.c | 950 + 64 files changed, 15404 insertions(+), 15387 deletions(-) create mode 100644 tools/testing/selftests/bpf/verifier/.gitignore create mode 100644 tools/testing/selftests/bpf/verifier/and.c create mode 100644 tools/testing/selftests/bpf/verifier/array_access.c create mode 100644 tools/testing/selftests/bpf/verifier/basic.c create mode 100644 tools/testing/selftests/bpf/verifier/basic_call.c create mode 100644 tools/testing/selftests/bpf/verifier/basic_instr.c create mode 100644 tools/testing/selftests/bpf/verifier/basic_stack.c create mode 100644 tools/testing/selftests/bpf/verifier/basic_stx_ldx.c create mode 100644 tools/testing/selftests/bpf/verifier/bounds.c create mode 100644 tools/testing/selftests/bpf/verifier/bounds_deduction.c create mode 100644 tools/testing/selftests/bpf/verifier/bounds_mix_sign_unsign.c create mode 100644 tools/testing/selftests/bpf/verifier/bpf_get_stack.c create mode 100644 tools/testing/selftests/bpf/verifier/calls.c create mode 100644 tools/testing/selftests/bpf/verifier/cfg.c create mode 100644 tools/testing/selftests/bpf/verifier/cgroup_inv_retcode.c create mode 100644 tools/testing/selftests/bpf/verifier/cgroup_skb.c create mode 100644 tools/testing/selftests/bpf/verifier/cgroup_storage.c create mode 100644 tools/testing/selftests/bpf/verifier/const_or.c create mode 100644 tools/testing/selftests/bpf/verifier/ctx.c create mode 100644 tools/testing/selftests/bpf/verifier/ctx_sk_msg.c create mode 100644 tools/testing/selftests/bpf/verifier/ctx_skb.c create mode 100644 tools/testing/selftests/bpf/verifier/direct_packet_access.c create mode 100644 tools/testing/selftests/bpf/verifier/direct_stack_access_wraparound.c create mode 100644 tools/testing/selftests/bpf/verifier/div0.c create mode 100644 tools/testing/selftests/bpf/verifier/div_overflow.c create mode 100644 tools/testing/selftests/bpf/verifier/helper_access_val_len.c create mode 100644 tools/testing/selftests/bpf/verifier/helper_packet_access.c create mode 100644 tools/testing/selftests/bpf/verifier/helper_value_access.c create mode 100644 tools/testing/selftests/bpf/verifier/jit.c create mode 100644 tools/testing/selftests/bpf/verifier/jset.c create mode 100644 tools/testing/selftests/bpf/verifier/jump.c create mode 100644 tools/testing/selftests/bpf/verifier/junk_insn.c create mode 100644 tools/testing/selftests/bpf/verifier/ld_abs.c create mode 100644 tools/testing/selftests/bpf/verifier/ld_dw.c create mode 100644 tools/testing/selftests/bpf/verifier/ld_imm64.c create mode 100644 tools/testing/selftests/bpf/verifier/ld_ind.c create mode 100644 tools/testing/selftests/bpf/verifier/leak_ptr.c create mode 100644 tools/testing/selftests/bpf/verifier/lwt.c create mode 100644 tools/testing/selftests/bpf/verifier/map_in_map.c create mode 100644 tools/testing/selftests/bpf/verifier/map_ptr_mixing.c create mode 100644 tools/testing/selftests/bpf/verifier/map_ret_val.c create mode 100644 tools/testing/selftests/bpf/verifier/masking.c create mode 100644 tools/testing/selftests/bpf/verifier/meta_access.c create mode 100644 tools/testing/selftests/bpf/verifier/perf_event_sample_period.c create mode 100644 tools/testing/selftests/bpf/verifier/prevent_map_lookup.c create mode 100644 tools/testing/selftests/bpf/verifier/raw_stack.c create mode 100644 tools/testing/selftests/bpf/verifier/ref_tracking.c create mode 100644 tools/testing/selftests/bpf/verifier/runtime_jit.c create mode 100644 tools/testing/selftests/bpf/verifier/search_pruning.c create mode 100644 tools/testing/selftests/bpf/verifier/spill_fill.c create mode 100644 tools/testing/selftests/bpf/verifier/stack_ptr.c create mode 100644 tools/testing/selftests/bpf/verifier/uninit.c create mode 100644 tools/testing/selftests/bpf/verifier/unpriv.c create mode 100644 tools/testing/selftests/bpf/verifier/value.c create mode 100644 tools/testing/selftests/bpf/verifier/value_adj_spill.c create mode 100644 tools/testing/selftests/bpf/verifier/value_illegal_alu.c create mode 100644 tools/testing/selftests/bpf/verifier/value_or_null.c create mode 100644 tools/testing/selftests/bpf/verifier/value_ptr_arith.c create mode 100644 tools/testing/selftests/bpf/verifier/var_off.c create mode 100644 tools/testing/selftests/bpf/verifier/xadd.c create mode 100644 tools/testing/selftests/bpf/verifier/xdp.c create mode 100644 tools/testing/selftests/bpf/verifier/xdp_direct_packet_access.c -- 2.19.2