From patchwork Wed Sep 20 16:04:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 816329 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="kdZ1qG3q"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xy4Mf2ZDvz9s7c for ; Thu, 21 Sep 2017 02:05:18 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751640AbdITQFH (ORCPT ); Wed, 20 Sep 2017 12:05:07 -0400 Received: from mail-pg0-f50.google.com ([74.125.83.50]:53771 "EHLO mail-pg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751550AbdITQFF (ORCPT ); Wed, 20 Sep 2017 12:05:05 -0400 Received: by mail-pg0-f50.google.com with SMTP id j70so1915915pgc.10 for ; Wed, 20 Sep 2017 09:05:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=yP2ObTUrEq2ky6qxv00DMUPSybbVkLf1Nw6PUWkjkno=; b=kdZ1qG3qjGFUJJIb77iPncCTU7IuLQBSzk1+55eRLUec2IckydgsGMF+5k+WyDAQtn v93WcEDsuT5vI+6Lkw62yu2/8Uexx7OHvnQlgrrbM9++RdsaPm5cHRaQrSnb+caPS5oJ LNBLSyamaRubNBfT/7sEuNH8jF0KnZrBqmcAtpIZ3BRsY5m4N1xB1SCa81upNpSerpBd xaBryUN0y1w8qaxub4K1iVyKvYWfS3Fj88dTy/HDgWC0Yp07Hi7EKZQ1NglSCSDwwYuF n9+Q6h64g0MwJBhb2nGhvafBeUTRGIclGQtVu+p9z3R0MDJZ+QzSmn/CrmLb1nRK+yZj ANZg== 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; bh=yP2ObTUrEq2ky6qxv00DMUPSybbVkLf1Nw6PUWkjkno=; b=aDeJ8XKLNlhWRfK7RIUVexnx/dGTdMfY7s+yYh7LtJdUp5e61U3OuGA84x5VFXHrOm TY1l/0+T1x4RGbYTMEx7GVzeRM+1pFQIDoVcqTMQGEQ66RFv70cYT5rbtkb3qKl9/MgT 62m83ccwknMbBoemkviMX83O67zFTRAF9XnsuOMS5RyCsA4pSjaGtnLb3CMI/1HbMPWC OJzWuwgRnpKONsIUBxLiE53hTtOPEGY2mtJpzWanKCnW5m0G5vfX6y4ffGqmcyF6kNb8 aQP084sHhfy9nh319Fcv6BMAWW2ikSlGlZtuuld3CI/1J16yF86Yk2LZ3h/rb2PHXMdm C4kg== X-Gm-Message-State: AHPjjUhXGeMT6eNZ7bA0r59Jn95cQdrtKesJNehR/1/QheobbSUxf4F4 n/RjF6eAIYi63bKECWaGaP54yw== X-Google-Smtp-Source: AOwi7QBMp7sz9BsKduclOb1A0+9pP3t5HmrVCyqyEq1MaNCHO0xXE2sNgA52XrBWNqujWytQwW16kg== X-Received: by 10.98.178.133 with SMTP id z5mr2678132pfl.312.1505923504987; Wed, 20 Sep 2017 09:05:04 -0700 (PDT) Received: from joelaf-glaptop0.roam.corp.google.com ([73.93.152.222]) by smtp.gmail.com with ESMTPSA id 184sm7800053pfg.18.2017.09.20.09.05.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Sep 2017 09:05:03 -0700 (PDT) From: Joel Fernandes To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: alison@she-devel.com, juri.lelli@arm.com, fengc@google.com, daniel@iogearbox.net, davem@davemloft.net, ast@kernel.org, kernel-team@android.com, Joel Fernandes Subject: [PATCH v4 0/4] Add cross-compilation support to eBPF samples Date: Wed, 20 Sep 2017 09:04:32 -0700 Message-Id: <20170920160436.24689-1-joelaf@google.com> X-Mailer: git-send-email 2.14.1.821.g8fa685d3b7-goog Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org These patches fix issues seen when cross-compiling eBPF samples on arm64. Compared to [1], I dropped the controversial inline-asm patch and exploring other options to fix it. However these patches are a step in the right direction and I look forward to getting them into -next and the merge window. Changes since v3: - just a repost with acks [1] https://lkml.org/lkml/2017/8/7/417 Joel Fernandes (4): samples/bpf: Use getppid instead of getpgrp for array map stress samples/bpf: Enable cross compiler support samples/bpf: Fix pt_regs issues when cross-compiling samples/bpf: Add documentation on cross compilation samples/bpf/Makefile | 7 +++- samples/bpf/README.rst | 10 ++++++ samples/bpf/map_perf_test_kern.c | 2 +- samples/bpf/map_perf_test_user.c | 2 +- tools/testing/selftests/bpf/bpf_helpers.h | 56 +++++++++++++++++++++++++++---- 5 files changed, 67 insertions(+), 10 deletions(-)