Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754015AbdFMXts (ORCPT ); Tue, 13 Jun 2017 19:49:48 -0400 Received: from mail-dm3nam03on0070.outbound.protection.outlook.com ([104.47.41.70]:9568 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753323AbdFMXtq (ORCPT ); Tue, 13 Jun 2017 19:49:46 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=David.Daney@cavium.com; From: David Daney To: Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-mips@linux-mips.org, ralf@linux-mips.org, David Daney Subject: [PATCH 0/4] bpf: Changes needed (or desired) for MIPS support Date: Tue, 13 Jun 2017 16:49:34 -0700 Message-Id: <20170613234938.4823-1-david.daney@cavium.com> X-Mailer: git-send-email 2.9.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: BY2PR07CA0024.namprd07.prod.outlook.com (10.166.107.19) To MWHPR07MB3501.namprd07.prod.outlook.com (10.164.192.28) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR07MB3501: X-MS-Office365-Filtering-Correlation-Id: 4dbac646-960a-48b4-44c3-08d4b2b6dd68 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:MWHPR07MB3501; X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3501;3:/zuFE79020yaufl+9Am4TsxS7cssxHYvFSZ8YwjDkbsmHYq6qiZ1BmHS4EzlbVdwAodm7gBlqxMlqw8luVoS2lg1jifM4XJ5C4R+Q/tp0Xz+2I5suZ3giXSsoRoc9oX4ULUe3v12FMBtMl1vTUmcUz8PdW5LZPykqyr6salFjmq4wVWWEMJvc3euWbidqm+C8rljDCFZxjSn/k3d60X1iQFAXENNdTEVmQ6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3R9lPGdsFNfdZAVJlP/lGxTvfj8LECore+ITOM9AsOW9D+65dY/bnKAb8cG0akgggGaHTxQgUJGLcVwctewE0nL91nBd8XpryXIxX5i4y4Mv9MKGXbx1HswvwnlR3zOO+O8kImA0doU9YKBulM1D7JglJsDQyBaXjQAdS9p4lJK1Cx5j8Sne83tzFNlDLhW5qWP3o/4lHzhXvdzwfDcDlKtFt7CgUMhB7DPYzqOWGMT+AHyOFTFKqqphGuYhL0vYnYydCkiLPzXNUOL6kbDfuzsY3O5aagPLQEPvBuMMTgiua+Z04G7KoDniIDN2TF61v X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123555025)(20161123558100)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR07MB3501;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR07MB3501; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR07MB3501;4:WbJSqpBuMrApbnUktvibnVwbqhWsjrcJPGw2KeG9Rw?= =?us-ascii?Q?ZyX3JsjbgTeiVkL2MCe6djtdb/L8RFbzoOmLLk9ziiYc8jv5JhKvnIDvhcoP?= =?us-ascii?Q?CQSYF4VDwgxw0GuEGKWJsyjC6mpObFqqS6soViQVOV46/j/US3Feg1ZXQWFw?= =?us-ascii?Q?8MOXjyvg6pMa0fvLM19w3djYk6Ua2NXYlqeKiIzK/1AEeyufY5+19xkn2zvu?= =?us-ascii?Q?A9vuA+FMndb7u4JY7b2h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ii?Q?o8wMCasyvTN511oC+6Hce3v1Bh858T?= X-Forefront-PRVS: 0337AFFE9A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39840400002)(39450400003)(39410400002)(39400400002)(39850400002)(189002)(199003)(6512007)(105586002)(53936002)(50226002)(53416004)(106356001)(4326008)(189998001)(6506006)(25786009)(42186005)(6666003)(33646002)(50466002)(69596002)(5003940100001)(6486002)(48376002)(47776003)(7736002)(305945005)(1076002)(478600001)(101416001)(2906002)(81156014)(8676002)(81166006)(72206003)(107886003)(36756003)(5660300001)(66066001)(38730400002)(3846002)(68736007)(97736004)(6116002)(86362001)(50986999);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR07MB3501;H:ddl.caveonetworks.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR07MB3501;23:QjSma4+1Df22H7/U/8A+iOeGe5HB+skL0OLUW8MCd?= =?us-ascii?Q?Dx8MLdsgLZEn5MF59e+Mjaurh/GK0wBY2i/Dhomj8LIQ4e847UisWuurHlZ9?= =?us-ascii?Q?sa3iphkpYxo75R/9OYhRjFh8XBW+JAsrRaPXMAFK3uJJmhFkD1nlR1MmE2Xv?= =?us-ascii?Q?SUdotZRIq+6oDG3V4siMFHfDqOqs45qTwwr1qF+qS1Kc0mdpLd5htCJg06/Q?= =?us-ascii?Q?eN4OeCU5Zz5wXQ9+ZZiOhjPj9rf2R9rkHDfezKZbjDaCgHxeZFVmz0m8/sCa?= =?us-ascii?Q?lXF5mFlK6MgeST1xXr8Wc38QdsDRya5/RP3iBAxFV6D5roEQtLuYyTo4IHS9?= =?us-ascii?Q?05NCktPhFQmuNSIVyu9g+ZNXKpzapw00UoHqoXN7R4VaGxU4+MgagmU+cKoB?= =?us-ascii?Q?T9CUPSb6OrVH7Zvb2nwGGPMNI2eONIGfkXEUeO+eM1wy4Tm4vErsGmyl9Hg6?= =?us-asc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t8d05Gc7An3A4P+L+Kf6GOTnd1Ah3zo0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3501;7:y6bc8OR6nQv3Ox/cP2Cy9Vcm1aqu8T2QU7mAyvA43Jk+YsjX5gamLnnCMFzCkobqUxf7siX4TD+I6FPKe1MPlAFm2Nn+5lwAoVG1vjR3+tFV5Mz7MhuWxQLDYVlmbDbtUQV2D+/ce/n8blnJkyvs1Wf1rZjBx2uqw1tp7k4zlfjQBe3wEka+5EhCTsGP5ZB0mq42x7CY2Cs1qw4fOIZ4vlSFmYKfqEyc06VI3IAnz8hsE28jbOHx/x28AdxG922Ilq/q4OyMFxLTO8oIUnMyZlK8YZ3bwpxkPVfA6YFwGdEmvKj2LgAho5irc/WhmEAwcwJawpypDQyBKGPj6ZrEjA== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2017 23:49:43.1816 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3501 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 885 Lines: 23 This is a grab bag of changes to the bpf testing infrastructure I developed working on MIPS eBPF JIT support. The change to bpf_jit_disasm is probably universally beneficial, the others are more MIPS specific. David Daney (4): tools: bpf_jit_disasm: Handle large images. test_bpf: Add test to make conditional jump cross a large number of insns. bpf: Add MIPS support to samples/bpf. samples/bpf: Fix tracex5 to work with MIPS syscalls. lib/test_bpf.c | 32 ++++++++++++++++++++++++++++++++ samples/bpf/Makefile | 13 +++++++++++++ samples/bpf/bpf_helpers.h | 13 +++++++++++++ samples/bpf/syscall_nrs.c | 12 ++++++++++++ samples/bpf/tracex5_kern.c | 11 ++++++++--- tools/net/bpf_jit_disasm.c | 37 ++++++++++++++++++++++++++----------- 6 files changed, 104 insertions(+), 14 deletions(-) create mode 100644 samples/bpf/syscall_nrs.c -- 2.9.4