From patchwork Sun Sep 3 18:23:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 809345 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="L2byqCEc"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xlhFV2YlZz9sPs for ; Mon, 4 Sep 2017 04:23:58 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751517AbdICSXn (ORCPT ); Sun, 3 Sep 2017 14:23:43 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:34655 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751287AbdICSXm (ORCPT ); Sun, 3 Sep 2017 14:23:42 -0400 Received: by mail-pf0-f182.google.com with SMTP id l87so12468682pfj.1 for ; Sun, 03 Sep 2017 11:23:42 -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=t3k03R5xYx4GCfqjMlkSUVntaoidgDfvF6I7Ss1r+5w=; b=L2byqCEcwasYF00aIPl0gAXTYVEvJnhP+GrJzNxZKlJclVkwt0c4qXr8eS5Yn1i3Tc q16ApvCTIlqH4Iqr36tAeTvz7lfbLNRDfVGm5pe9xLNiab++bTy2gpmJvsCulQn1c4Qm TnaP83dMCPTgU75+rcaK3naevA1Z8g2Kb//bd8M9i5oM/bdGD/dxbbowvgZZ6wPp6Kkw ku7PKa/uUtioJBkdUYq29R3gpFYOBtNFhLLKLesLyeIRo80nyc3AVKGvWH0k6z+yRzqa 9QUKKP5SxYqdCKp7CLIU9e48dfH6CMiIx3SKp2n4NgDUE5sv1E34JXz1O1QZw6Y4BMEk x9JQ== 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=t3k03R5xYx4GCfqjMlkSUVntaoidgDfvF6I7Ss1r+5w=; b=VVwXQ4wwDalA8PuJstjv+RQ3imkMh84/y+k+yOcy3qZdJxHh/a3Dv4T+/fEUQQXb1r hjtqxPQfWkHFFFSlwmLkIMBX4CisWaB7gKea7Ty8/swuCSrffsPEuduLP6dIak3AShLQ svfZJHEmvgoIwuXNdDkdE8au4zad5wXgprwtjsKQwh22AVq1pu0pNkvM3q4laELYvcxc SGQq1Yobq5crwrz/jPQ2lQLaKeQtxiBl2VBjO4p6pXsEmcHtFDsk5gwM//lhhbZPwBav zwqFjMMOPzednxgC9EfC9U/csFKQrT67JxbVHU1s4GKVqyeECQZfl/ZSmnagwnxAVcLw YGhw== X-Gm-Message-State: AHPjjUg/5njS+45VmkinN+spd4mdherrUgGY3iVRLn8ECUkivuuG2qJF tlY7RyZ1WW3RtSeQ X-Google-Smtp-Source: ADKCNb5eIgqQYfKjch9ADPcLnXAUhVzoMOb2KJaw0rk/uuwXf7nB0Ojo6IvmZUuWxwYOzeUKdDNyPA== X-Received: by 10.84.210.46 with SMTP id z43mr747058plh.154.1504463021363; Sun, 03 Sep 2017 11:23:41 -0700 (PDT) Received: from joelaf-glaptop0.roam.corp.google.com (74.sub-70-213-6.myvzw.com. [70.213.6.74]) by smtp.gmail.com with ESMTPSA id b27sm5504762pfh.107.2017.09.03.11.23.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Sep 2017 11:23:40 -0700 (PDT) From: Joel Fernandes To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: kernel-team@android.com, Juri Lelli , Alison Chaiken , Chenbo Feng , Joel Fernandes , Alexei Starovoitov , Daniel Borkmann , David Miller Subject: [PATCH RFC v3 0/4] Add cross-compilation support to eBPF samples Date: Sun, 3 Sep 2017 11:23:21 -0700 Message-Id: <20170903182326.30547-1-joelaf@google.com> X-Mailer: git-send-email 2.14.1.581.gf28d330327-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 pending further discussion on the right way to do it. However these patches are still a step in the right direction and I wanted them to get in before the more controversial bit. [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(-) CC: Alexei Starovoitov CC: Daniel Borkmann Cc: David Miller Acked-by: Alexei Starovoitov